PHP Hello world.I am newbie -
this question has answer here:
- “hello, world” in php displays nothing 6 answers
here code
<html> <head> <title>php test</title> </head> <body> <?php echo '<p>hello world</p>'; ?> </body> </html>
why browser don't show "hello world",but trying save file(helloworld.php)?
sorry stupid question.
php pages run on php webserver. can't give textfile .php extension , double-click it. make sure
- you have webserver (e.g. apache httpd) installed.
- you have php installed.
- make sure php file in webroot (e.g. htdocs)
- you go page via url hits server (e.g.
http://localhost/page.php
)
Comments
Post a Comment