Tag “PHP”
-
Overwrite PHP’s built-in functions in unit tests
4 Mar 2014
In unit tests you might run in problems, when your code uses PHP built-in functions, that emit certain hard-coded values like
session_start()
. When you use PHP namespaces, however, you can solve this problem in an elegant way. -
Using PHP as It was Meant to
11 May 2011
PHP has been thrashed a lot over the last years. While many critics are doubtlessly true, it is still the most used server-side language to create the web we use today and it is an easy to learn language to get started w…
-
A Minimal Proxy with PHP and SQLite
8 Mar 2011
Many web services allow access to their APIs via JSONP nowadays. This allows client-side JavaScript to access ressources via domain boundaries. However, for several reasons caching ressources locally (on the same server …