Page 1 of 1

parse error when load mboard.php

Posted: Sat Apr 09, 2005 8:21 pm
by Tim
Parse error: syntax error, unexpected T_VARIABLE in C:\www_root\mboard\settings.php on line 35

i checked the settings.php file and it showed:
$settings['display_IP']=1;


please let me know what i did wrong.

thanks,
Tim

Posted: Sat Apr 09, 2005 10:08 pm
by Klemen
The problem probably is with the line BEFORE the line you pasted. What have you inserted for
$settings['admin_email']
?

Make sure you have quotes around the e-mail and the line must end with a ;

Like this:
$settings['admin_email']="you@yourdomain.com";

If this doesn't help post the entire settings.php file

Regards

Thank you...

Posted: Sat Apr 09, 2005 11:21 pm
by Tim
Klemen, you're right on target. i missed the " ; " after my email address.

now i run into another problem. that it said:
Warning: fopen(count.txt) [function.fopen]: failed to open stream: Permission denied in D:\Web Site\cgi-bin\mboard\mboard.php on line 429
Error

Can't open the count file (count.txt) for writing! Please CHMOD this file to 666 (rw-rw-rw)


i am running on windows server and have copied the script into the "cgi-bin" folder and modified access to "script source access and write access" (actually i tried them all). but still getting permission denied.

your help would be greatly appreciated.
thanks,
tim

Thank you...

Posted: Sat Apr 09, 2005 11:49 pm
by Tim
i think i got it figured out...it work now.

thank you so much for all your help. i really appreciated.

thanks again.
Tim