I m looking to code a script that logins in to a site and then downloads the files from it directly to my server. I know it involves curl function which I m not to fimilar with. Please let me know what I can do to be pointed in the right direction. Thanks.
You have to first make sure CURL is enabled in your server. Then in PHP you will have to initialize the curl then set the url and post data . Then define the method POST/GET , set return transfer = true. Then execute it and echo the returing output. Thats it
Here is a useful example that I have adapated to log in to a website: http://curl.haxx.se/libcurl/php/examples/ebay_login.html To download files, I think you need to use libcurl.