PHP-gurus: I need your help!
PHP-gurus: I need your help!
Out of context: Reply #7
- Started
- Last post
- 22 Responses
- schjetne0
Thanks, mike! It looks a lot different than the stuff I wrote myself. I don't know if it's interesting at all, but here is my script:
if ($dir = @opendir("mooh")) {
while (($file = readdir($dir)) !== false) {
if($file=="." or $file=="..") continue;
echo "";
print(str_replace("_"," ",$file));
echo " ";
}
closedir($dir);
}This only strips the slashes and replaces them with spaces, but it's a start.
What do you think? Am I on to something?
I figured that since I have to learn this some time, I'll try some on my own before using your script.
The url to my work file is http://www.schjetne.net/test_rea… , if you want to see the result.