PHP version problem

Reply

Join Date: Jul 2005
Posts: 186
Reputation: aparnesh is an unknown quantity at this point 
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

PHP version problem

 
0
  #1
Jan 29th, 2009
I have developed a site in PHP 5.26, which is running perfectly from the development server. But after uploading the site to the Web server, it is not working. The server is running PHP 4.4. I haven't used any specific features of PHP 5, so the site should have worked fine in PHP 4.4 also.

I am not getting any errors, but no output either. All I can see is a blank page.

Is there a way to find out if the code is not working due to version incompatibility ?

Another problem I am getting is that some popup windows are opening, but not closing automatically from the
window.close() - javascript statement. If I check the code from the 'View Page Source' option, I can see that the entire <SCRIPT>..</SCRIPT> section is missing. What could be the reason for this ?

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 49
Reputation: uncle_smith is an unknown quantity at this point 
Solved Threads: 7
uncle_smith uncle_smith is offline Offline
Light Poster

Re: PHP version problem

 
0
  #2
Jan 29th, 2009
Originally Posted by aparnesh View Post
I have developed a site in PHP 5.26, which is running perfectly from the development server. But after uploading the site to the Web server, it is not working. The server is running PHP 4.4. I haven't used any specific features of PHP 5, so the site should have worked fine in PHP 4.4 also.

I am not getting any errors, but no output either. All I can see is a blank page.

Is there a way to find out if the code is not working due to version incompatibility ?

Another problem I am getting is that some popup windows are opening, but not closing automatically from the
window.close() - javascript statement. If I check the code from the 'View Page Source' option, I can see that the entire <SCRIPT>..</SCRIPT> section is missing. What could be the reason for this ?

Thanks
I would start with looking in the error log. and maybe also add this at top of your script
error_reporting(E_ALL);

in php.ini enable the display of error:
display_errors = On;
display_startup_errors = true;

This may help you to spot errors
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC