To clarify/reiterate a previous question I had:
Scenario: User clicks link to binary file, and chooses "save". After the file is downloaded, I need to have the server's copy deleted. Thus, I need some way to check to see if the user has downloaded the file.
I am running under FreeBSD, so COM objects are not available.
Any suggestions would be greatly appreciated. I am against a wall.
Download check - take 2
Moderator: General Moderators
why do you create the file and keep it anyway?
e.g.orif you have to invoke an external programm
e.g.
Code: Select all
<?php
header('Content-type: text/plain');
header('Content-disposition: attachment; filename=sqrts.txt');
$arr=range(0,10);
$arr=array_map('sqrt', $arr);
print_r($arr);
?>Code: Select all
<?php
header('Content-type: application/octet');
header('Content-disposition: attachment; filename=dirlist.txt');
passthru('ls -lad *');
?>