hey this is my first post on these forums. i'm trying to install a new script on my webpage. i'm pretty sure i followed the directions correctly, so i don't know why i'm getting this error. the full error is:

Parse error: parse error, unexpected $ in /usr/home/spree8/public_html/Shoutbox/shoutbox.php on line 221

i did some searching a bit and couldn't find an answer. the thing that i don't understand is that it says the error is on line 221. when i goto line 221 in my shoutbox.php file, it ends at line 220 with ?> is there something i'm just doing really wrong?

thanks in advance.

    can i post my .php file for you to take a look at?

      if it's 220 lines you're better off putting it on as an attachment

        very quick check, didn't see anything wrong in my editor?

          🙁 i don't know what i'm doing wrong. i followed all the instructions in the readme. pretty straight forward. pretty much just setting up the sql db and changing some names/passes. it didn't even mention anything about the shoutbox.php file that is giving me trouble. 😕

            found it! Phwew - there's no closing brace after the

            if ( !isset($conf) )
            {
                $conf="shoutboxconf.php";
            }
            else
            {
            	# michel v was there :)
            	$conf = str_replace(':', '', $conf); // hi cross-site scripting, bye cross-site scripting
            	$conf = str_replace('%3a', '', $conf); // hi cross-site scripting, bye cross-site scripting
            	$conf = str_replace('./', '', $conf); // to avoid directory traversal }//*/
            }

            Bit about 40 lines down (I've added it there, just add it yourself

              😃 thanks alot. worked like a charm!

                Write a Reply...