How much traffic (bandwith) does getimagesize() take for images (30Kš located at local and/or external servers?
For "local" I mean the same server where the php script is located. Thank you.
none. php works on the server.
you want to rephraze your question?
Thanks for your replay.
getimagesize("folder/photo.jpg"); //local getimagesize("http://another_domain.com/folder/photo.jpg"); //non local file
How much traffic generates this function?
none on the local machine.
as for the remote machine, however big the image is, is how much of the remote servers bandwidth would be used i should imagine. so, if the img is 30k, it would be 30k.
Which server counts this traffic? That where the php script is located at or that where the image is located?
Originally posted by thorpe none on the local machine.
Are you sure about this? Some own experiences don't coincide.
the bandwidth will be drawn from the server the image is served from.
as for that. no bandwidth will be used when calling this function from a local script. unless of course you call that script from over the internet. then it will eat into your (local machine) bandwidth.
unless of course you call that script from over the internet
In this purpose (getimagesize traffic) script1.php and script2.php are located at www.domain.com
//script1.php <a href="script2.php">bla</a>
?will be the same as
<a href="http://domain.com/script2.php">bla</a> ?
Absolute URL is considered same as relative for getimagesize()?
In other words.
Does getimagesize("http://domain1.com/photo.jpg") produce traffic ? You are saying that getimagesize("photo.jpg") does not.
(assuming that the script where this function resides is located at domain1.com )
anything on your server requested from outside your server produces 'traffic'.
any time anyone requests anything on your server it will eat into your bandwidth.