Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-03-01 Thread Chris
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

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-03-01 Thread Aleksandar Skodric
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! Cheers, Aleks PS. defining of php_value in virtual host of apache did not work, so I changed

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-02-28 Thread Chris
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 I'm guessing

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-02-28 Thread Aleksandar Skodric
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 I am not sure that this works for all PHP i

Re: [PHP] move_uploaded_file and CPU wait state (IO) - unsubscribe

2006-02-27 Thread Curt Zirzow
On Tue, Feb 28, 2006 at 11:08:30AM +0800, stone.wang wrote: > No usa to it http://php.net/unsub.php Yes fondu no be http://php.net/unsub.php > i do more If english isn't your first language try to explain that you are not clear how to remove yourself from the list, otherwise try emailing: [

Re: [PHP] move_uploaded_file and CPU wait state (IO) - unsubscribe

2006-02-27 Thread Curt Zirzow
On Tue, Feb 28, 2006 at 09:43:30AM +0800, stone.wang wrote: > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > unsubscribe > dont send to me Since you hijacked my

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-02-27 Thread Curt Zirzow
On Mon, Feb 27, 2006 at 06:39:13PM +0100, [EMAIL PROTECTED] wrote: > Hi, > > My first mailing, if I'm in wrong group or such, let me know ;) > > Here comes my question. I have implemented file uploads to my server. At the > end of upload, file is > beeing moved from /tmp to permanent directory.

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-02-27 Thread Chris
My first mailing, if I'm in wrong group or such, let me know ;) You've come to the right place :) Here comes my question. I have implemented file uploads to my server. At the end of upload, file is beeing moved from /tmp to permanent directory. However, whenever this happens, CPU goes berz

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-02-27 Thread Aaron Koning
Are you sure its the move_uploaded_file() function that is causing the delay? It could be the actual upload of the file itself. If it is the function causing the delay than try the rename() function instead. Also, I have used the copy() and unlink() functions and they work fast. Aaron On 2/27/06,

[PHP] move_uploaded_file and CPU wait state (IO)

2006-02-27 Thread phpmaillist
Hi, My first mailing, if I'm in wrong group or such, let me know ;) Here comes my question. I have implemented file uploads to my server. At the end of upload, file is beeing moved from /tmp to permanent directory. However, whenever this happens, CPU goes berzerk and waits for disk to finish mo