Jump to content

difference in versions for php n apache?


gingar

Recommended Posts

Hi guys,

 

i'm developing a site for my client. On my localhost, i'm using Apache/2.0.50 (Win32) PHP/5.0.0 . The files work just fine. Even when i upload to my hosting server, Apache/1.3.41 (Unix) PHP/5.2.6, the files load just as it does on my localhost.

 

However, when she uploads the exact same files to her server, which is running PHP 5.2.6 & Apache 2.2.8, the files do not work! The layout goes haywire and simple php arrays to display in a tables write out the php code to the screen instead!

 

Is it really the php & apache version that is causing these discrepancies?

 

Please advise! many many thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/139857-difference-in-versions-for-php-n-apache/
Share on other sites

Your code contains something that is php configuration specific. You would need to post it to get any specific help with what it is doing that is configuration specific. My bet is an inconstant mix of full <?php tags and lazy-way short open tags <? that are not portable between server configurations and should not be used.

if it is printing out PHP code, then the apache/php configuration on that server is probably wrong.

 

on "her server", if you put a file called info.php on it, with this code:

<?php
  phpinfo();
?>

 

does it show a proper PHP Info page or just the code?

 

edit: or as mentioned above, if you are using lazy-tags, change them to normal php tags

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.