SEO Software
Closed Thread
Results 1 to 2 of 2

Thread: PHP clone page

  1. #1

    Default PHP clone page

    I am trying serve an affiliate page on my website using the following code

    Code:
      
    <?php
    $file = file_get_contents ('hxxp://affiliate_site/');
    Echo $file;
    ?>
    It pulls the page text fine, but I am not getting any of the images from the original page, due too they are referenced ./images and I think the page I am pulling is trying to get the images from my site.

    Is there a way to get these images, via PHP, without downloading them to my site?

    Thanks


  2. Micro Niche Builder

  3. #2
    Junior Member alibaba-clone is on a distinguished road alibaba-clone's Avatar
    Join Date
    Dec 2009
    Location
    Johannesburg, South Africa
    Posts
    92
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    the file_get_contents function will just visit the webpage you want to get and it will return the html code to you.. and then you can do parcing and can add the website address to image paths to display properly.

Closed Thread

Similar Threads

  1. PHP page to redirect
    By urvisoni in forum PHP Help
    Replies: 13
    Last Post: 03-17-2011, 08:17 PM
  2. Social bookmarking digg clone?
    By mitali in forum Social Bookmarking
    Replies: 5
    Last Post: 09-28-2010, 04:20 AM
  3. Boostcast free youtube clone
    By mitali in forum Webmaster Scripts
    Replies: 6
    Last Post: 12-03-2009, 11:28 PM
  4. How many ads per page?
    By urvisoni in forum Pay Per Click (PPC)
    Replies: 8
    Last Post: 03-27-2009, 04:48 AM

Tags for this Thread

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