web services - PHP file retrieval - web app? -


I am starting to work on a small app written in php that will allow the user to click on the link ; Retrieve a file from a different website and access it in the user's browser without redirecting to the remote site [PDF files].

Before I started writing, I thought I knew someone from there who already does this

What am I going to do? / P>

  • Log referrals
  • Pass any type of authentication in the query string
  • Push the file to the remote browser without redirecting. UPDATE * Sorry, I forgot to mention Tom To-do site

    thoughts or suggestions?

    -thanks -sean

    You can use PHP-curl in :-)

    Example from the site directly:

    Use of PHP's curl modules to fetch example.com home page

      & lt ;? Php $ ch = curl_init ("http://www.example.com/"); $ Fp = fopen ("example_homepage.txt", "w"); Curl_setopt ($ ch, CURLOPT_FILE, $ fp); Curl_setopt ($ CH, CURLOPT_HEADER, 0); Curl_exec ($ ch); Curl_close ($ ch); Fclose ($ FP); ? & Gt;    

Comments