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 <[EMAIL PROTECTED]>
http://www.ottobak.com




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to