Re: [PHP-DB] delete file contents (sorry if i posted this twice, problem with signing up)

2001-12-12 Thread Dobromir Velev
Hi, the easiest way is to open the file in a write only mode. $fp=fopen("/var/mail/myaccount","w"); $fclose($fp); Here's an excerpt from http://www.php.net/manual/en/function.fopen.php 'w' - Open for writing only; place the file pointer at the beginning of the file and truncate the file to zer

Re: [PHP-DB] delete file contents (sorry if i posted this twice, problem with signing up)

2001-12-11 Thread Miles Thompson
Anna, Check the docs, but I believe if you fopen() with the "w" flag it overwrites the contents. Miles At 05:03 PM 12/11/2001 +, DigitalKoala wrote: >Hi Everyone, > >I'm running a script that automatically reads lines from >/var/mail/myaccount, parses the lines then insert specific items i

RE: [PHP-DB] Delete file

2001-07-10 Thread Kevin Johnson
http://www.php.net/manual/en/ref.filesystem.php -Original Message- From: andRie Is [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 3:28 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Delete file Hello php-db, How to delete file using PHP ? and how to set it's permission ?