Save file by click

Posted on 16th Feb 2014 07:03 pm by admin

I'm not understand how to save file from page. I'd like make link to file with save ability.
foreach (glob("*.*") as $filename)
$uploadfile = $_GET['file'];
readfile ('upload/'.$uploadfile);
echo "<a href='upload.php? file=$uploadfile'> $filename </a> </p>";
and msg appear: Warning: readfile(upload/) [function.readfile]: failed to open stream: No such file or directory in ..


No comments posted yet

Your Answer:

Login to answer
134 Like 9 Dislike
Previous forums Next forums
Other forums

mysql_affected_rows() usage
Possibly a MySQL issue, but the function that is not behaving in the anticipated way is a PHP functi

no idea what to do...
I'm fed up. I had issues with code that I have working on a different site that didn't work on my cu

RadioButtonList data selection
view plaincopy to clipboardprint?

Struct/union and scope problem!
HI all , I have
Code: in header.h typedef struct Node Link; /* ---------

Have a small problem and I'm not able to understand why I'm getting the results I'm getting... and i

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS

Play Free Quiz and Win Cash