If I have a script on my webpage which displays the time in real-time (updates every second), does it eat up my bandwith?
thnx
Printable View
If I have a script on my webpage which displays the time in real-time (updates every second), does it eat up my bandwith?
thnx
No. If its like any other clock script the user's browser is the one doing the work. Unless of course you have it setup to refresh to get the time change.
Btw you may want to use @ infront of your include() to disable to error message on the page in your signature :)
Huh??Quote:
Originally Posted by Thantos
Have you done this yet? (what Thantos said)
If not, putting the @ symbol in front of a PHP function will suppress error messages if errors occur. It makes your site more friendly if something bad happens (heaven forbid).
Sorry didn't noticed that you replied alphaoide or I would have explained.
Thanks ober for covering my arse :)
For things that reveal internal directory structures or sensative info in the error message I like to put @ in front of the commands.
Also it lets you be lazy. Say you want to have a news/update file and include it if its present, then you can do a @include on it and if its present then you get the update, if its not then you don't have an error message :)
kewl, thanks for the tips guys.
yeah you'll run into stuff constantly that will throw an error (especially in self checking forms) where a variable is used but not declared until the form is submitted. At that point using the @ symbol will keep it from displaying the unnecessary error message.
just thought i'd add my 2 cents