Your line 2 doesn't end with a semicolon and causes the parse error on the next line. I don't think you can suppress parse errors because your code isn't running yet.
once your code is running you can append die() to any decision statement or you can append echo If (!isset($r)) die("$r wasn't set"); If (!isset($r)) echo "$r wasn't set"; Hope this helps, Hugh ----- Original Message ----- From: "Ceyhun Güler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 10, 2002 12:05 PM Subject: [PHP] parse error? how can I print spesific message for all error mesage > Parse error: parse error in c:\inetpub\wwwroot\kocak\resimgoster.php on line > 3 > > How can I print my own message like "sorry not avaiable!" > for all error happening in my php file > but I want to make it only for this file > I don' t want to configure My IIS.... > > My script was which Michael Kimsal was helped me to translate with " can > anyone translate my script to php? post"---> > > <? $d = $HTTP_GET_VARS["dir"]; > $r = $HTTP_GET_VARS["res"] > $d = str_replace("%","/",$d); > ?> > <title><?=$r;?></title> > <body> > <img src="<?=$d;?>/<?=$r;?>"> > > </body> > > ThankS! > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php