PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I need help badly. I just got the book 'PHP and MYSQL for Dummies" and in like the second chapter it shows a testing script, and i type the script in , and its doenst work.
<html>
<head>
<title>PHP TEST</title>
</head>
<Body>
<p>This is an HTML line.
<p>
<?php
echo "This is a PHP line";
phpinfo();
?>
</body>
</html>
I type it in, and it doesnt work.... I should see
This is an HTML line.
This is a PHP line
Right???
make sure you requested the page via http://server/path/to/script (not just opened the file from your local harddisk)
Ok, how would I do that?
Just to be sure: You have a webserver (either installed on your localhost or got an account somewhere) and there is php running?
Let's assume you have installed an apache webserver, configured php according to http://www.php.net/manual/en/installation.php, the server is up and running and you placed a script called test.php in the DocumentRoot-Directory of the server, you have to call http://localhost/test.php in your browser.
Did you do that?