Re: Re: Can't Delete File Using Unlink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
John Nichel wrote:

> Ahmed Abdel-Aliem wrote: <snip>
>
>> $dest = $dest_dir . '/' .$this->File['name']; $r =
>> move_uploaded_file($this->File['tmp_name'], $dest);
>> $this->File_Name = $this->File['name'];
>> chmod("files/".$this->File_Name, 777);
>
>
> I haven't messed with PHP/Apache on Windows in a long time but two
> things stick out to me that _may_ be a part of your issue.
>
> a) Can you even chmod on Windows? b) Paths in the MS world are
> with the backslash (\) and not the forward slash (/)
>
a, chmod doesn't work in Windows, but if you have NTFS then you can
set privileges.
b, Windows NT and later versions unterstand both / and \

Maerlyn

- --
Maerlyn
maerlyn[AT]citromail[DOT]hu
http://putraware.ini.hu
GnuPG Public Key ID: 0x0CE0A57
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFCWsodMkyacQzgalcRAvtqAKCJjy0rUVykpsmzJRyUA1cfkdHMxwCgwjkl
72boetSgh8V5gdK5QuPS9Gw=
=XQgB
-----END PGP SIGNATURE-----

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux