[PHP] PHP HTML: newbie question

2002-01-16 Thread Richard
Hi there I just signed up for an account at Spaceports so I can play with PHP ­ I placed some PHP code in an HTML page and uploaded it to the server. But when I checked it in my browser I got the error message: can¹t parse line 1 Line 1 is simply the HTML tag!! On one of their user forums

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Richard Baskett
+1100 To: [EMAIL PROTECTED] Subject: [PHP] PHP HTML: newbie question Hi there I just signed up for an account at Spaceports so I can play with PHP ­ I placed some PHP code in an HTML page and uploaded it to the server. But when I checked it in my browser I got the error message: can¹t

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Nick Wilson
* On 16-01-02 at 22:29 * Richard said Hi there I just signed up for an account at Spaceports so I can play with PHP ­ I placed some PHP code in an HTML page and uploaded it to the server. But when I checked it in my browser I got the error message: can¹t parse line 1 Line 1

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread mike cullerton
hmmm... not sure about the cgi part. you'll probably need to start the file with something like #!/usr/loca/bin/php -q either way, within the file, you also need to tell the php parser what is php and what is html. surround the php code with ?php ? tags like ?php $var = 'Hello World'; ?

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Richard Crawford
Just out of curiosity, what is the name of your page? It might be as simple as making sure it has a .php extension on your page. If it has an .html extension it won't work properly. Just a thought; I could be wrong about this. Nick Wilson wrote: * On 16-01-02 at 22:29 * Richard

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Erik Price
You mispelled the closing /body tag. On Wednesday, January 16, 2002, at 04:33 PM, Nick Wilson wrote: * On 16-01-02 at 22:29 * Richard said Hi there I just signed up for an account at Spaceports so I can play with PHP ­ I placed some PHP code in an HTML page and uploaded it to