Results 1 to 6 of 6
-
01-07-2010, 03:26 PM #1Aspiring Evangelist
- 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?
-
01-07-2010, 09:05 PM #2Retired Moderator
- 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
-
01-08-2010, 01:57 AM #3Disabled
- 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 ..
-
01-08-2010, 02:50 AM #4Disabled
- Join Date
- Dec 2009
- Posts
- 162
Raise a ticket with your hosting provider rather than breaking your head on how to download the file :-)
-
01-08-2010, 05:10 AM #5WHT Addict
- Join Date
- Jun 2008
- Location
- India
- Posts
- 130
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
-
01-08-2010, 05:14 AM #6Disabled
- Join Date
- Dec 2007
- Posts
- 3,597
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
-
a simple download script
By ferzan in forum Web Design and ContentReplies: 4Last Post: 09-02-2004, 06:26 AM -
Need a simple download script.
By Philipf in forum Programming DiscussionReplies: 2Last Post: 06-21-2004, 06:27 PM -
Paypal Download File Script
By PaddysPlace in forum Web Hosting LoungeReplies: 20Last Post: 12-25-2003, 03:21 AM -
I Need script for instant download of zip file
By hostlegal in forum Other Offers & RequestsReplies: 6Last Post: 12-11-2003, 02:56 PM -
SImple PHP code to notify of file download?
By vito in forum Programming DiscussionReplies: 9Last Post: 11-28-2002, 10:45 PM