rolltidega Posted April 4, 2008 Share Posted April 4, 2008 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 Quote Link to comment Share on other sites More sharing options...
craygo Posted April 4, 2008 Share Posted April 4, 2008 if there is no error then who ever wrote the code for your pages suppressed the errors. You will have to give us some code in order to help you out. Ray Quote Link to comment Share on other sites More sharing options...
rolltidega Posted April 4, 2008 Author Share Posted April 4, 2008 Sorry about that but I found a post below that helped! I should have searched before posting! <? was prevalent throughout the code so I had to change that to <?php and that fixed the issue! :-) Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted April 4, 2008 Share Posted April 4, 2008 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. Quote Link to comment Share on other sites More sharing options...
craygo Posted April 4, 2008 Share Posted April 4, 2008 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 Quote Link to comment Share on other sites More sharing options...
drewbee Posted April 4, 2008 Share Posted April 4, 2008 Hmm. I dont think i've ever used the <?php syntax before. I think it looks ugly :x Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted April 4, 2008 Share Posted April 4, 2008 Meh, i wish they'd just drop the short tags. Would save a hell of a lot of confusion. Not only that, but it's a pain when people use them on the forum in tags, since we don't get syntax highlighting! Quote Link to comment 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.