Welcome Guest ( Log In | Register)



 
Closed TopicStart new topic
> Help With Removing Files And Folders, removing all files from a directory
electriic ink
post Dec 18 2005, 02:30 PM
Post #1


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,223
Joined: 11-February 05
From: Heaven
Member No.: 3,709



Is there a function or a group of functions which I can use to delete all the files an folders in a directory? I've tried rmdir() but it complains that it can't remove it because there are files/folders in it.

Go to the top of the page
 
+Quote Post
SqlByte
post Dec 18 2005, 05:43 PM
Post #2


Premium Member
********

Group: Members
Posts: 172
Joined: 18-August 05
Member No.: 10,836



Try using FileMenager under your cPanel.
Go to the top of the page
 
+Quote Post
electriic ink
post Dec 18 2005, 05:46 PM
Post #3


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,223
Joined: 11-February 05
From: Heaven
Member No.: 3,709



I know cPanel can do that, but I would like a function which I can use in my php scripts, rather than having to delete it manually each time.
Go to the top of the page
 
+Quote Post
Saint_Michael
post Dec 18 2005, 05:56 PM
Post #4


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,561
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



hey cmat go here it might help you out.

http://us3.php.net/function.unlink

and or

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

both give some info on doing it if you have not already gone to this site.
Go to the top of the page
 
+Quote Post
electriic ink
post Dec 19 2005, 10:00 AM
Post #5


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,223
Joined: 11-February 05
From: Heaven
Member No.: 3,709



Thanks S_M. I've modified one of the scripts provided in the user notes section and it now works smile.gif
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Converting Video Files From One Format To Another(6)
  2. Read-only Folders In Xp(13)
  3. Does Anyone Know How To Make Exe Files(19)
  4. The New And Very Good Free Host Server(13)
  5. Informix To Sql Server (or How To Open .unl Files)(2)
  6. Eclipse Exporting .jar Files(5)
  7. How To Disable "show Hidden Files And Folders" In Folder Option(12)
  8. Sharing Files And Printer Between Windows Vista And Xp(9)
  9. Php Ftp Upload Form(1)
  10. How To Display Images Of A Directory(4)
  11. Converting Audio Files In Vista(7)
  12. 1350 Great Free Logos (jpg + Psd)(8)
  13. Best Way To Transfer Files(6)
  14. Jar Executable Files(3)
  15. Audio Files?(5)
  1. Naming Web Page Files(9)
  2. How Can You Get Audio Files From Itunes Videos?(1)
  3. Auto-upload Files With Filezilla And Autohotkey(0)
  4. Browse System Files In The Browser...(2)
  5. Lan Surfer In Linux(2)
  6. Firefox Temporary Media Files(0)
  7. Panasonic Lumix - Problems With Movie Files(0)
  8. How To Download Any Flv Files From Any Sites(6)
  9. Clearing Your Ie Tif(0)
  10. How To Create Pdf Files Using Free Tool(0)
  11. X Files: I Want To Believe!(2)
  12. Deny Or Grant Users Access To Files Of Choice (vista)(3)
  13. How To Transfer Files Directly From My Computer To The Trap17 Account(6)


 



- Lo-Fi Version Time is now: 13th October 2008 - 01:09 AM