Try adding the following line to your script, anywhere after the line
$dir = $documentroot . '/' . $username; but not inside the function:
Basically, the code inside the function doesn't execute until the function is called.
Last edited by darkagn; Oct 24th, 2009 at 9:43 am.
Reputation Points: 395
Solved Threads: 192
Veteran Poster
Offline 1,136 posts
since Aug 2007