I have a high traffic site that does business in the US and Canada. We have many servers, but I want to make sure that it is 100% available without latency.
I found out about creating custom extensions (I know a little C) and I want to create custom validation / files (since php extensions are faster).
I donβt want to ask you for all new extensions, but I want to know the general idea of ββhow to build it (I use CentOS).
Example:
One section of our site is shipping tracking, and this requires a zip code.
For the USA, I have:
function check_usa_postal_code($pc) { return is_numeric($pc); }
But for Canada, I would like to create a custom function in PHP, for example:
check_canada_postal_code($pc)
This function should return 1 or 0.
thanks
apollo
source share