473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

php execution time

Hey, so quick question, what would be a good time to set for execution
time using set_time_limit if I wanted to upload say a 100 mb file. I
know bandwidth and everything is important to know, but maybe if you
could give me a good number that works in any case.

Thanks
Jun 27 '08 #1
14 1416
Greetings, Rozmaha.
In reply to Your message dated Thursday, June 26, 2008, 23:19:48,
Hey, so quick question, what would be a good time to set for execution
time using set_time_limit if I wanted to upload say a 100 mb file. I
know bandwidth and everything is important to know, but maybe if you
could give me a good number that works in any case.
1. set_time_limit has nothing to do with file uploads, unless you are uploading
files from your script (using cURL i.e.)
Refer to the
http://www.php.net/manual/en/info.co...max-input-time
instead.
2. Use FTP for such big files.
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>

Jun 27 '08 #2
On Jun 26, 9:10 pm, AnrDaemon <anrdae...@freemail.ruwrote:
Greetings, Rozmaha.
In reply to Your message dated Thursday, June 26, 2008, 23:19:48,
Hey, so quick question, what would be a good time to set for execution
time using set_time_limit if I wanted to upload say a 100 mb file. I
know bandwidth and everything is important to know, but maybe if you
could give me a good number that works in any case.

1. set_time_limit has nothing to do with file uploads, unless you are uploading
files from your script (using cURL i.e.)
Refer to thehttp://www.php.net/manual/en/info.configuration.php#ini.max-input-time
instead.
2. Use FTP for such big files.

--
Sincerely Yours, AnrDaemon <anrdae...@freemail.ru>
FTP sucks - for lots of reasons. HTTP[s] is a far more sensible
protocol for moving files in either direction. For the best
performance/security use scp or rsync over ssh.

