Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread John Nichel
Ben Ramsey wrote: John Nichel wrote: b) Paths in the MS world are with the backslash (\) and not the forward slash (/) Windows NT onward (XP, 2003, etc.) should understand both the forward slash and the backslash in a file path. Like I said, it's been a loong time ;) -- John C. Nichel

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Maerlyn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Nichel wrote: > Ahmed Abdel-Aliem wrote: > >> $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

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
John Nichel wrote: b) Paths in the MS world are with the backslash (\) and not the forward slash (/) Windows NT onward (XP, 2003, etc.) should understand both the forward slash and the backslash in a file path. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread John Nichel
Ahmed Abdel-Aliem wrote: $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] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: chmod("files/".$this->File_Name, 777); I'm not really sure how chmod() works on Windows. Someone else here may be able to answer that. However, I do know that chmod() expects an octal as the second argument, so you must prefix that 777 with a 0. It should be: chmod("f

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Josip Dzolonga
On ÐÐÐ, 2005-04-11 at 14:28 -0400, Ben Ramsey wrote: > The webserver needs to have permission to modify the file that you are > trying to delete. Check the file and directory permissions by > right-clicking the directory and going to properties. You will probably > need to give the user that con

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ahmed Abdel-Aliem
On Apr 11, 2005 8:39 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote: > Ahmed Abdel-Aliem wrote: > > On Apr 11, 2005 8:28 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote: > > > >>Ahmed Abdel-Aliem wrote: > >> > >>>i have a problem with deleting files, i use windows XP and installed > >>>on it apache server & PHP

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: On Apr 11, 2005 8:28 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote: Ahmed Abdel-Aliem wrote: i have a problem with deleting files, i use windows XP and installed on it apache server & PHP 5.1 i use unlink($file) to delete files but it doesn't work while it works fine on my webho

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Jason Wong
On Tuesday 12 April 2005 02:28, Ben Ramsey wrote: > In general, permission settings under Windows suck. Hmm I thought that the ACLs on NTFS were about the only thing that is good about Windows. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators *

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ahmed Abdel-Aliem
On Apr 11, 2005 8:28 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote: > Ahmed Abdel-Aliem wrote: > > i have a problem with deleting files, i use windows XP and installed > > on it apache server & PHP 5.1 > > i use unlink($file) to delete files but it doesn't work while it works > > fine on my webhosting w

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: i have a problem with deleting files, i use windows XP and installed on it apache server & PHP 5.1 i use unlink($file) to delete files but it doesn't work while it works fine on my webhosting which is on linux machine is there another function to use to delete files under w