parse error when load mboard.php

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
Tim

parse error when load mboard.php

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Tim

Thank you...

Post 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
Tim

Thank you...

Post 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
Locked