jrstafford Posted February 22, 2007 Share Posted February 22, 2007 I have the latest version of php installed on a Windows 2003 server, running IIS, MySQL, phpMyAdmin. phpMyAdmin is working wonderfully, so I would assume that PHP is setup correctly. However, I recently setup a website built with PHP and when you navigate to any of the pages the source code ends up with nothing except: <html> <head> <title>Page Title</title> </head> <? print(Date("l F d, Y")); ?> <body> </body> </html> So it looks as though the PHP isn't being interpreted. How can phpMyAdmin be working if the server is not interpreting php code??? I even put the test file inside the phpMyAdmin folder to see if it would work from there...same result as above. Anyone have any ideas as to what is going on here? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
craygo Posted February 22, 2007 Share Posted February 22, 2007 does the file have the extension ".php"?? IIS will not process php in files with html or htm extension. Ray Quote Link to comment Share on other sites More sharing options...
jrstafford Posted February 23, 2007 Author Share Posted February 23, 2007 Yep, it has a php extension. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 23, 2007 Share Posted February 23, 2007 Is short tags on? try <?php not <? Quote Link to comment Share on other sites More sharing options...
jrstafford Posted February 23, 2007 Author Share Posted February 23, 2007 Well, that was it!! Thank you...where is that setting? Quote Link to comment Share on other sites More sharing options...
jrstafford Posted February 23, 2007 Author Share Posted February 23, 2007 I found it in the php.ini file. Amazing how much that stuff makes sense after you know what it does! Thanks again. 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.