Can't view php content
Posted by: Derwood (---.netvigator.com)
Date: April 19, 2007 03:45PM

I put files on my localhost but when i click on them to view them. it gives me the right directory in url but, its a blank page...

My page content was:

<?
echo "Hello";
?>


Thanks in advance.

Options: ReplyQuote
Re: Can't view php content
Posted by: yfastud (72.236.169.---)
Date: April 19, 2007 04:49PM

By default, short_open_tag in php.ini is off, and you can't just directly click on the file but access it as follows:

If saved file in wamp/www:

[localhost]

If saved file in wamp/www/folder:

[localhost]

Have fun,

[www.jlbn.net] (testing WAMPS)
[test.jlbn.net] (testing codes)

Options: ReplyQuote
Re: Can't view php content
Posted by: CyberSpatium (71.237.217.---)
Date: April 19, 2007 07:05PM

change
<?
echo "Hello";
?>

to
<?php
echo "Hello";
?>


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

Please visit my latest website Clarify Loans:
clarifyloans.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.