Jump to content

Upgrade to PHP 5 and website issues


rolltidega

Recommended Posts

Hello all! I have a problem I am hoping someone can assist with. Our web site was developed a few years back with PHP 4. I am trying to test going to PHP 5 as 4 is now obsolete. I am using IIS for this as well. I changed the web site to use PHP 5 and the site comes up no problem. The issue is that some of the content is pulled from a local MySQL database. For some reason, with PHP 5, this content just does not show in the web site. No error, nothing. I verified that my connection php file works and will connect to the database by using a php script that I found online. So it appears that PHP 5 will connect to my database. I guess I am wondering if there is some code to grab the data from the database that does not work in PHP 5. I am not an expert in PHP nor am I a web developer so I just need some direction on how to capture or troubleshoot the cause of this issue.

 

Thanks!

 

Shawn

Link to comment
https://forums.phpfreaks.com/topic/99550-upgrade-to-php-5-and-website-issues/
Share on other sites

The short <? tag is starting to turn into a y2k-size issue as more and more hosts switch to php5 and follow the recommended configuration settings. The amount of lost time and effort to make code work will be several orders of magnitude greater than any time that was saved in typing <? instead <?php when the code was written.

I use to use the short tags and other short cuts like <?=$value?>. Even though I use PHP5 personally when writing code you have to go with the notion that other servers will not be using the same configuration as you are. Save time and heartache by keeping your code clean and using full syntax.

 

Ray

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.