Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How long to copy or move a file...(server-side)
Old 04-19-2007, 05:52 AM How long to copy or move a file...(server-side)
kids's Avatar
Ultra Talker

Posts: 301
Trades: 0
I want to make a script that can copy or move a file (10MB) by php. But I dont know how long does it take to do that. Anyone can tell me about this.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kids is offline
Reply With Quote
View Public Profile Visit kids's homepage!
 
 
Register now for full access!
Old 04-19-2007, 06:16 AM Re: How long to copy or move a file...(server-side)
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Depends from where to where.
But it will be almost like on your computer, a matter of seconds. 2, maybe 3, it depends how the server is I/O busy, and your process priority.

But it should not be a problem for a 10 Mo file.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 04-19-2007, 06:36 AM Re: How long to copy or move a file...(server-side)
kids's Avatar
Ultra Talker

Posts: 301
Trades: 0
Quote:
Originally Posted by tripy View Post
Depends from where to where.
I think It's just like from /home/storage --> /home/temp_dir

Quote:
But it should not be a problem for a 10 Mo file.
And how is about 100MB file?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kids is offline
Reply With Quote
View Public Profile Visit kids's homepage!
 
Old 04-19-2007, 08:47 AM Re: How long to copy or move a file...(server-side)
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Again, it all depends of the server.

Quote:
Depends from where to where.
I was more referring about the type of support (Net shared directories, ftp, ssh, tape drive, cd/dvd) than the path.

Is it a shared hosting server or a dedicated server?
Does it use Fiber channel, scsi, sata, ata, gigabit lan, 100 M Lan?

How much ram is free, how much cache is free, what other programs are running in background ?
What CPU load does it have?
What running load does it have. Is it swapping ?
Does your account have process limitations ?

These will all have an impact.

You have only 1 thing to do, try it.
Time your transfers, if you have ssh access, monitor activity (with "top") and see if it's ok.

You won't find anybody except your sysadmin giving you timing on your server operations.
But really, 100 Mo, that's a bit large for a casual web operation.
__________________
Only a biker knows why a dog sticks his head out the window.

Last edited by tripy; 04-19-2007 at 08:51 AM..
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 04-19-2007, 09:32 AM Re: How long to copy or move a file...(server-side)
Skilled Talker

Posts: 94
Trades: 0
Like Tripy said though it should only take a couple of seconds. Unless your server is lacking resources.
__________________
Sell Templates? Try our
Please login or register to view this content. Registration is FREE
! See a live
Please login or register to view this content. Registration is FREE
ChadR is offline
Reply With Quote
View Public Profile
 
Old 04-19-2007, 11:34 PM Re: How long to copy or move a file...(server-side)
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
copy
(PHP 3, PHP 4 )

copy -- Copies file
Description
bool copy ( string source, string dest)
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to How long to copy or move a file...(server-side)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19755 seconds with 12 queries