Re: move_uploaded_file and CPU wait state (IO)

From: Date: Thu, 02 Mar 2006 00:29:33 +0000
Subject: Re: move_uploaded_file and CPU wait state (IO)
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-231294@lists.php.net to get a copy of this message
Aleksandar Skodric wrote:
Hi, I have changed the directory to the same disk. Results are _much_ better! So nothing to blame on PHP, only my lack of knowledge about *nix-like system *blush* Thank all for the advice and help!
It's not *nix systems - it's all operating systems. When you move a file between partitions it has to copy the whole file then remove it from the original place when it has verified it has copied ok.
PS. defining of php_value in virtual host of apache did not work, so I changed php.ini value.
Figured as much :)
Chris wrote:
Aleksandar Skodric wrote:
Hi, Yes, /tmp is on another disk then the final directory. I shall move it to the same disk (tmp_upload_dir) right now. Question: can I define tmp_upload_dir to be otherwise just for one host in apache conf, like: php_ini upload_tmp_dir /some/dir
<snip> I'm guessing not, but the php docs will tell you for sure - http://www.php.net
-- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#231294) next »