Some PHP and My SQL Problem with linking
Posted: Sun Aug 02, 2009 8:31 pm
I need to hide a real file name by using random names that will refer visitor to the actual folder directory were the original file is located.
What I am trying to create is:
Download Now link on one page that will look like this -<a href=”http://www.yourdomain.com/dl.php?urlid=absdef”>Download Now</a> and like
this- http://www.yourdomain.com/fileDownload/ ... myFile.zip or like this - http://www.yourdomain.com/fileDownload/myFile.zip
I have been told that I need to create a table in My SQL DB that will contain urlid along with Original File Names and random names assigned to each file.
In my understanding it will probably look like the table below:
URL ID Original File Name Random File Name
001 Personal-budget-calculator.xls Personalbudget
002 Home-budget.xls Household
003 Purchase-order.xls purchaseorder
How to do it all this is my question?
I believe that this is something that can be done since I have seen on many other web sites furthermore this can also be used to hide your affiliate ID links under some random name in urls.
What I am trying to create is:
Download Now link on one page that will look like this -<a href=”http://www.yourdomain.com/dl.php?urlid=absdef”>Download Now</a> and like
this- http://www.yourdomain.com/fileDownload/ ... myFile.zip or like this - http://www.yourdomain.com/fileDownload/myFile.zip
I have been told that I need to create a table in My SQL DB that will contain urlid along with Original File Names and random names assigned to each file.
In my understanding it will probably look like the table below:
URL ID Original File Name Random File Name
001 Personal-budget-calculator.xls Personalbudget
002 Home-budget.xls Household
003 Purchase-order.xls purchaseorder
How to do it all this is my question?
I believe that this is something that can be done since I have seen on many other web sites furthermore this can also be used to hide your affiliate ID links under some random name in urls.