| | |
problem with file_get_contents?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2008
Posts: 4
Reputation:
Solved Threads: 0
PHP Syntax (Toggle Plain Text)
$fp = "http://".$site."/stor10392/".$filename; $complete = file_get_contents($fp); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-type: ".$mimetype); header("Pragma: public"); header("Content-Disposition: attachment; filename=\"".$filename."\""); echo $complete;
this is code from my download script
this making save box from browser taking too long to appear .. (30-40sec on 50mb file)
anyone know how to make it fast?
ps: if you need full code please let me know.
Last edited by darjana; Oct 31st, 2008 at 4:50 am.
•
•
Join Date: Aug 2005
Posts: 150
Reputation:
Solved Threads: 13
Guess it takes PHP so long to fetch the data from the file. Try to put the function file_get_contents() after the header-modification.
Don't know if thats the problem but tell me anyway if it worked or not.
Don't know if thats the problem but tell me anyway if it worked or not.
![]() |
Similar Threads
- Problem with Windows Update and WinXP (Web Browsers)
- Installing Windows 98 On VMware. Floppy problem (Windows 95 / 98 / Me)
- Windows XP keeps restarting since a new video card (Windows NT / 2000 / XP)
- Redhat Linux 6.2 - ipop3d problem? (*nix Software)
- Problem with T720 (Cellphones, PDAs and Handheld Devices)
- Connection Problems (Networking Hardware Configuration)
- Encoding (Unicode) problem in IE 6.0 (Web Browsers)
- .htaccess mod_rewrite problem (Linux Servers and Apache)
- Javascript/HTML problem!!! (JavaScript / DHTML / AJAX)
Other Threads in the PHP Forum
- Previous Thread: How to pull info from MySQL to populate title tag?
- Next Thread: help me please?
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google href htaccess html httppost if...loop image include insert ip javascript joomla jquery key library limit link links login mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search searchbox server session sessions sms sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website youtube zend





