Current location: Hot Scripts Forums » Programming Languages » PHP » Deleting Files from Server


Deleting Files from Server

Reply
  #1 (permalink)  
Old 01-18-07, 11:48 PM
sccc2008 sccc2008 is offline
Newbie Coder
 
Join Date: Jan 2007
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Deleting Files from Server

I need to know how to delete a file from the server using PHP. Anyone got any ideas or a place where i can find out how to do it?
Reply With Quote
  #2 (permalink)  
Old 01-18-07, 11:57 PM
Grabber's Avatar
Grabber Grabber is offline
Newbie Coder
 
Join Date: Apr 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Code:

$myFile "testFile.txt";

unlink($myFile); 
you have to mention the exact path to the file though.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting multiple files using checkboxes trailness PHP 2 07-21-06 03:59 PM
Download files from another server using script! benweston Script Requests 5 01-17-06 09:29 AM
List files from another server kailexx PHP 1 08-27-05 01:37 PM
How to copy files from remote server to local server without using ftp connection... ajay007_bond PHP 5 06-15-05 10:35 PM
move files around an ftp server, with php file upload script? wapchimp PHP 2 12-19-04 07:27 AM


All times are GMT -5. The time now is 05:52 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.