Ok here is what im trying to do --
Im trying to protect my files from being downloaded by anyone so i have a file called download.php (a script i got off the net) that holds any domains that can download my files. It also hides the locations of the files. problem is when i go to enter the urls that can download i have an issue Some of the urls are dynamic and change and i dont want to enter 500 urls. For example i have
the id could be anynumber so in my link for the download i use
the last url is annoying me -- i have tried everything from echo to "" to '' to \" and i dont know how to get that variable to process into the download.php file.
My error that i get is
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /usr/local/psa/home/vhosts/brandsupplier.com/httpdocs/new/home/download.php on line 26
I gave you line 26 above -- its the one with array
<Signature>
Sometimes the Answer You Are LOOKING for can be FOUND BY SEARCHING THE FAQ'S @&%$*#!!!
</Signature>
Im trying to protect my files from being downloaded by anyone so i have a file called download.php (a script i got off the net) that holds any domains that can download my files. It also hides the locations of the files. problem is when i go to enter the urls that can download i have an issue Some of the urls are dynamic and change and i dont want to enter 500 urls. For example i have
the id could be anynumber so in my link for the download i use
Code:
<a href="[URL unfurl="true"]http://www.mysite.com/new/home/download.php?site=1&file=<?php[/URL] echo $row_recordset1['logo hi-res']; ?>&dl=<?php echo $id; ?>" class="default">[code]
where $id is : $id = $_GET['brand'];
so now i pass that over to download.php
here is the line for accepted urls to donwload
[code]$okaysites = array("[URL unfurl="true"]http://mysite.com","http://www.mysite.com","http://www.mysite.com/new/brands/logos.php","http://www.mysite.com/new/brands/detail.php?brand=$_GET[/URL]['dl']");
the last url is annoying me -- i have tried everything from echo to "" to '' to \" and i dont know how to get that variable to process into the download.php file.
My error that i get is
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /usr/local/psa/home/vhosts/brandsupplier.com/httpdocs/new/home/download.php on line 26
I gave you line 26 above -- its the one with array
<Signature>
Sometimes the Answer You Are LOOKING for can be FOUND BY SEARCHING THE FAQ'S @&%$*#!!!
</Signature>