redherring Posted January 25, 2008 Share Posted January 25, 2008 Hi there - Look up "php newbie" in the dictionary... that's my picture. Anyways, i had to "upgrade" our server from php 4.3.8 to php 5.2.5 today. Managed to get it to the point where phpinfo confirms that it's running 5.2.5, but I can't seem to run even a simple script like the following: <html> <head> <title>Example #1 TDavid's Very First PHP Script ever!</title> </head> <? print(Date("l F d, Y")); ?> <body> </body> </html> Nothing gets rendered in the browser. No errors, just blank, and view source reveals exactly the above. It's a windows box running IIS6. Thoughts? I must really be missing something here... Your assistance is GREATLY appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/87840-solved-phpinfo-works-but-scripts-dont-execute/ Share on other sites More sharing options...
roopurt18 Posted January 25, 2008 Share Posted January 25, 2008 Well, your PHP code is not inside the body tag, so it's not going to render on the screen AFAIK. Secondly, try changing <? to <?php. Chances are the upgrade configuration has short tags disabled. Quote Link to comment https://forums.phpfreaks.com/topic/87840-solved-phpinfo-works-but-scripts-dont-execute/#findComment-449330 Share on other sites More sharing options...
redherring Posted January 25, 2008 Author Share Posted January 25, 2008 Thanks for the quick and informed reply! It was the latter... <?php vs. just <? Much appreciated indeed. Quote Link to comment https://forums.phpfreaks.com/topic/87840-solved-phpinfo-works-but-scripts-dont-execute/#findComment-449336 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.