TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Warning: mkdir() [function.mkdir]: Result too large (http://www.talkphp.com/general/2878-warning-mkdir-function-mkdir-result-too-large.html)

Orc 06-02-2008 05:22 AM

Warning: mkdir() [function.mkdir]: Result too large
 
What does this mean?

Result too large, I've never heard of a directory being too large. :P Maybe, it has something to do with the content of the directory,
and I'm getting this because, I have made it where, if a user registers on my membership system, they get a directory of their own, though its easy to fix, what is this problem?

PHP Code:

if (!is_dir($username) && $uid==$useridmkdir($username); 

Basically, it checks if the username doesnt have a directory, which then that means there is something wrong, which it would try and make the directory again, plus it checks if the userid is that of the one coming from the mysql, if all of that is correct, then it makes the directory.


UPDATE:
Nevermind, I think it was just cause as I said there was content in that directory, so I added to check if the session was set, in the if statement above, and it seems to go away.

SpYkE112 06-02-2008 11:15 AM

Well, if your server runs Windows it could be because of the fact that Windows apparently can't handle long dir names, i think the limit is 255 chars. I don't know if it is different in w2k3 and w2k8 but it ain't possible on Windows XP..

Wildhoney 06-02-2008 09:45 PM

I would surmise it's something like that as well. Googling the problem only brings me back to this thread :-) Looks like you stumbled across a very unpopular problem.

Orc 06-03-2008 07:33 AM

Quote:

Originally Posted by Wildhoney (Post 15109)
I would surmise it's something like that as well. Googling the problem only brings me back to this thread :-) Looks like you stumbled across a very unpopular problem.

Damn.. Well at least I fixed it. xD


All times are GMT. The time now is 09:03 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0