Thanks for the reply....!

This isn't an assignment....I am no longer a student.
Please provide the necessary code.//./././

As a primary goal of this work, it's by connecting to the big search
engine (dmoz),download into a database and later query them.

There are about 10 files on that particular website with different
extensions (http://rdf.dmoz.org/rdf/).At first have had my php script
pointing separately at each array and individual file name in the URL.
By doing so it was a complete mess.
I would like to come up with a general php parameter which helps with
the file extension and then later user can choose which file to
download with minimized redundancy.

I have also additional php scripts for connecting,crating
tables,parsing etc.....
But the most important is this generalized parameter to be working.

I am using command line to run the scripts.....i do know how to
proceed with that. If the code could follow the flowchart,,,that's
fine so far..... 

Perhaps the script could check the existence of the files (which
already exit) and then proceed with the extension. The user is given
the options to choose which file to download with some prompted
messages.File is downloaded locally on the pc...as it will be stored
later in the database.

hope my explanation is ok....
Solane




> ------------------------------
> 
> Hello Soláne G Diego,
>                                   This sounds very much like an
assignment. 
> If it is then we can give you general pointers - if it is NOT then
please 
> say so and we can give code.
> 
> You didn't mention how it would be determined if "the file exists in
the 
> directory it should exist in".
> 
> Also you mentioned "command line". Command line is totally different
to a 
> browser web page. I presume you mean URL query string.
> 
> Some more questions -
> Check to see if file exists - where
> 1) A remote server
> 2) The local servers file path
> 3) The local servers http streams
> 4) The local PC
> 
> Download file - where to
> 1) the local servers file path
> 2) the local PC
> 
> If zipped then unzip - where to
> 1) the local servers file path
> 2) the local PC
> 
> Please write two separate scenarios for zipped and not zipped
> 
> Thanks.
> 
> PS: Forced downloads are problematic especially with Internet Explorer. 
> There is plenty of example code for this on the header() function
page at 
> php.net
>


Reply via email to