saxsux
Apr 28 2005, 04:59 PM
| | 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? |
Comment/Reply (w/o sign-up)
miCRoSCoPiC^eaRthLinG
Apr 28 2005, 05:03 PM
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.
Comment/Reply (w/o sign-up)
jipman
Apr 28 2005, 05: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
Comment/Reply (w/o sign-up)
saxsux
Apr 28 2005, 05:21 PM
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! 
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : files, sites, wget
- Here Are Some Great Php Tutorial Sites
(4)
Magic Quotes And $_files
(3) It recently came upon me that I was designing a website that used file uploads. Of course, PHP was
my first choice to solve the problem. I'm pro-PHP and anti-ASP. Perl is somewhere in the middle.
But anyway! I have magic_quotes_runtime and magic_quotes_gpc both on and it seems to be causing
some problems with file uploads. If a user uploads a file called "Jared's Stuff.txt" (that was
one of my tests) then magic_quotes insert a backslash before the apostrophe and $_FILES becomes
"'s Stuff.txt" since the backslash is interpreted as part of the path. Is the....
How To Protect Included Files
(10) Hey! How can i make my included files 100% safe. Like if I include a file witht his code.. CODE
include "bla.php"; How can i make it 100% safe? I know I must close the php tags in the
included files. but what more =?....
Reading Files And Folders
(1) I am in the process of writing a small content management system for my niche sites and need to be
able to accomplish the following two items. Any assistance would be appreciated: I have a
directory that has nothing but sub directories in it and I need to be able to identify each
directory name and return them in an option drop down selection menu which will be included in an
identifying URL. ALSO: I am in need of a script that could be included on a returned page
that will read the content of a table and identify various keywords within the content and pl....
Php File Upload
About uploading files through php (3) Right i have done a check for a tutorial on this as well as a question about it but php is not
allowed in the search box. So i thought i'd just ask what i want to know. I have a form which
uploads a file, it refreshes the page, uploads the file and then alerts the user to if the file has
uploaded. To be honest im not sure why i keep getting the error. But here is the code: This is the
form that is used for the user to select the file &fid= " method="POST"> Choose a file to
upload: This is the upload code if ($op == "up"....
Help To Transfer Files Within Hosting Space Using Php
(4) I want to transfer files from one folder to another or an entire folder in my web space. I don't
want to download it and upload it, can I do this using a PHP script. Please help me. I'm just
learning the basics of PHP....
How To Edit Php Files?
(16) Hi, You can use frontpage to preview HTML files, but how can I edit and preview PHP files offline.
I'm not well-known with PHP and I see more and more using this script to manage their site.....
How To Delete Files When Session Ends
(4) Dear Friends I need solution to a problem. The problem is as under: I am creating certain files
(playlist) in server disk when user selects some songs. The files are created in ram format. What I
want to do is to delete these files created during a particular session. Is it possible to do so?
Now I am deleting these files using on Unload event fired by JavaScript. I am using PHP. ....
Some Problems Sometimes On Other Sites!
Others come up with wierd problems! (2) I am not the most regular contributer to PHP Builder but every now and then there is just a question
from a newbie or someone that can not be fixed. I do not know if it is that they do not know how to
ask the question but this one has been going on too long. It seemed from the question that they
asked that they wanted to insert some data froma text file into the MySQL database. So after looking
at their query (the original question) QUOTE Here's part of my code: Code: $result =
mysql_query("INSERT INTO AL_BVA (contact, time, phone, address, city, state, zip, ....
Deleting Files With PHP
is this possible? (6) It is posible for PHP to delete files on a server? If so, how is this possible? Just out of
interest.......
Php : Variables Included Dont Work In Functions
Variables from Included files dont work (4) Today, I came up with this strange PHP behaviour. Just wanted to know if anyone has any
suggestions! I make a common variable/function file called config.php. I put in my generally used
functions in it. Suppose this is my file CODE // -----VARIABLES --- // $a=10,$b.... //
-----FUCTIONS--- // function doit() { print "A value is " . $a; } ?> Here, suppose we execute
this file directly. Since A has a global scope, it does work perfectly. But if this same file is
imported in another file say, mainfile.php CODE // -----VARIABLES --- // $c,$d.... include ....
Php Wget
Its not working!!! (3) A while ago I posted a thread asking if anyone knew anything about wget, and I was given the code
below: CODE $foo = system('wget http://www.whatever.com/file.html ~',$output); ?>
Which has been working fine, since the panda server failure a while ago. Since then, whenever I try
to use it , it comes up with QUOTE $foo = system('wget
http://www.gallifreyone.com/forum/customav...avatar646_8.gif ~',$output); ?> Has this been
disabled by the administrators, or is there a way I can sort it out?....
How Do I Create And Write To Files?
creating, writing, deleting files (4) Hi, Can someone please tell me how to create files and write to them in PHP. I just want to create
a simple file containing text, and then be able to read it or update it. Thanks Alfie....
Best Php Resource Sites List
(2) this sites r sooooooo gooood u know: php: php.resourceindex.com www.php-resource.de/
www.phpbuilder.com www.php-editors.com www.onlyphp.com
www.php-resource.de/scripte/browsesub/PHP/HOSTING/1/ java script: javascript.internet.com
www.free-javascripts.com javascriptkit.com/ www.java-scripts.net www.javascript.com
www.thefreesite.com/Free_Java_JavaScript all: www.hotscripts.com www.123webmaster.com
www.totalscripts.com www.needscripts.com....
Free software for creating PHP sites
(17) This is good for those who doesnt have knowledge bout PHP they are totally free here are my 2 know
free web portal system Postnuke -> www.postnuke.com and PHPnuke -> www.phpnuke.org /tongue.gif"
style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />....
Looking for files, sites, wget
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for files, sites, wget
|
advertisement
|
|