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
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
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
&
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
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
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
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
7 matches
Mail list logo