Need a little help with table for MySQL.
Posted: Thu Jul 23, 2009 10:19 am
Hi to all,
Need a little help with table for MySQL.
I need to create a table that will have originale file name - that is lokated on my server in folder called "files" and need also to have a random name of the same file.
So that it looks like this one bellow
/files/excel-book.xls(real Name of the file) - excelbook
/files/macro-book.xls(real Name of the file) - macrobook
/files/codec-book.xls(real Name of the file) - codecbook
the reason I need it is to have a "download now" links on the
other pages of the site that will pint to the random name so once user will click on it than the /download.php should idealy triger the download of the file with this particular randome name (ex. <a href="http://www._____.com/download.php?urlid=excelbook">Download Now</a> than it should open /files/excel-book.xls this file)
Thanks to all for your help and thanks to this forum as well
Need a little help with table for MySQL.
I need to create a table that will have originale file name - that is lokated on my server in folder called "files" and need also to have a random name of the same file.
So that it looks like this one bellow
/files/excel-book.xls(real Name of the file) - excelbook
/files/macro-book.xls(real Name of the file) - macrobook
/files/codec-book.xls(real Name of the file) - codecbook
the reason I need it is to have a "download now" links on the
other pages of the site that will pint to the random name so once user will click on it than the /download.php should idealy triger the download of the file with this particular randome name (ex. <a href="http://www._____.com/download.php?urlid=excelbook">Download Now</a> than it should open /files/excel-book.xls this file)
Thanks to all for your help and thanks to this forum as well