very simple php script help!
Posted: Fri Oct 17, 2008 6:22 am
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!
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!