Page 1 of 1

php installation help

Posted: Mon May 04, 2009 3:40 pm
by shadab
respected sir

I have download php5.2.9 mysql5.1,apche2.2

i also worked on mysql it runs successfully
i also typed http://localhost/
their result were display ( it works).That means apache is also working .

But when i wrote a php program <?php
echo(" this is php test");?>
and saved this program(test.php) to C:\Program Files\Apache Software Foundation\Apache2.2\htdocs

after typing http://localhost/test.php on browser
it didnot display nothing .

Please tell me What I have to do?.

Re: php installation help

Posted: Mon May 04, 2009 7:50 pm
by tech603
Chances are you don't have display_errors on in your php.ini, otherwise you would see your code was failing. Echo is not used like other function therefore no need for the parenthesis. This should work

Code: Select all

<?php
echo "this is php test";
?>
Here is a link to a tutorial that explains how echo works.
http://www.w3schools.com/php/func_string_echo.asp

Hope all this helps.