Hi.
My website is for use by WAP devices. These require very a strict HTML-like language. If there is a problem with the page it will cause an error. Basically, characters like © MUST be converted to © format.
Anyway, there's a bit of PHP code in each script to convert them all for me. This is on pretty much every script and is always the same.
I use "include(scriptname.inc)" for some other purposes and it works well, BUT I wondered with such a frequent requirement for execution of this code, would I lose significant performance by putting it in a single include file and referencing to it?
The site is busy and server resources are tight but it would reduce the filesize of over 100 scripts and make editing the code easier. I appreciate that this might be a question only I can answer, but I'd like to have an idea before I change all those files.
Thanks!
Rob Pridham
wapocalypse.com
My website is for use by WAP devices. These require very a strict HTML-like language. If there is a problem with the page it will cause an error. Basically, characters like © MUST be converted to © format.
Anyway, there's a bit of PHP code in each script to convert them all for me. This is on pretty much every script and is always the same.
I use "include(scriptname.inc)" for some other purposes and it works well, BUT I wondered with such a frequent requirement for execution of this code, would I lose significant performance by putting it in a single include file and referencing to it?
The site is busy and server resources are tight but it would reduce the filesize of over 100 scripts and make editing the code easier. I appreciate that this might be a question only I can answer, but I'd like to have an idea before I change all those files.
Thanks!
Rob Pridham
wapocalypse.com