12001
Support / Loading textures problem in a web server context
« on: September 14, 2004, 05:06:37 pm »
To rely on this apache-behaviour is a bad idea because it's a matter of its configuration if it shows you the files in a specific directory if no index is present. It's better to let the applet call a php-script on your server that gets you the list of files in simple ASCII-format and parse this one. You can access it via the Loaders getTextFile()-method. The script should look somehow like this little one:
Code: [Select]
<?
header("Content-Type: text/plain");
$d = dir(".");
while($entry = $d->read()){
echo($entry."\n");
}
$d->close();
?>