mpower87 Posted October 17, 2008 Share Posted October 17, 2008 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 More sharing options...
alanChurley Posted October 17, 2008 Share Posted October 17, 2008 you can just use php to dump the variables into a hyperlink <a href="file:\\C:\MAIN FOLDER\<?php echo($_GET['folder']) ;?>\<?php echo($_GET['file']) ;?>.xxx">Click HERE</a> Hope this helps Link to comment https://forums.phpfreaks.com/topic/128845-simple-local-file-script-help/#findComment-667945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.