Help with Cache / Archive


I need a way where i can get full source code of a WEB PAGE and can store that to my database.

I know that i can do this via CURL, but main problem is that - I want ABSOLUTE LINKS for:

  1. CSS
  2. Javascript
  3. Images
  4. Links
  5. Any other media file etc.

So that i can only keep the source of the page and whenever I load it, it loads the images etc from the real site. Please guide me what is the best way to do this ?


Okay, I found a solution my self !

For any one else need help with the same issue, just use the HTML’s <base> tag.