PDA

View Full Version : HTTP_REFERER from a CD?


janh
04-03-2003, 04:06 AM
I'm distributing a large web site on a CD, and on the CD is the installation files for the IndigoPerl version of Apache and Perl, where I also have the Perl script copied into the Perl installation on the user's hard drive. Everything works fine after the automated installation, except that I have to specify in the script the drive letter of the HTML file that calls the script in order for the user to click back into the web site on the CD. And if the user doesn't have D: as the CD-drive they have to change it manually. I was wondering if the script couldn't read the drive letter into a variable to make it automated. I tried with the ENV{HTTP_REFERER} but that only returns someting if the originating file is a http address. Any help would be appreciated.