QUOTE(PHP_student @ Nov 5 2009, 10:45 PM)

thanks
but i found a problem, when i creat a folder via my php script, and chmod 0777 the folder, however,
the php script could not creat files in the new folder. probably it is for the safe cause of the server.
it means that the folder in which we can creat files must be created by the owner of the host,
but the folder created via the php script belongs to another user.
note: i have just tested chown(), and it is not permitted by our host server.