Web Hosting Talk







View Full Version : new kids having problem with PHP


Curious Cat
12-27-2002, 02:08 PM
Hi Guys

I've tried to setup php to run on my local workstation with WinXP and Apache. I've tested apache to be running alright and had make the following config on apache to run PHP

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .htm .html .phtml .php3
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php-source .phps

But..... I still couldn't get PHP to run and the error is as follows. Anyone one can help?

Parse error: parse error, unexpected T_STRING in c:\program files\apache group\apache\htdocs\testing.php on line 2

webx
12-27-2002, 03:05 PM
Please post the code of testing.php :) Looks like php is working but something is wrong with the code.

RackNine
12-27-2002, 05:37 PM
Unexpected --- usually means you missed a semi-colon :)

-Matt

Lippy
12-28-2002, 04:23 AM
Look on line 2 for syntax errors, chances are its as stated before a missing ;