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

Link to comment
Share on other sites

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

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.