Getting Files From Other Sites - Using wget

free web hosting
Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Getting Files From Other Sites - Using wget

saxsux
Hello. A while ago, a friend showed me this PHP code (wget) which allows you to get files from other sites. I was a simple one liner type thing.
Since my old host (Nytka) went down, I've lost it, as has my friend.

Do you know anything about wget, and could tell me it?

Reply

miCRoSCoPiC^eaRthLinG
Dunno about php wget, but wget is a standard Unix Shell Command - which you can use like:
shell> wget -r http://url
The -r stands for recursive - i.e. it will download all linked files under the current URL.

Reply

jipman
I think he means how to have a php file download another file

I think you should use the system() command. (more info on http://php.net)

It works like this

<?php
$foo = system('wget http://asdf.com/file.exe ~',$output);
?>

If i'm correct (im too lazy to test it atm, it will download a file file.exe from asdf.com and give back the console messages to the variable $output.

I hope this is what you're asking for

Reply

saxsux
QUOTE(jipman @ Apr 28 2005, 06:16 PM)
I think he means how to have a php file download another file

I think you should use the system() command. (more info on http://php.net)

It works like this

<?php
$foo = system('wget http://asdf.com/file.exe ~',$output);
?>

If i'm correct (im too lazy to test it atm, it will download a file file.exe from asdf.com and give back the console messages to the variable $output.

I hope this is what you're asking for
*




That's the one! It works brilliantly!
Thank You!
biggrin.gif

 

 

 


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Similar Topics

Keywords : files, sites, wget

  1. Organizing C++ Project Files For Large Projects
    (source code, header, makefiles) (4)
  2. Cbel.com >> 203 Manually Selected Sites About Style Sheets
    (0)
    Yesterday I found a website called CBEL.com that has a lot of resources related to Style sheets,
    as the title of the topic says, the CBEL.com has 203 sites about Style Sheets that covers the
    following main categories: CSS Layouts CSS Examples CSS Tutorials CSS Tools CSS FAQs, Help, and
    Tutorials CSS Books CSS References CSS Specifications CSS Browser Compatibility CSS Browser
    Testing CSS Microsoft Internet Explorer CSS Using with XML CSS Product Reviews Best regards,....
  3. Good And Free Sites To Advertise
    (0)
    Easyhits4u: Its simple, you surf other websites with two options, 15seconds per surf or
    20seconds per surf. If you are unpaid you get 0.5 credit for the 15 second surf and 1 credit for the
    20second surf. If you are paid you get the whole 1 credit for 15 seconds. There is also surfing for
    30 seconds (1.5 credits) or 40 seconds (2 credits) but you can remove them from your surfing cycle.
    Once you earn credits you can either convert them to banner impressions, 1 credit gives 15 banner
    impressions if you are unpaid, 20 if you are. Or you can convert them to site views, y....
  4. Logo
    I am in need of a logo for both of my sites. (2)
    I am in need of a logo for both of my sites. I cannot pay you but I will really appreciate it. PM me
    for details. ....
  5. Here Are Some Great Php Tutorial Sites
    (4)
    these site very usefull for php html java 5 day ago i only use w3school recently i have some great
    web for usefull http://www.devresources.net/ http://www.php.net/ http://www.tizag.com/phpT/
    http://www.w3schools.com/php/default.asp http://phpbuilder.com/ http://www.phpfreaks.com/
    http://www.w3schools.com/php/ http://www.hudzilla.org/phpbook/index.php
    http://www.spoono.com/ http://codewalkers.com/ http://www.phpcs.com/ http://pear.php.net/
    http://www.phpclasses.org/ http://phpdebutant.org/ http://www.phpfrance.com/ http://....
  6. Great Software For Building Flash Web Sites
    (1)
    I found a great software that allows you to make your own personal flash web site . and help you in
    publishing it... it's so easy. . and it will make yolur site look amazing /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> name:A4 flash size:9,98 MG
    you could download it from her: http://www.zshare.net/download/19175689cf06350c/ ....
  7. Playing Two Wav Files Simultaneously In C#
    (4)
    I have reached a dead-end, in trying to code the Audio Engine for the game - Bomber Man . The
    current engine uses the native functions(waveOutOpen, waveOutWrite, etc) declared in Winmm.dll file.
    While this allows me to play two sounds together (the Background music and the sound effects), it
    causes frequent memory corruptions. For instance, it changes the value of an integer variable
    located in a different and unrelated class. I spent hours trying to find out why the value was
    constantly changing. When I disabled all the sounds, the problem didn't occur. I used a mo....
  8. Need Some Help/advice On How To Restore Lost Files
    (5)
    My problem is this. I had a photo loader software installed on my computer. This prog indexed a
    couple of hondred photos I had. Yesterday I uninstalled the prog form my computer without
    considering the posibility that the folder containing my photos would be deleted to which it did. My
    question is this, what if I used system restore? would it restore my photos too? Or would it simply
    restore just the prog files only?....
  9. Friends Can't Start The Exe Files I Send :(
    (5)
    I am using visual c++ 2008. and when I send the .exe file that I created to my friend, (from the
    debug folder) he gets an error message when trying to execute it /sad.gif"
    style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> any ideas? when my friend
    tried, he said that he got the following error message: cannot execute .... And lots of PC info.
    When I create these files, I choose win32 console application (something that looks like the cmd
    when executed) please.. I really need to get this thing working Thanks //Feelay....
  10. Hiding Your Personal Files From Pros
    More serious approach to privacy (9)
    Inspired by this thread, I decided to launch this one to see how you folks approach the issue of
    securing your private files at work or at places where computer-professionals can access the machine
    you use. Following is my response to ethergeek's post in the aforementioned topic:
    QUOTE(ethergeek @ May 14 2007, 06:46 PM) 103520 The best way to hide your private files is to
    not keep them on machines that aren't yours. I agree with that completely. Such machine could
    always be taken away from you without prior notice, with the files you care about in ....
  11. If You Have Some Private Files
    (17)
    Hello everyone , Here in this post I will show you how to hide your private files and folders If
    you have some private files and want to prevent others from seeing them you can follow these steps
    to hide these private files First Step Create New Folder any where and rename it hold Alt key
    and press 255 Now you will notice the folder has no name Second Step Now right click this folder
    and select Properties then Customise then change icon and select invisiable icon for this folder you
    will find 4 empty area icons all are fine Third Step Now move all your private ....
  12. Centering The Page
    Like MSN.com and some other sites (9)
    Many sites have a ~780px layout because it fits well with a 800x600px resolution monitor. The
    problem is that I want the whole thing centered in the middle of the screen with equal margins at
    the sides. My CSS is at (Gone, this was MY site - 404) http://portal.trap17.com/wdl/styles.css and
    as you would probably guess, my site is at (Gone, this was MY site - 404)
    http://portal.trap17.com/wdl/ It is centered in Gecko (Firefox) browsers, but in Internet Explorer
    it isn't centered. No matter what I use, whether it is a container or centering the and
    elements, it....
  13. How To Open .bam Files !
    (5)
    Part 1 Extracting files PLEASE DO NOT COPY ! This links with my other topic to 5.6 bams ,
    Loads of people have asked me how do you get pview , extract .mf files. Well im going to show you
    all in one. 1. Download Panda3D v.1.1.0 from here Start Picture Totorial Again, ugggh
    ! 1. Navigate your way to where you installed Panda3D ( It is usually : C:\Panda3D-1.1.0 )
    2. Open the bin folder in the Panda3d directory 3. Find and copy Multify.exe and PView.exe
    4. Paste the Files to the desktop 5. Navigate your way to C:\Documents and s....
  14. Creating Executable Jar Files
    (9)
    Dear Friends Today I will show you how to create an executable jar file. I do not know whether this
    topic is introduced by any other member. Using this method one can build graphical user interface
    program with java which will behave similar to Executable files i.e., the program can be started
    with double clicks. It is an easy alternative. Otherwise to run a java program one has to run it
    through comand prompt(in windows) using java command or by creating java executalbes which are very
    difficult to make. So lets begin: Frist of all, we will....
  15. How To Embed Swf Files In Joomla ?
    (10)
    I want to embed some swf game files into my Joomla project, I've been at it for two hours and
    haven't made much progress. I've tried making a new content item and placing ... but that
    hasn't worked. I'm kind of stuck /sad.gif" style="vertical-align:middle" emoid=":("
    border="0" alt="sad.gif" /> Anyone familiar with Joomla or Mambo that may have some knowledge
    regarding my issue?....
  16. Get User Input From Vbscript For Batch Files
    Get user input from vbscript (2)
    Hello, I didn't see a tutorial on this subject so i'll go ahead and do it. Long ago I used
    batch file programming a quite a bit. I used vbscript files to get user input for the batch files.
    So here is a simple example of using the 'call' command to call for the vbscript file which
    should be in the same folder as the .bat file. in the batch file pretty much anywhere you can start
    the vbscript, and call another .bat file- using @ to of course not echo the line of code - CODE
    @ start /w wscript.exe userin.vbs @ call ~anyname.bat @ del ~anyname.bat....
  17. How Can I Delete Old Files In Windows Xp ?
    HELP!!! (22)
    I've just reinstall my system. But I can't delete old profiles in C:\Documents and Settings
    . I have the Admin right, of course. But... the system don't allow me to delete the files.
    I need to free up some space on my hard disk. (That folder's size is up to 12GB)....
  18. Renaming Files (Using Excel Spreadsheet)
    (22)
    Hi, I want to use filenames on my Excel Spreadsheet for the files I have in my folder. For example,
    let's say I have these in a folder: Reportdummy.doc Charts102.xls DecemberGraphs.xls
    TestScrap.txt etc... And I have this in my Excel spreadsheet: Report1.doc Charts.xls Graphs.xls
    Scrap.txt etc... Is there an easy way for me to copy the cell's value to the file in that
    folder? I want them to be copied exactly in that order. So far I have to do this manually (copy
    from Excel, then rename and paste for each file). Thanks.....
  19. Some Of The Best Soccer Sites ( Add More To This )
    please add some ! (7)
    Ok.... now it's time to review the best soccer sites ! If i shouldn't be posting this type
    of reviews, i whould like someone to let me know ! This are the main soccer sites that may interest
    you, but there might be other good sites, so add your favorite soccer sites ! This time i will add a
    rating from 1 to 10 that represents, in my opinion ,it's usefulness, the design and how easy you
    can find the info you need ! www.livescores.dk 7/10 This is where you will find all the live
    scores you want ! They have a list of sites where you will find standings and li....
  20. Best Wishlist Sites
    (3)
    I'm sure everyone knows about the Amazon.com Wishlists, but what about other sites? What sites
    do you like to go to for them? Which ones do you find people actually having a higher chance of
    picking stuff from? For me, I have wishlists at Amazon, Hot Topic.com, and Playboy, though I'm
    working on one for the Express website as well, since I've found A LOT of stuff there recently
    that I have absolutely fallen in love with. So, what about the rest of you?....
  21. Tennis Sites
    the best tennis-related sites on the net (5)
    www.atptennis.com This is the official site of the atp, the asosacion de tennis professionel.
    Here you will find,under a modern look, the ATP calendar and news, the singles and doubles complete
    rankings, a beautifull photo gallery, small clips and informations about each player ! If you
    want to find out something about an atp player or an atp event this is the place to be !
    www.tennisserver.com This is a tennis site where you will find articles about the players, some
    tennis tips and articles about tennis technology ! The site has 5 categories of artic....
  22. Www.rapidshare.de
    a good place to place your files ! (23)
    This is a site people does not know as it deserves to ! It's simple : You can upload any file
    you want (50Mb limit, but split archives are allowed) without even needing to register ! How ?
    Simple : at the main page there are 2 small boxes : Chose and Upload ! First you chose wich file you
    want to upload, and then you click upload and it will be uploaded ! After that you will get the
    file's link and a destroy link, wich means that if you want to erase the file, you should clik
    that link ! If another person wants to download your file, you give them the file'....
  23. How Do I Chmod Files On Astahost ?
    (20)
    Hey, how do i CHMOD certain files, i need to CHMOD some files to 0777 but i dont know how :-\ i use
    ws_ftp as my ftp client i also have flash fxp....
  24. How To Play *.rm Files With Media Player
    (14)
    How to play Real audio and video files (*.rm) with Windows Media player!? /blink.gif' border='0'
    style='vertical-align:middle' alt='blink.gif' /> Because of competition between Microsoft and Real
    Networks, Windows Media Player does not support Real audio and video files, and real networks does
    not release any patch for WMP. But, Real has released a patch for other media players. Now, I want
    learn you, how you can use this patch to play Real audio and video files. You should have Windows
    Media Player and Real Player: 1- First go to sourceforge.net website and download....
  25. Sharing Files In Windows Xp Home
    I always get an "access denied mesage" (15)
    when trying to access another computer's shared files on my home network i recieve an error
    message " is not accessable. You might not have permission to use this network resource. Contact
    the administrator of this server to find out if you have access permissions. Access denied" anyone
    know why I am getting this message?....
  26. VB.NET: Howto Add And Delete Files
    Just looking for useful code (9)
    I am horrible at dealing with files in VB. I was wondering if anyone could give me some general
    code for a program I'm working on. I need to be able to add to files, display them, and delete
    them. I have use code out of a book, but it never works very well. Any suggestions?....
  27. How To Transfer Files From One Computer To Another
    (16)
    Hi friends, I have two computers both having windows XP pro operating system and i have
    one LAN cable and i connected both computers through LAN terminals and i'm unable to transfer
    data from both computers.So what setting i have to make for doing this? Thanks, sunny....
  28. How To Hide Your Files In XP
    hide doc and folders (18)
    In this tutorial i will show ou how to hide your documents or folders, but you have to remember
    where it is! ok lets go! pick a file you want to hide from windows XP, to help you i will hide a
    file "hidden.doc" in "C:" open command prompt: START>RUN>CMD you might find yourself in your user
    directory. in the command prompt go into the directory of where your file is going to be hidden.
    as my "hidden.doc" is in "C:" i will use "cd.." command to "change directory before" till i get into
    my C: drive once your there use the attributes command on the file you are hiding....
  29. Converting Flash Files To Gif
    how to convert flash files to anim gif (7)
    i used swishmax to make simple flash animation. but then, i figured out for simple animations we
    should use gif instead. this is to ensure wider compatibility with older browser or those who didnot
    have flash installed (for security reasons, etc). so, anyone have a simple solution of coverting SWF
    files to GIF files without compromising its quality?. thanks....
  30. Renaming collection of Pictures (files)!
    (15)
    Renaming collection of Pictures (files)! 1- first select your pictures 2- right click on first
    picture and select rename 3- type your name 4- press Shift and click on the free space between
    first and second Picture 5- see result !....

    1. Looking for files, sites, wget






*SIMILAR VIDEOS*
Searching Video's for files, sites, wget
Similar
Organizing C++ Project Files For Large Projects - (source code, header, makefiles)
Cbel.com >> 203 Manually Selected Sites About Style Sheets
Good And Free Sites To Advertise
Logo - I am in need of a logo for both of my sites.
Here Are Some Great Php Tutorial Sites
Great Software For Building Flash Web Sites
Playing Two Wav Files Simultaneously In C#
Need Some Help/advice On How To Restore Lost Files
Friends Can't Start The Exe Files I Send :(
Hiding Your Personal Files From Pros - More serious approach to privacy
If You Have Some Private Files
Centering The Page - Like MSN.com and some other sites
How To Open .bam Files !
Creating Executable Jar Files
How To Embed Swf Files In Joomla ?
Get User Input From Vbscript For Batch Files - Get user input from vbscript
How Can I Delete Old Files In Windows Xp ? - HELP!!!
Renaming Files (Using Excel Spreadsheet)
Some Of The Best Soccer Sites ( Add More To This ) - please add some !
Best Wishlist Sites
Tennis Sites - the best tennis-related sites on the net
Www.rapidshare.de - a good place to place your files !
How Do I Chmod Files On Astahost ?
How To Play *.rm Files With Media Player
Sharing Files In Windows Xp Home - I always get an "access denied mesage"
VB.NET: Howto Add And Delete Files - Just looking for useful code
How To Transfer Files From One Computer To Another
How To Hide Your Files In XP - hide doc and folders
Converting Flash Files To Gif - how to convert flash files to anim gif
Renaming collection of Pictures (files)!
advertisement




Getting Files From Other Sites - Using wget