/    Sign up×
Community /Pin to ProfileBookmark

Downloading Files from Server-Server

I was wondering if I could make a proxy-like system to download large files and place them on my server. Such as an .exe from another server that is >5mb big, etc. When ever I use file_get_contents, my page returns blank as if the php script cant finish downloading.

If someone could help, MUCH APPRECIATED!!

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@littlenedJul 19.2007 — If you're using PHP then you'll probably need to make some changes to the php.ini file. The reason being is that PHP pleases a restriction on the length of time a PHP file can run for, after either 30 or 60 seconds anything the file is doing is stopped.

Theres something in PHP.INI called MAX_EXECUTION_TIME

You may also be able to set this information in a htaccess file depending on the version of php installed.

Try searching google for MAX_EXECUTION_TIME .htaccess
×

Success!

Help @duckboy81 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...