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

  • Meme~

    If you post a comment to this, I will: a) Tell you why I friended you. b) Associate you with something -- a song, color, photo, etc. c) Tell you…

  • Meme!

    1. Song lyrics that best describe your life at the moment. What do you do, with a BA in english... 2. Most attractive personality trait?…

  • A bizare meme of sorts.

    Via porsupah $ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}'|sort -rn|head 48 ssh 44 ./april1.pl 41 netstat 38…

  • 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