hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Whats wget all abt ?
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Whats wget all abt ?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-10-2006, 09:49 AM
anjanesh anjanesh is offline
Web Hosting Evangelist
 
Join Date: May 2005
Location: Mumbai, India
Posts: 549

Whats wget all abt ?


Hi

I've come across a situation where I got to use wget to load remote files.
I totally dont understand this.
Whats wget all abt ? fopen() and cURL can read remote files too. Why am I told to use wget ?

Thanks

Reply With Quote


Sponsored Links
  #2  
Old 03-10-2006, 11:00 AM
probonic probonic is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 774
wget is very handy for getting files via the command line - quick and simple. Perhaps you can give more details about your situation and maybe we can answer your question better as to why you were told to use wget? I would say unless there are specific circumstances if you were writing scripts fopen() etc. would be better.

Reply With Quote
  #3  
Old 03-10-2006, 11:19 AM
bitfuzzy bitfuzzy is offline
Aspiring Evangelist
 
Join Date: Dec 2004
Posts: 350
NAME
Wget - The non-interactive network downloader.

SYNOPSIS
wget [option]... [URL]...

DESCRIPTION
GNU Wget is a free utility for non-interactive download of
files from the Web. It supports HTTP, HTTPS, and FTP pro­
tocols, as well as retrieval through HTTP proxies.

-------

If you have console access you may want to try "man wget" assuming you're connectiong to a Nix box

Reply With Quote
Sponsored Links
  #4  
Old 03-10-2006, 09:45 PM
anjanesh anjanesh is offline
Web Hosting Evangelist
 
Join Date: May 2005
Location: Mumbai, India
Posts: 549
The person whom Im writing the PHP script for wants this running as cron. But he says that theres no way to use cron directly. wget is required. 1and1 is the host and they have their own control panel. I know to set cron in Plesk, CPanel etc. I dont understand how cron has anything to with wget.

Reply With Quote
  #5  
Old 03-10-2006, 10:36 PM
bitfuzzy bitfuzzy is offline
Aspiring Evangelist
 
Join Date: Dec 2004
Posts: 350
Quote:
Originally Posted by anjanesh
I dont understand how cron has anything to with wget.
Perfect question to ask the person you're working with.

Short answer, it doesn't

Reply With Quote
  #6  
Old 03-11-2006, 01:19 AM
Ninjak Ninjak is offline
Junior Guru Wannabe
 
Join Date: Dec 2005
Posts: 37
cron is a daemon for scheduled periodic tasks. Like once per day roll over the logs, etc.

You can setup cron to do anything with wget, like wget a site every minute, parse it, and then if something looks wrong then email yourself or something.

Reply With Quote
  #7  
Old 03-11-2006, 03:32 AM
Burhan Burhan is offline
Community Guide
 
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
It doesn't. The person will use cron, to call wget, which will then send a request to your script. Its really that simple.

__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
cPanel Releases cPanel, WHM 11.34 with New User Interface Web Hosting News 2012-10-16 13:09:49
cPanel Conference 2012: Scrum and cPanel with John L. Koston Web Hosting News 2012-10-15 09:08:55
cPanel Conference 2012: Branding and How to Do it Better with Felipe Gasper Web Hosting News 2012-10-09 18:00:02
OnApp Adds VMware Support with OnApp Cloud Version 3.0 - HostingCon 2012 Web Hosting News 2012-07-17 15:49:06
OS33 Ties Up Multiple Hosted Services in End User Cloud Dashboard Web Hosting News 2012-03-28 11:12:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?