Welcome guest! Login or Sign up!
Set my location
Home Ask Browse Photos Groups Advisors Widgets
Home » Design & Development » saving a file on the disk

Saving a file on the disk

Posted by shradha 2 months ago
Send me Private Mail | Report Abuse

i have writen data to a file in php and now i want to save the file automatically on the disk?

i have used this following code :

header("Content-Disposition: attachment; filename=" . $textFileName);
header('Content-type: application/zip');
header('Content-Length: ' . $textFileName);
readfile($textFileName);

but it has some problem , can u help me in sorting it out......




Post an Answer:

Your Answer: HTML is not allowed.


Rss_feed    Myaol_cta1    Addtomyyahoo4    Add