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
+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
* 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
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';
?
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
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
6 matches
Mail list logo