FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » file size
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
file size [message #183731] Sun, 17 November 2013 17:12 Go to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
Just curious.
Say I have a php page that has a file size of 5kb.
In the script I include a page that is 300kb in size.
Is the server seeing the page as 305kb or 5kb?
Re: file size [message #183732 is a reply to message #183731] Sun, 17 November 2013 17:24 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
On 17/11/13 17:12, richard wrote:
> Just curious.
> Say I have a php page that has a file size of 5kb.
> In the script I include a page that is 300kb in size.
> Is the server seeing the page as 305kb or 5kb?
>
What does the term 'server seeing' mean, please?

I have yet to find a web server endowed with eyes or intelligence, which
are both qualities associated with 'seeing'

--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
Re: file size [message #183734 is a reply to message #183732] Sun, 17 November 2013 18:17 Go to previous messageGo to next message
Evan Platt is currently offline  Evan Platt
Messages: 124
Registered: November 2010
Karma: 0
Senior Member
On Sun, 17 Nov 2013 17:24:00 +0000, The Natural Philosopher
<tnp(at)invalid(dot)invalid> wrote:

> On 17/11/13 17:12, richard wrote:
>> Just curious.
>> Say I have a php page that has a file size of 5kb.
>> In the script I include a page that is 300kb in size.
>> Is the server seeing the page as 305kb or 5kb?
>>
> What does the term 'server seeing' mean, please?
>
> I have yet to find a web server endowed with eyes or intelligence, which
> are both qualities associated with 'seeing'

My bet is bullis has a hosting package which has a bandwidth limit.
--
To reply via e-mail, remove The Obvious and .invalid from my e-mail address.
Re: file size [message #183736 is a reply to message #183734] Sun, 17 November 2013 19:35 Go to previous messageGo to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
On Sun, 17 Nov 2013 10:17:56 -0800, Evan Platt wrote:

> On Sun, 17 Nov 2013 17:24:00 +0000, The Natural Philosopher
> <tnp(at)invalid(dot)invalid> wrote:
>
>> On 17/11/13 17:12, richard wrote:
>>> Just curious.
>>> Say I have a php page that has a file size of 5kb.
>>> In the script I include a page that is 300kb in size.
>>> Is the server seeing the page as 305kb or 5kb?
>>>
>> What does the term 'server seeing' mean, please?
>>
>> I have yet to find a web server endowed with eyes or intelligence, which
>> are both qualities associated with 'seeing'
>
> My bet is bullis has a hosting package which has a bandwidth limit.

and you would lose that bet.
http://www.hostgator.com/shared
Re: file size [message #183737 is a reply to message #183731] Sun, 17 November 2013 19:41 Go to previous messageGo to next message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma: 0
Senior Member
On 17/11/13 18:12, richard wrote:
> Just curious.
> Say I have a php page that has a file size of 5kb.
> In the script I include a page that is 300kb in size.
> Is the server seeing the page as 305kb or 5kb?

This is really OT as it has nothing to do with PHP.

The server will see two files, one 5kb and another 300kb large, the web
service will send you a stream of 305 kb (plus hand shaking, headers,
cookies).

--

//Aho
Re: file size [message #183739 is a reply to message #183737] Sun, 17 November 2013 20:45 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/17/2013 2:41 PM, J.O. Aho wrote:
> On 17/11/13 18:12, richard wrote:
>> Just curious.
>> Say I have a php page that has a file size of 5kb.
>> In the script I include a page that is 300kb in size.
>> Is the server seeing the page as 305kb or 5kb?
>
> This is really OT as it has nothing to do with PHP.
>
> The server will see two files, one 5kb and another 300kb large, the web
> service will send you a stream of 305 kb (plus hand shaking, headers,
> cookies).
>

Maybe... Depending on the request, cache control, phase of the moon and
a dozen other things.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: file size [message #183742 is a reply to message #183736] Mon, 18 November 2013 04:23 Go to previous messageGo to next message
Evan Platt is currently offline  Evan Platt
Messages: 124
Registered: November 2010
Karma: 0
Senior Member
On Sun, 17 Nov 2013 14:35:20 -0500, richard <noreply(at)example(dot)com>
wrote:

>> My bet is bullis has a hosting package which has a bandwidth limit.
>
> and you would lose that bet.
> http://www.hostgator.com/shared

Oh. A link. That proves it.

LOL
--
To reply via e-mail, remove The Obvious and .invalid from my e-mail address.
Re: file size [message #183764 is a reply to message #183736] Mon, 18 November 2013 16:22 Go to previous messageGo to next message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma: 0
Senior Member
Am 17.11.2013 20:35, schrieb richard:
> On Sun, 17 Nov 2013 10:17:56 -0800, Evan Platt wrote:
>
>> On Sun, 17 Nov 2013 17:24:00 +0000, The Natural Philosopher
>> <tnp(at)invalid(dot)invalid> wrote:
>>
>>> On 17/11/13 17:12, richard wrote:
>>>> Just curious.
>>>> Say I have a php page that has a file size of 5kb.
>>>> In the script I include a page that is 300kb in size.
>>>> Is the server seeing the page as 305kb or 5kb?
>>>>
>>> What does the term 'server seeing' mean, please?
>>>
>>> I have yet to find a web server endowed with eyes or intelligence, which
>>> are both qualities associated with 'seeing'
>>
>> My bet is bullis has a hosting package which has a bandwidth limit.
>
> and you would lose that bet.
> http://www.hostgator.com/shared

Did you read the fine print as well?

It is technically impossible to offer "unlimited" bandwidth. There is
just no limit defined in the contract - but of course there *is* a limit:

"There are no set limits on the disk space or data transfer (bandwidth)
that we provide in our shared and reseller hosting plans. We want you to
have the resources you need to build a great online presence.

That being said, we do require all customers to be fully compliant with
our Terms of Service and utilize disk space and bandwidth in the normal
operation of a personal or small business website. While it is rare, we
may need to put constraints on accounts that are using resources that
impact other customers on the same server.

Typically, customers only run into issues if they use their accounts for
storage or file sharing, which is not what our services are intended to
support. In accordance with our Terms of Services the disk space and
bandwidth you use must be integrated into the normal operation of your
website.

For Example, customers who are affecting other clients or are using 25%
or more of system resources for longer then 90 seconds would be in
violation. Please see our TOS or contact us for complete details and
restrictions."


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
Re: file size [message #183766 is a reply to message #183737] Mon, 18 November 2013 16:26 Go to previous messageGo to next message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma: 0
Senior Member
Am 17.11.2013 20:41, schrieb J.O. Aho:
> On 17/11/13 18:12, richard wrote:
>> Just curious.
>> Say I have a php page that has a file size of 5kb.
>> In the script I include a page that is 300kb in size.
>> Is the server seeing the page as 305kb or 5kb?
>
> This is really OT as it has nothing to do with PHP.
>
> The server will see two files, one 5kb and another 300kb large, the web
> service will send you a stream of 305 kb (plus hand shaking, headers,
> cookies).

No - it won't. How much is being *sent* depends on what the PHP script
produces as output and not on the script size.


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
Re: file size [message #183774 is a reply to message #183739] Mon, 18 November 2013 18:19 Go to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Sun, 17 Nov 2013 15:45:41 -0500, Jerry Stuckle wrote:

> Maybe... Depending on the request, cache control, phase of the moon and
> a dozen other things.

I believe a link has been postulated to the number of goats sacrificed at
Chichen Itza in the preceding lunar month.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: what syntax errors will cause mismatching arrays?
Next Topic: searching an array
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 09:52:23 GMT 2024

Total time taken to generate the page: 0.02602 seconds