Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
PHP to Download File from Web Server ?
[b][red]This message was edited by melissa_may1 at 2007-4-12 8:7:44[/red][/b][hr]
I'm sure you all can clear up my confusion easily!
What happens between the webserver and the client when the user types a URL that returns a data file? As a result of typing the URL, the browser pops up a "File Download" dialog, and asks "Do you want to open or save this file?"
Here's what I'm trying to do: I want to automate the download of a data file that I get from a webserver daily. Now I manually download the data file to my workstation, then run a program that parses the data file and puts the data into a MySQL database.
I have a webserver with Apache and MySQL and PHP all set up.
I have a PHP script that I use for users on a website to upload files to the server, but that's not what need...
Can I use PHP to do this? Can anyone give me some tips on where to start? I'm so confused!