[Gllug] PHP - no visible directory

ft ftimmer at web.de
Tue Nov 21 23:31:48 UTC 2006


Hello, 

I have a problem/question with PHP. 

if you download a file, you click on a html-link. For the client, the
structure of the directories are visible.

Is there a solution, to make it invisible, so that the client don't see
the directories? 

html-link on the website
<a href="index.php?file=file.pdf">Link for download</a>

PHP-script
<?
$dir = "./dir1/dir2/";
$download = $dir.$file;
# What is the command, to send the file to the client?
?>

Franz Timmer

-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list