Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2007
    Posts
    360

    I need a simple script to download a file to my server

    I need a simple script to download a file to my server

    I have a link to a file, I need a simple script to download that file into my server as I dont have SSH and cannot use WGET.

    Can someone help?

  2. #2
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,849
    Is this on a shared server where the host has disabled wget? If so your best bet is simply to ask the host what you should use instead. There are many possible options (eg. PHP fopen, lwp-request / GET, lynx) but if wget is blocked, these may be too. Commonly hosts will disable such functions because they can help an attacker to exploit website vulnerabilities, but they should provide an alternative (eg. a renamed wget) for users with a legitimate need.
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  3. #3
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,452
    You have to contact your hosting provider.

    See if you can use wget through the cron ..

  4. #4
    Raise a ticket with your hosting provider rather than breaking your head on how to download the file :-)

  5. #5
    Join Date
    Jun 2008
    Location
    India
    Posts
    130

    Question

    Allowing wget for a user is a security threat..........I have doubt in it...they might no t be allow but they will help u to download something for an instance

  6. #6
    If you need that to be done at once I can recommend you download file to your PC and them upload to the server using FTP.

Similar Threads

  1. a simple download script
    By ferzan in forum Web Design and Content
    Replies: 4
    Last Post: 09-02-2004, 06:26 AM
  2. Need a simple download script.
    By Philipf in forum Programming Discussion
    Replies: 2
    Last Post: 06-21-2004, 06:27 PM
  3. Paypal Download File Script
    By PaddysPlace in forum Web Hosting Lounge
    Replies: 20
    Last Post: 12-25-2003, 03:21 AM
  4. I Need script for instant download of zip file
    By hostlegal in forum Other Offers & Requests
    Replies: 6
    Last Post: 12-11-2003, 02:56 PM
  5. SImple PHP code to notify of file download?
    By vito in forum Programming Discussion
    Replies: 9
    Last Post: 11-28-2002, 10:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •