
February 25th, 2003, 11:49 AM
|
|
Contributing User
|
|
Join Date: Oct 2002
Location: Washington, DC
Posts: 317
Time spent in forums: 2 m 3 sec
Reputation Power: 6
|
|
Quote:
I'm not sure how to achieve this task, I've looked at fopen(), and copy()
to no avail. |
fopen() is the function you will use - as long as the url_fopen_wrappers are set to true on the other machine.
PHP Code:
$fp = fopen( 'thefeed.com/thefeed.xml', 'r' );
$string = fread( $fp, 1024 );
fclose( $fp );
The data will now be bound to the $string scalar. You can write it out to a file using something like ->
PHP Code:
$fp = fopen( 'filename_to_make_it', 'w' );
fwrite( $fp, $string );
fclose( $fp );
__________________
~ Joe Penn
We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set?
Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you.
|