Downloading to PHP Server

Posted on 2009-02-18
Last Modified: 2012-05-06
I am trying to download a very large file (almost 1 gig) on a monthly cron job using ftp_get and the file times out before finishing.

Any suggestions on how to get this file downloaded?

Apache server w/ cPanel
Question by:jeffey48
    LVL 15

    Expert Comment

    I know you can set the timeout of ftp using

    but not sure if it can help in your case. Good luck.
    LVL 22

    Expert Comment

    by:Ivo Stoykov
    if you user cron for this, you do not need php justadd to this cron job
    LVL 27

    Expert Comment

    by:Lukasz Chmielewski
    post the httpd.conf
    but I think there should be KeepAlive directives set to the time the file downloads
    LVL 27

    Accepted Solution

    one more: check the values in php.ini
    1. setting max_execution_time in the php.ini file
    2. set_time_limit(int seconds)

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now