hi i'm beginer for php
Posted by: suresd3 (49.137.77.---)
Date: December 02, 2011 12:30PM

i have installed wampserver 2.2 in my windows7 environment , and i have created the php file in www directory, that is small program <?php echo"welcome to php"?> it's not opening in browser ... nothing is shown blank page that is .. can any one tell me the solution for that....

Options: ReplyQuote
Re: hi i'm beginer for php
Posted by: habeebullah (---.bolton.ac.uk)
Date: December 06, 2011 03:02PM

Test PHP properly:

Download 'OSCommerce' from here: [www.oscommerce.com]

Install it on your server and test if the PHP is working.


If it is working:
There is no problem with WampServer but a problem with your coding


If it is not working:
Either reinstall WampServer
OR
Fix the PHP problem in the HTTP Conf file


You could also use the Show PHP feature to diognose PHP for advanced users or see the version, might be a case of upgrading from PHP4 to PHP5.

Hope that helps,

:-)

Options: ReplyQuote
Re: hi i'm beginer for php
Posted by: jessejesh (---.cppib.ca)
Date: December 06, 2011 05:22PM

well, one possible reason could be setting up short open tags.

Go to php.ini file and check if short_open_tags is set to on or not?

Otherwise use
<?PHP echo "Hello PHP!"; ?>

rather than

<? echo "hello php!"?>

smiling smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.