Click to See Complete Forum and Search --> : parse error
jaxomp
09-16-2001, 10:59 AM
hello
i have installed php4 and apache on win98
and it seems that it runs well.
but i got following error:
parse error on line ...
the code was the simple "hello world" example from php.net
when i type: "php file.php" at the prompt i got this message too.
please help
vincente
09-16-2001, 01:16 PM
Shos us the source of the script.
jaxomp
09-17-2001, 02:54 PM
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo \"Hello World<p>\"; ?>
</body>
i think this is a very simple script and there\'s nothing wrong with it
vincente
09-17-2001, 03:48 PM
I take it the parse error was on the line with the echo command in it, and that the backslashes in front of the quotes are not there in the real source?
jaxomp
09-19-2001, 11:52 AM
yes and yes and there were also some tags in it
i have installed apache from a precompiled exe-file and it works normally.
php wa salso installed from an exe-file and i entered the path for extensions and server-root in the php.ini.
and also copy the php4ts.dll to windows\system.
for running php as a module, i copied the lines from the readme-file to the httpd.conf and when i try to start apache i got the error that apache can't load this dll (i can't remember the right name. but he shows me the right path. when running php as a cgi script i copied the lines for this case to the httpd.conf and got no error
when starting apache. but it throws this parse error message.
i wondered why i got this message when i typed it at the prompt, too.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.