![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
![]() How do you delete a file once it has been downloaded ?
I don't want to store the name of the file in a list and have a other script deleting the file every hour. I want to delete the file as soon as the download is done. How can I do this ?
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Mar 2004
Location: New Orleans, LA
Posts: 1,001
|
unlink("$filename");
__________________
PHP Programmer ICQ 215-504-788 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2001
Location: http://topadultblogs.com/
Posts: 137
|
What's up with the quotes around the variable name?
__________________
![]() NastyLittle.com - trade with an established adult blog |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
You miss understound my question ... I know how to unlink a file... there is just no event called on download completion...
I don't know where to call the unlink function
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
why not just print out the the content of the file, then delete it?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
hummm seems like an interresting idea ... but how do you print out the content of a file to start a download ?
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
|
usually move_uploaded_file() work for me when working with file uploads
another way of doing it, if unlink doesnt do it for you, is to delete file through shell access, look in to shell_exec() or exec()
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |