What's the meaning of this Warning?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
revbackup
Forum Commoner
Posts: 29
Joined: Tue Jun 09, 2009 1:52 am

What's the meaning of this Warning?

Post by revbackup »

Hi,

I always get this error whenever I upload some files in my server.
This is the error:

Warning: ftp_mkdir() [function.ftp-mkdir]: 6156 Kbytes used (6%) - authorized: 102400 Kb in /home/ryan/www/www/student/upload/scripts/php/inc/jupload.inc.php on line 35

What could be the reason for this warning?
This is line 35 of jupload.inc.php : ftp_mkdir($conn_id,$base);

Please give me some ideas how to solve this problem... Thanks ;D
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: What's the meaning of this Warning?

Post by onion2k »

It's your FTP server. When you create a directory it's supposed (according to the RFC spec for FTP) to return the name of the directory. It's returning some information about the user's quota - PHP is assuming that it's an error from the FTP server and throwing it out as a warning. The solution will be to turn off warnings on your web server I imagine.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: What's the meaning of this Warning?

Post by jackpf »

or use error suppression.
Post Reply