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
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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.