
December 8th, 2007, 11:32 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 13
Time spent in forums: 4 h 50 m 53 sec
Reputation Power: 0
|
|
|
File Grabber
Hello All,
I finaly got one of the simple parts of my systerm to work, now I am wondering is this the best way to do the job.
what this does is goes to a website and uuloads a file to my server.
Is there a better way to do this and if so any hints to do so woudl be good.
[PHPNET]<?php
$handle = fopen("/mounted-storage/home80c/sub003/sc44514-NPGU/www/uploads/eo4.zip","wb+");
$string = file_get_contents("http://www.irs.gov/pub/irs-soi/eo4.exe");
fwrite( $handle, $string );
?>[/PHPNET]
Thanks for any help.
Christopher
|