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?.
php installation help
Moderator: General Moderators
Re: php installation help
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
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.
Code: Select all
<?php
echo "this is php test";
?>http://www.w3schools.com/php/func_string_echo.asp
Hope all this helps.