php installation help

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
shadab
Forum Newbie
Posts: 1
Joined: Mon May 04, 2009 3:24 pm

php installation help

Post 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?.
tech603
Forum Commoner
Posts: 84
Joined: Thu Mar 19, 2009 12:27 am

Re: php installation help

Post 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.
Post Reply