Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    automatically cache outbound (external) links?

    Hi,
    How would I go about making my website automatically cache external links and provide an option to "view cached page"?
    Also, are there any effective ways to cache without using up a lot of diskspace/bandwidth? Could i do "text only" caches?

  • #2
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    You would read one of your pages, find all links that are external (using a regex). Then for each links, lead the HTML through cURL, PEAR or external fopen (if host allows it). By only loading the HTML you are getting basically text only. But you'd lose any markup applied through CSS.


  •  

    Posting Permissions

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