greetings all,
Yes, I know, a stupid subject!!
Anyhow.. what is the best way to store a directory structure in?
I wish to do a recurise search in php and store the directory structure in a good way, that is also easy to extract the information from, so that I may display the directories on the page...
Furthermore, chars such as ' and 3 swedish chars always destroy my code when using following code to download:
<?
$file = "<root>".$_GET['ul'];
header ("Content-type: octet/stream"
;
header ("Content-disposition: attachment; filename=".basename($file).";"
;
header("Content-Length: ".filesize($file));
readfile($file);
exit;
?>
I know that ' is used for strings and such things.. but is there a way around this so that files containing ' chars WILL be displayed? and Is there another download-way to make it work? or a way to make my server/php compatible with the swedish language?
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
Yes, I know, a stupid subject!!
Anyhow.. what is the best way to store a directory structure in?
I wish to do a recurise search in php and store the directory structure in a good way, that is also easy to extract the information from, so that I may display the directories on the page...
Furthermore, chars such as ' and 3 swedish chars always destroy my code when using following code to download:
<?
$file = "<root>".$_GET['ul'];
header ("Content-type: octet/stream"
header ("Content-disposition: attachment; filename=".basename($file).";"
header("Content-Length: ".filesize($file));
readfile($file);
exit;
?>
I know that ' is used for strings and such things.. but is there a way around this so that files containing ' chars WILL be displayed? and Is there another download-way to make it work? or a way to make my server/php compatible with the swedish language?
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work