when using wysiwyg browser-based editor ,I usually copy pages directly from other site, how can we save the images from that server to my server ??
| SitePoint Sponsor |
when using wysiwyg browser-based editor ,I usually copy pages directly from other site, how can we save the images from that server to my server ??





I am of course assuming there is no copyright infringement involved as I tell you this, but just bring up the web page itself, then right click on the image, click Save As, then specify a name and a target location.
Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
Showcase your music collection on the Web
Originally Posted by vinyl-junkie
obviously you didn't understand me fully ,I mean how to save the image to my server using php





Sender -> Message -> Receiver
Problem with the middle component.
Have a look at the SitePoint article, Build An Automated PHP Gallery System In Minutes. Perhaps that will be of some use.
Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
Showcase your music collection on the Web
2 infoseek
if in your php.ini seted "allow_url_fopen = On" you can use fopen.
f.e.
if ( $img = @fopen( "same_image_url", "r" ) ){
$img_str = fread( $img, file_size( "same_image_url" ) );
fclose ( $img )
if ( $new_img = @fopen( "same_place_dir/new_image_name", "w" ) ){
fwrite( $new_img, $img_str );
fclose( $new_img );
}
else same_error_handler();
}
else same_error_handler();
Bookmarks