Unable to run PHP
Posted by: alyosha (83.136.59.---)
Date: July 05, 2008 08:46PM

Hi Everyone

I just downlaoded WAMP server, and installed on my machine
Services are started, and i see homepage [localhost]

When i create a test project in c:/wamp/www/test/date.php
and run date.php, i see no output displayed just a blank page.

Is there anything i need to configure to run PHP
but by deafult the index.php in root of www works fine

Please suggest

Thanks

Options: ReplyQuote
Re: Unable to run PHP
Posted by: crimsondrac (---.hsd1.tx.comcast.net)
Date: July 05, 2008 10:14PM

Hello, I was having this problem too but found a post here that helped me. If you are using <? as your PHP tag, you need to enable Short PHP tags. Yea, why that is not enabled by default, I do not know. Left click the WAMP tray icon, select PHP > PHP Settings > short open tag.

Options: ReplyQuote
Re: Unable to run PHP
Posted by: toivo (---.nsw.bigpond.net.au)
Date: July 06, 2008 01:06AM

Hi,

You should be using the long open tags <?php instead of the shorter version if you plan to use XML or XHTML. Quote from [au.php.net]:

"For portable, redistributable code, be sure not to use short tags"

Regards,

toivo
Sydney, Australia

Options: ReplyQuote


Sorry, only registered users may post in this forum.