Re: [PHP] Deleting file in /tmp directory

2008-03-28 Thread Daniel Brown
On Fri, Mar 28, 2008 at 11:24 AM, Mário Gamito <[EMAIL PROTECTED]> wrote: > Hi, > > I have this PHP script (simplificated here), called delete_tmp.php > that basically calls external commands: > > > $session_file = '/tmp/sess_89765' > > system(''rm -f' . ' ' . $session_file); > > ?> Tha

[PHP] Deleting file in /tmp directory

2008-03-28 Thread Mário Gamito
Hi, I have this PHP script (simplificated here), called delete_tmp.php that basically calls external commands: delete_tmp.php file is owned by gamito.users /tmp/sess_89765 file has permissions -rw-- and is owned by gamito.users My /tmp permissions are rwxrwxrwt and is owned by root.root

Re: [PHP] Deleting File

2002-03-21 Thread Mike Maltese
Make sure the owner of the server process has delete permissions for the directory in question. - Original Message - From: "pong-TC" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 21, 2002 11:25 AM Subject: [PHP] Deleting File > Hello All &

[PHP] Deleting File

2002-03-21 Thread pong-TC
Hello All I am trying to build a text file, and delete it by using unlink function, but it always refuse to do so because of permission denied. It gives me an error as follows: Warning: Unlink failed (Permission denied) in d:\inetpub\wwwroot\cgi-bin\myfile.php on line 45 Actually, the file was

Re: [PHP] deleting file contents

2001-12-11 Thread Krzysztof Kocjan
recreate it, for example: <% exec( 'type > your_file_name' ); %> Krzysztof DigitalKoala wrote: > Hi Everyone, > > I'm running a script that automatically reads lines from > /var/mail/myaccount, parses the lines then insert specific items into a > database this is in a loop > > What i want

Re: [PHP] deleting file contents

2001-12-11 Thread Kurt Lieber
On Tuesday 11 December 2001 09:00 am, DigitalKoala wrote: > What i want to do is then delete the contents of the file, but not the file > itself...can you tell me the best way to do this? Well, you can read the contents of the original file into a PHP variable using fopen(). Then, use something

[PHP] deleting file contents

2001-12-11 Thread DigitalKoala
Hi Everyone, I'm running a script that automatically reads lines from /var/mail/myaccount, parses the lines then insert specific items into a database this is in a loop What i want to do is then delete the contents of the file, but not the file itself...can you tell me the best way to do thi