Benjamin Juang (ibneko) wrote,
Benjamin Juang
ibneko

WTF...

Why does my server not like:

if (isset($_POST['url'])) {
#clean URL
print $_POST['url'];

    /*
$out = escapeshellarg("addblog-test.pl $url");
print $out;
*/
}

if ($errors){
print "
$errors
";
}

(it gives me an error:
Parse error: syntax error, unexpected '}' in /home/uvemympn/public_html/dev/addblog.php on line 16, which line 16 is the last line.)

Yet it's perfectly fine if I take out the comments?
if (isset($_POST['url'])) {
#clean URL
print $_POST['url'];
}

if ($errors){
print "
$errors
";
}


I don't get it. I really don't. I even tried different ways of commenting... # and // both...
Tags: php
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments