abseeley
New Member
- Messages
- 2
- Reaction score
- 0
- Points
- 0
Hi Everyone,
I just signed up for a free adless account and so far im blown away by the quality. I'm a programmer by night but I have never really touched much into the web genre apart from html. I am interested in using PhP and mySQL but I am still learning. Im trying to do a little test page, just a simple hello world but I can't quite figure out where to put it to run properly or maybe Im just all syntaxed wrong. Heres my hello:
<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>
Everytime I try to view it from the public html directory I just get an error on line 9 which is the echo line. A little help for a newbie would be nice, we were all here once! Thank you all very much in advance!
I just signed up for a free adless account and so far im blown away by the quality. I'm a programmer by night but I have never really touched much into the web genre apart from html. I am interested in using PhP and mySQL but I am still learning. Im trying to do a little test page, just a simple hello world but I can't quite figure out where to put it to run properly or maybe Im just all syntaxed wrong. Heres my hello:
<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>
Everytime I try to view it from the public html directory I just get an error on line 9 which is the echo line. A little help for a newbie would be nice, we were all here once! Thank you all very much in advance!