
Originally Posted by
YamiKaitou
What is so good about 1000 posts in a topic? I know of a thread that has 4187 replies.
Well I am sure that post wouldn't be where it is without those markers of 1k, 2k, 3k and so on :p
@tnl: you mean rmdir() throws an error cause it contains files. You would call unlink() with a loop on all the files in the directory.
PHP Code:
if ($dir = opendir('../path/'))
{
while (false !== ($file = readdir($dir)))
{
if ($file != "." && $file != "..")
{
unlink($file);
}
}
closedir($dir);
rmdir($dir);
}
maybe ?
EDIT
about the optical illusions. Its not so much the movement of your eyes around the image. Its where your focal point is. So try and stare past the image and then bring it into focus slowly.
EDIT again
sorry the above example was a bad one. It was to find sub directories. take out the
PHP Code:
if ($file != "." && $file != ".."){} to allow it to find everything in the directory.