hi guys...
this problem is related to the situation regarding the file download to the client... here we go...
i created a temp mysql table and then dumped its contents to a text file using a "select into outfile" statement. you have to tell mysql where you want to place the txt file, and i choosed the "/tmp" directory since almost every user can access it without any problems. the file is then created (by the user "mysql" and with the group "mysql").
i then can downlaod the file, after asking the user the path and the name... so far it's gorgeous... but... :o(
now, i need to get rid of the file in the server side for future use of the process. i read and found out php does not have a delete method; instead i have tried using exec() and system(), but none of those seem to work! the file remains in place... :o(
i'm issuing the commands with the following syntax:
$delete = system("rm /tmp/filename.ext");
or
$delete = exec("rm /tmp/filename.ext");
could anyone please tell me what could possibly be wrong or how could i get rid of that file?
thanks! :o)