C.
Jun 27 '08 #3
C. (http://symcbean.blogspot.com/) wrote:
On Jun 26, 9:10 pm, AnrDaemon <anrdae...@freemail.ruwrote:
>Greetings, Rozmaha.
In reply to Your message dated Thursday, June 26, 2008, 23:19:48,
>>Hey, so quick question, what would be a good time to set for execution
time using set_time_limit if I wanted to upload say a 100 mb file. I
know bandwidth and everything is important to know, but maybe if you
could give me a good number that works in any case.
1. set_time_limit has nothing to do with file uploads, unless you are uploading
files from your script (using cURL i.e.)
Refer to thehttp://www.php.net/manual/en/info.configuration.php#ini.max-input-time
instead.
2. Use FTP for such big files.

--
Sincerely Yours, AnrDaemon <anrdae...@freemail.ru>

FTP sucks - for lots of reasons. HTTP[s] is a far more sensible
protocol for moving files in either direction. For the best
performance/security use scp or rsync over ssh.

C.
Wrong. FTP is much faster and more efficient when transferring files -
because that's what it is specifically designed for.

I would never handle such large files over http - it's missing some good
features, such as resume capability. Then there's the conversion of new
line characters for text files. And bunches of other things.

And if you want security, there's sftp.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 27 '08 #4
..oO(C. (http://symcbean.blogspot.com/))
>FTP sucks - for lots of reasons. HTTP[s] is a far more sensible
protocol for moving files in either direction.
FTP may be old and ugly, but it's still the most efficient way for file
transfers. That's why it's called file transfer protocol ...

Micha
Jun 27 '08 #5
On Jun 27, 2:37 pm, Michael Fesser <neti...@gmx.dewrote:
.oO(C. (http://symcbean.blogspot.com/))
FTP sucks - for lots of reasons. HTTP[s] is a far more sensible
protocol for moving files in either direction.

FTP may be old and ugly, but it's still the most efficient way for file
transfers. That's why it's called file transfer protocol ...

Micha
NO IT IS NOT.
- It has no built-in support for compression
- It has no caching functionality
- It has no error detection
- The line-endings thing is only defined for 7-bit ascii (0 padded to
8 bits per char)
- It sends passwords in clear text (although basic HTTP auth is little
better)
- Unless you use the passive hack or a clever firewall it will not
traverse NAT
- It only provides file-system level access
- It doesn't not have any functionality for sending meta-data

Yes, it allows you to range operations (resume) but so does HTTP (inc
webDAV) and range operations are implicit in rsync.

....and that's before I get started on the vagaries of specific
implementations.

C.
Jun 29 '08 #6
C. (http://symcbean.blogspot.com/) wrote:
On Jun 27, 2:37 pm, Michael Fesser <neti...@gmx.dewrote:
>.oO(C. (http://symcbean.blogspot.com/))
>>FTP sucks - for lots of reasons. HTTP[s] is a far more sensible
protocol for moving files in either direction.
FTP may be old and ugly, but it's still the most efficient way for file
transfers. That's why it's called file transfer protocol ...

Micha

NO IT IS NOT.
- It has no built-in support for compression
Neither does HTTP in most cases.
- It has no caching functionality
Wrong.
- It has no error detection
Wrong.
- The line-endings thing is only defined for 7-bit ascii (0 padded to
8 bits per char)
Wrong.
- It sends passwords in clear text (although basic HTTP auth is little
better)
Wrong. (sftp)
- Unless you use the passive hack or a clever firewall it will not
traverse NAT
Same with http. And passive mode is not a "hack".
- It only provides file-system level access
It is FILE transfer protocol, after all.
- It doesn't not have any functionality for sending meta-data
FILES don't have metadata.
Yes, it allows you to range operations (resume) but so does HTTP (inc
webDAV) and range operations are implicit in rsync.

...and that's before I get started on the vagaries of specific
implementations.

C.
OTOH, HTTP has significantly more overhead, size limits, is much slower,
cannot resume an interrupted transfer...

You really should learn what you're talking about before you make claims
like this.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 29 '08 #7
..oO(C. (http://symcbean.blogspot.com/))
>On Jun 27, 2:37 pm, Michael Fesser <neti...@gmx.dewrote:
>.oO(C. (http://symcbean.blogspot.com/))
>FTP sucks - for lots of reasons. HTTP[s] is a far more sensible
protocol for moving files in either direction.

FTP may be old and ugly, but it's still the most efficient way for file
transfers. That's why it's called file transfer protocol ...

Micha

NO IT IS NOT.
- It has no built-in support for compression
Just a minor issue and easily solved with explicit compression (.gz for
example).
>- It has no caching functionality
Why would you need that for file transfers? Where and what would you
like to cache?
>- It has no error detection
Neither does HTTP. TCP ensures correct transfers. If you have to check
the file integrity, you have to use MD5/SHA1 hashes anyway, independent
of the used transfer method.
>- The line-endings thing is only defined for 7-bit ascii (0 padded to
8 bits per char)
Who cares about line endings? Binary transfer works almost always. Only
some old and broken software relies on OS-specific line endings. In my
FTP program the only file extension for ASCII transfers is .pl. All the
rest is seen as binary, which is how it's supposed to be, because I want
my files to be transferred exactly as they are.
>- It sends passwords in clear text (although basic HTTP auth is little
better)
sFTP exists if necessary.
>- Unless you use the passive hack or a clever firewall it will not
traverse NAT
That's IMHO the only real drawback. A NAT router has to look into the
actual payload, not only at the packet headers (but other protocols have
the same problem and routers are usually prepared for that). NAT routing
of sFTP is even more complicated, but also possible.
>- It only provides file-system level access
Of course it does. What else would you expect from a _file_ transfer
protocol?
>- It doesn't not have any functionality for sending meta-data
What meta data do you need? How should that meta data be stored in the
several file systems? Which file systems actually do that?

Remember: We are talking about raw files here, not about some document
like an HTML page that's going to be interpreted by a viewer/browser.
>Yes, it allows you to range operations (resume) but so does HTTP (inc
webDAV) and range operations are implicit in rsync.
rsync is nice, but requires a server, which is not always available. You
would hardly find it on a shared host, while FTP is always there.

Micha
Jun 29 '08 #8
I V
On Sun, 29 Jun 2008 08:35:25 -0400, Jerry Stuckle wrote:
>- It sends passwords in clear text (although basic HTTP auth is little
better)

Wrong. (sftp)
You do know that the only thing SFTP has in common with FTP is the three
letter "FTP", right? They're completely separate protocols.
Jun 29 '08 #9
I V wrote:
On Sun, 29 Jun 2008 08:35:25 -0400, Jerry Stuckle wrote:
>>- It sends passwords in clear text (although basic HTTP auth is little
better)
Wrong. (sftp)

You do know that the only thing SFTP has in common with FTP is the three
letter "FTP", right? They're completely separate protocols.
Not at all. They are separate - but related.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 29 '08 #10
I V wrote:
On Sun, 29 Jun 2008 08:35:25 -0400, Jerry Stuckle wrote:
>>- It sends passwords in clear text (although basic HTTP auth is little
better)
Wrong. (sftp)

You do know that the only thing SFTP has in common with FTP is the three
letter "FTP", right? They're completely separate protocols.
Ah, I just realized the lack of communications. I was talking about FTP
over SSH - not used very often, but available. I think you're talking
about SSH File transfer - much more commonly used.

Sorry I wasn't more clear.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 29 '08 #11
..oO(I V)
>On Sun, 29 Jun 2008 08:35:25 -0400, Jerry Stuckle wrote:
>>- It sends passwords in clear text (although basic HTTP auth is little
better)

Wrong. (sftp)

You do know that the only thing SFTP has in common with FTP is the three
letter "FTP", right? They're completely separate protocols.
Depends. SFTP has different meanings. There is a protocol called SFTP,
but FTP through an SSH tunnel and FTP over SSL are also often called
SFTP (or FTPS in the latter case).

Micha
Jun 30 '08 #12
On Mon, 30 Jun 2008 13:05:32 +0200, Michael Fesser wrote:
.oO(I V)
>>On Sun, 29 Jun 2008 08:35:25 -0400, Jerry Stuckle wrote:
>>>- It sends passwords in clear text (although basic HTTP auth is little
better)

Wrong. (sftp)

You do know that the only thing SFTP has in common with FTP is the three
letter "FTP", right? They're completely separate protocols.

Depends. SFTP has different meanings. There is a protocol called SFTP,
but FTP through an SSH tunnel and FTP over SSL are also often called
SFTP (or FTPS in the latter case).
SSH-tunneled FTP is still FTP, and I wish people would quit trying to
label stuff that happens to be tunneled differently from the straight
protocol. It's not "w-FTP" because you happen to have an 802.11b hop in
the mix, is it? SSL-wrapped FTP is FTPS; it's only called SFTP by the
gormless.

--
"... I've seen Sun monitors on fire off the side of the multimedia lab.
I've seen NTU lights glitter in the dark near the Mail Gate.
All these things will be lost in time, like the root partition last week.
Time to die...". -- Peter Gutmann in the scary.devil.monastery
Jun 30 '08 #13
Peter H. Coffin wrote:
On Mon, 30 Jun 2008 13:05:32 +0200, Michael Fesser wrote:
>.oO(I V)
>>On Sun, 29 Jun 2008 08:35:25 -0400, Jerry Stuckle wrote:
- It sends passwords in clear text (although basic HTTP auth is little
better)
Wrong. (sftp)
You do know that the only thing SFTP has in common with FTP is the three
letter "FTP", right? They're completely separate protocols.
Depends. SFTP has different meanings. There is a protocol called SFTP,
but FTP through an SSH tunnel and FTP over SSL are also often called
SFTP (or FTPS in the latter case).

SSH-tunneled FTP is still FTP, and I wish people would quit trying to
label stuff that happens to be tunneled differently from the straight
protocol. It's not "w-FTP" because you happen to have an 802.11b hop in
the mix, is it? SSL-wrapped FTP is FTPS; it's only called SFTP by the
gormless.
Then there are a lot of gormless people in this world!

You're fighting a losing battle on this one.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 1 '08 #14
On Mon, 30 Jun 2008 20:31:16 -0400, Jerry Stuckle wrote:
Peter H. Coffin wrote:
>SSH-tunneled FTP is still FTP, and I wish people would quit trying to
label stuff that happens to be tunneled differently from the straight
protocol. It's not "w-FTP" because you happen to have an 802.11b hop in
the mix, is it? SSL-wrapped FTP is FTPS; it's only called SFTP by the
gormless.

Then there are a lot of gormless people in this world!

You're fighting a losing battle on this one.
I know, but I keep trying. It took *three days* to sort this out with a
vendor a year or two back.

--
"It's 106 light-years to Chicago, we've got a full chamber of anti-matter,
a half a pack of cigarettes, it's dark, and we're wearing visors."
"Engage."
Jul 1 '08 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: cournape | last post by:
Hi there, I have some scientific application written in python. There is a good deal of list processing, but also some "simple" computation such as basic linear algebra involved. I would like to...
5
by: Johannes Lebek | last post by:
Hi there, lately, I experienced a strange thing on my DB2 V8.1 on Windows: Some queries took a very long time. A snapshot discovered the following: Number of executions = 47...
7
by: Tim Quon | last post by:
Hi Is there any function to get the current time so I can calculate the execution time of my code? What all is in the time.h and sys/times.h? Thanks Tim
38
by: vashwath | last post by:
Might be off topic but I don't know where to post this question.Hope some body clears my doubt. The coding standard of the project which I am working on say's not to use malloc.When I asked my...
3
by: iam980 | last post by:
Hello All. We have tested following SQL script from query analyzer: -- Script begin DECLARE @I int; SET @I = 1; WHILE @I < 10000000 BEGIN SET @I = @I + 1; END -- Script end
3
by: vashwath | last post by:
Hi all, I have written program for calculating the execution time of a function.Any critics (on the method of calculating execution time) are welcome. #include <stdio.h> #include <time.h>...
2
by: Ina Schmitz | last post by:
Hi NG, does IBM Universal Database 8.2 make any difference between actual and estimated execution plans like in SQL Server ("set showplan_all on" for estimated execution plan and "set statistics...
17
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also...
40
by: kavi | last post by:
Hello friends, Could any one tell the way of calculating the speed of c program execution?
6
by: Mikhail Kovalev | last post by:
I'm using set_time_limit() to set maximum execution time. Is there a way to check how much time is left at any time during the execution itself?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.