How to delete all content in file?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
destiny_cores
Forum Newbie
Posts: 8
Joined: Fri Mar 17, 2006 9:05 am

How to delete all content in file?

Post by destiny_cores »

How to coding for delete all content or all lines in file?

Thanks you
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

This should help:
http://us3.php.net/manual/en/function.file.php


Edit: oops, this is what you're really looking for:

http://us3.php.net/manual/en/function.fopen.php
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

hawleyjr wrote:This should help:
http://us3.php.net/manual/en/function.file.php


Edit: oops, this is what you're really looking for:

http://us3.php.net/manual/en/function.fopen.php

mmm.. linking to a .php file... dont think that him or anybody will get what one looks for ;)

please change the extention to something else
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

those are manual pages pedrotuga.
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

ops.. sorry then... my mistake :oops:
Post Reply