PHP - How is this done?

2 replies
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" >

************************************************** *******
#php
  • Profile picture of the author Dan Liptak
    Looks like the program you are using to "scrape" the page is adding the full URI.
    {{ DiscussionBoard.errors[1534179].message }}
  • Profile picture of the author m4rx
    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
    Signature
    We are what we repeatedly do. Excellence, then, is not an act, but a HABIT. ~Aristotle
    Bored. Learn everything you need to know about Organic Gardening.
    {{ DiscussionBoard.errors[1534775].message }}

Trending Topics