!!!! The NEW Biggest thread !!!!

Nathan H

New Member
Messages
562
Reaction score
0
Points
0
Soooo close, everyone wanted to get that 1000th post
Well done bugfinder
 
Last edited:

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
Woo yay! Anyway yeah awsome. Anyone able to answer my question lol....I do actually need help. Should I just use a while loop to go through and delete them all using unlink or is there a better way? I can't find another function....?

-Luke.
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
tnl2k7 said:
Anyone know a decent method of deleting all the files in a directory then deleting the deleting the directory itself? Unlink() throws an error if it's got stuff in the folder when you delete? This is a PHP question, by the way.
I know how to do it with shell_exec(). I love having Advanced PHP.
 

Mitch

New Member
Messages
908
Reaction score
0
Points
0
Congratz on getting the 1000th Luke. Vigge will be annoyed lol.

I found this a while ago:
http://www.thenetw0rk.com/features/microshaft.shtml

lol
bluerotationaldw3.gif

It moves.
rotsnakemini3ts.gif

This one too.

Does it really moves or is it an illusion?
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
OK, i thought that too, but i wasn't sure about it.
The way you can tell is by glancing at them and moving your eyes around. They sometimes appear to move but not always.

Those sorts of optical illusions are very cool.
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
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:
    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:
  if ($file != "." && $file != ".."){} to allow it to find everything in the directory.
 
Last edited:

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
Lets take bets on it shall we ?
I am willing to put 100 credits on Angel_Pie. Whos got my bet ?

EDIT
Which one is he using ?
The version I modded last or the one that you are using ?
 
Last edited:

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Defect, can you help me with the cpanelapi?

I get "Fatal error: Call to a member function getSpaceUsed() on a non-object"
 

Mitch

New Member
Messages
908
Reaction score
0
Points
0
Lets take bets on it shall we ?
I am willing to put 100 credits on Angel_Pie. Whos got my bet ?

EDIT
Which one is he using ?
The version I modded last or the one that you are using ?

If somebody else is willing to bet 100 credits, then i will bet 100 credits too (but on me).

So, possible jackpot 200 credits.
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
EDIT
Which one is he using ?
The version I modded last or the one that you are using ?
I gave him the one I am using, so it's probably that one.
 
Top