Jump to content

File Upload Script (remote file fetching) including resume support using fread


Dead_Man_Walking

Recommended Posts

Hello everyone,

First of all i am pretty new to PHP normally work in Flash scripting. I have some problem which i will describe in detail in case i miss any point or have done any mistake my apologies for the same.

I have installed the below as webserver and everything working fine.

Web-Developer Server Suite 1.18
[code]http://www.devside.net/server/webdeveloper[/code]


Now something about the problem.

I have got a script which download from a remote url with resume support. It uses socket connections to download the file. The script is working fine. But some hosts disable socket communication so does not works everywhere. The script has even script execution timeout handle which shows the resume download option in case the script stops before the download is complete.


I want the same thing to work without socket communication maybe using fread function.

[code]http://in.php.net/manual/en/function.fread.php[/code]

I tried the code posted above but unable to make it to work. It always shows file not found and i am no good in PHP.

If anyone can help me regarding this it will be appreciated. Please don't criticise me if i am asking too much. Also English is not my native language.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.