Hmmm, I suppose the files and the php server may be on different machines -
hadn't thought of that :-) I guess I need to make a compromise on my script
then.
- seb
-----Original Message-----
From: Chris Wesley [mailto:[EMAIL PROTECTED]]On Behalf Of
Christopher William Wesley
Sent: 04 September 2001 01:59
To: Seb Frost
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Am I right or wrong?
On Tue, 4 Sep 2001, Seb Frost wrote:
> I have a folder of ~80kb images that are dynamically resized using PHP
into
> ~1.4kb thumbnails. Now for each one the PHP server sends an HTTP request
> for the 80kb image, and this is being counted against my 10,000MB.
>
> Should it? Am I in the right in thinking that it shouldn't?
So, your PHP scripts are on one server, and your big images are on a
separate server? If so, you are generating traffic between the two
servers ... at which point you need to consult your service contract.
Your contract should tell you for what traffic (including between which
servers, across which networks) you will be billed. It's kind of strict
to charge for traffic across a local network ... I wish you luck fighting
your ISP if the contract doesn't define for which traffic you'll be
billed.
Aside from the ISP issue ... dynamically resizing 80K images on the fly is
frightful thing. Creating thumbnails [once/at regular intervals] would be
a wise step to take. It takes the load off the web server and will cut
your network traffic. The tradeoff is disk space usage ... but you can
store 57 1.4KB thumbnails in the same space as one 80KB image :) Good
trade!
~Chris /"\
\ / Pine Ribbon Campaign
Microsoft Security Specialist X Against Outlook
The moron in Oxymoron. / \ http://www.thebackrow.net
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]