PHP - How is this done?

by 2 replies
3
Hi

I am trying to find out how this is done in PHP. The pages are same except the following. Scraped page is created using some kind of PHP script. I tried Googling but couldn't find any answer. In each case on the scraped page full domain path is added.

Is this something easily done ?

This is really bugging me now.



************************************************** *
Original Page <img src="header2A.jpg>

Scraped Page <img src="http://www.domain.com/header2A.jpg" >

************************************************** *******
#programming #php
  • [DELETED]
  • Looks like the program you are using to "scrape" the page is adding the full URI.
  • Well if this is what I think it is, you can just create a variable such as $domain and set that equal to whatever the root is of your pages. Then for each link add <?=$domain?> to it and there ya go.

    If I am completely off base, please tell me.

    --m4rx

Next Topics on Trending Feed

  • 3

    Hi I am trying to find out how this is done in PHP. The pages are same except the following. Scraped page is created using some kind of PHP script. I tried Googling but couldn't find any answer. In each case on the scraped page full domain path is added.