Category Archives: PHP

Howto make your live easier with an autoloader

Do you honestly want to include all needed classes at the top of every one of your php files? If you say yes, go on, have fun with your code, your problem. Ok, so an autoloader cares about loading all … Continue reading

Posted in howto, PHP, tools | Tagged , | Leave a comment

Error fetching http headers …

… really is as uninformative error message you can encounter during a call to some SOAP service. At least at the first glance. Digging deeper into the issue there’s some really interesting causes to that one. Ok, first some more … Continue reading

Posted in howto, PHP, Uncategorized | Leave a comment

Clone wars …

… or what you need to keep in mind when using DI (dependency injection). Let’s think of an example: we have an application and want to use some generic counter object given to some of our objects. The counter might … Continue reading

Posted in PHP | Tagged , , | Leave a comment

Testing timeouts

According to php.ini, max_execution_time is set to 30 seconds. When running the following code snippet from browser, script runs much longer than 30 seconds, even longer than the apache timeout of 300 seconds. Looks like the php command sleep does … Continue reading

Posted in PHP | Tagged , , | Leave a comment