gingar Posted January 7, 2009 Share Posted January 7, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/139857-difference-in-versions-for-php-n-apache/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 7, 2009 Share Posted January 7, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/139857-difference-in-versions-for-php-n-apache/#findComment-731670 Share on other sites More sharing options...
rhodesa Posted January 7, 2009 Share Posted January 7, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/139857-difference-in-versions-for-php-n-apache/#findComment-731671 Share on other sites More sharing options...
gingar Posted January 9, 2009 Author Share Posted January 9, 2009 ok, i've change the codes, works fine on my localhost and my hoster.. sent it off to my client.. *fingers crossed* thanks guys! Quote Link to comment https://forums.phpfreaks.com/topic/139857-difference-in-versions-for-php-n-apache/#findComment-733010 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.