SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: problem

  1. #1
    SitePoint Enthusiast
    Join Date
    May 2004
    Location
    wuhan china
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem

    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 ??

  2. #2
    $this->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Dec 2003
    Location
    Federal Way, Washington (USA)
    Posts
    1,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2004
    Location
    wuhan china
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vinyl-junkie
    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.

    obviously you didn't understand me fully ,I mean how to save the image to my server using php

  4. #4
    $this->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Dec 2003
    Location
    Federal Way, Washington (USA)
    Posts
    1,526
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  5. #5
    Non-Member St.'s Avatar
    Join Date
    Nov 2004
    Location
    Cloud #9
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •