Date: 06/26/01
- Next message: danbeck <email protected>: "[PHP-DEV] Bug #11675 Updated: zzip_open() has a wrong arg count and doesn't validate arg2 correctly"
- Previous message: kalowsky <email protected>: "[PHP-DEV] Bug #11595 Updated: Error in the migration PHP3 to PHP4 with OpenLink-ODBC drive"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
that is true if it works on another pc it cannot be as bug...
sorry
is there somebody who can help me with my problem ?
thanks
Roman
----- Original Message -----
From: "Bug Database" <php-dev <email protected>>
To: <roman.kytka <email protected>>
Sent: Tuesday, June 26, 2001 3:03 PM
Subject: Bug #11695 Updated: rmdir
> ID: 11695
> Updated by: sniper
> Reported By: roman.kytka <email protected>
> Old-Status: Open
> Status: Bogus
> Bug Type: *Directory/Filesystem functions
> Operating system:
> PHP Version: 4.0.6
> Assigned To:
> Comments:
>
> If it works on some other PC but not on yours, it's permissions or
something else reading / being in that directory. Anyway, not a bug.
>
>
> Previous Comments:
> --------------------------------------------------------------------------
-
>
> [2001-06-26 08:38:05] roman.kytka <email protected>
> Please I donīt know if it is a bug or not, but this script works on my
friendīs PC and doesnīt on mine. I need to delete dirs and files. Files are
deleted from dirs correctly but i cannot delete dirs (older than 2 hours).
Please can you help me?
> Thanks Roman.
> my script:
> <?
> clearstatcache();
> $default_dir = Dir("C:/mydir/");
> $tmp=$default_dir->Read();
> $tmp=$default_dir->Read();
>
> while($name=$default_dir->Read())
> {
> $fullname = $default_dir->path . $name;
> $isdir = is_dir($fullname);
> if ($isdir)
> {
> $create = FileCTime($fullname);
> $act_time = Time();
> $time = $create + 7200;
>
> if ($time < $act_time
> {
> $d = dir($fullname);
> while( $entry = $d->read() )
> {
> if ( $entry != "" && $entry != "." && $entry
!= ".."
> {
> $fn = $d->path."/".$entry;
> unlink( $fn );
> }
> }
> $d->close();
> rmdir ($fullname);
> }
> }
> }
> $default_dir->close();
> ?>
>
> And result? Here you are...
> <b>Warning</b>: RmDir failed (Permission denied) in
<b>C:Koruna-zalpokus.php<
> /b> on line <b>38</b><br>
>
> My PC is Win2000(fat32), Apache 1.3.x, PHP 4.0.6.
> Dirs are created using mkdir ($dir, 0777);
>
>
> --------------------------------------------------------------------------
-
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=11695&edit=2
>
>
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.262 / Virus Database: 132 - Release Date: 12.6.2001-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: danbeck <email protected>: "[PHP-DEV] Bug #11675 Updated: zzip_open() has a wrong arg count and doesn't validate arg2 correctly"
- Previous message: kalowsky <email protected>: "[PHP-DEV] Bug #11595 Updated: Error in the migration PHP3 to PHP4 with OpenLink-ODBC drive"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

