Search
Left Quote    Choose a job you love, and you will never have to work a day in your life.
- Confucius    
Right Quote
 
[login] | [Register]
Forum Index » General Discussion » Viewing Topic and Replies
Post Reply


        Viewing Topic: A Question from a beginner
  This user is offline  Mushq
  Subject: "A Question from a beginner" Posted: @ 12:32 pm on Dec 09 2007   
Member #: 505
Rank: User - (1)
Since: 12/09/07
Posts: 1

I created a test.php file in my inetpub folder and wrote the following script in that file, but when I access that page by url "http://lo calhost/test.ph p" it prompts me the error "The page cannot be found ", can anyone please guide what am I doing wrong.

<!DOCTYPE HTML PUBLIC "-//W3C//D TD HTML 4.0 Transitional//E N">
<html>
<head>
<title>My First PHP Page</title& gt;
</head> <body>
<h1>My First PHP Page</h1>
<?php

echo '<p>This is my first PHP script.</p&g t;';

?>
</body> </html>

Thanks and Best Regards,
Mushq

    Viewed: 4,401 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: A Question from a beginner" Posted: @ 5:45 pm on Dec 09 2007    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

Is your webserver running? Try: http://127.0.0. 1/test.php Also, you have to download and install PHP on your webserver for PHP to work.




-bs0d | AllSyntax.com

    Viewed: 4,394 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank