Jump to content

simple local file script - help!


mpower87

Recommended Posts

 

hey guys, im a total noob when it comes to php...

 

what i need is a simple script that works in the following way:

 

1. lets assume the name of the script is "get.php"

 

2. inside the script there are three variables: 1 - path (which corresponds to a folder location on a local drive e.g. "C:\MAIN FOLDER\")

2 - folder (which corresponds to a folder within the main folder on a local drive e.g. "FOLDER\") and

3 - file (which corresponds to a file name within the folder on a local drive "FILE.XXX")

 

3. then say you type in "get.php?folder=FOLDER&file=FILE" it will link you to the specified file within the folder i.e. "file:\\C:\MAIN FOLDER\FOLDER\FILE.XXX"

 

is that possible ? thanks in advance!

 

Link to comment
https://forums.phpfreaks.com/topic/128845-simple-local-file-script-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.