Re: parse error? how can I print spesific message for all error mesage

From: Date: Tue, 12 Mar 2002 21:04:01 +0000
Subject: Re: parse error? how can I print spesific message for all error mesage
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88239@lists.php.net to get a copy of this message
On Tue, 12 Mar 2002, Ceyhun Güler wrote: > than the script works like mine > but I wonder to disable "Warning: Undefined index: dir in > c:\inetpub\wwwroot\kocak\resimgoster.php on line 1" > response if someone directly enter "localhost/myphp/resmigoster.php" I want > to say him that "Access Denied" Or something like that use error_reporting() (see manual) to suppres warnings. to give back an error use something like; if (!isset($dir) || !isset($res)) { print "Access Denied"; exit; } > > > > > > -- Jan Rademaker <janr@486.yi.org> http://www.ottobak.com

« previous php.general (#88239) next »