New To PhP

Status
Not open for further replies.

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!
 

YamiKaitou

Member
Messages
636
Reaction score
0
Points
16
PHP:
<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>

You were using some weird double quotes. If that is your double quote button, then try using the single quote
 

abseeley

New Member
Messages
2
Reaction score
0
Points
0
Oh gosh,
thankyou so much! that worked out just fine, and phpinfo is disabled for security reasons but thats rickity tick! Thanks!
 
Status
Not open for further replies.
Top