RE: [PHP] Am I right or wrong?

From: Date: Tue, 04 Sep 2001 01:10:33 +0000
Subject: RE: [PHP] Am I right or wrong?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65817@lists.php.net to get a copy of this message
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:cwwesley@cartman.ee.udel.edu]On Behalf Of Christopher William Wesley Sent: 04 September 2001 01:59 To: Seb Frost Cc: php-general@lists.php.net 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

« previous php.general (#65817) next »