PHP Archives - Experiencing Technology https://blog.tinned-software.net/category/php/ Tinned-Software Blog Wed, 19 Apr 2017 19:07:38 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.4 Update to PHP 5.6 on CentOS 6 using remi repository https://blog.tinned-software.net/update-to-php-5-6-on-centos-6-using-remi-repository/ Mon, 17 Apr 2017 08:00:15 +0000 https://blog.tinned-software.net/?p=2256 With CentOS being a conservative distribution, security patches are still applied to CentOS 6, but no new versions are available. When running some websites – like Virtualmin – on CentOS 6, the old PHP version 5.3.3 can cause problems. Updating to a newer … Continue reading

The post Update to PHP 5.6 on CentOS 6 using remi repository appeared first on Experiencing Technology.

]]>
Using the Symfony Validator as a standalone component https://blog.tinned-software.net/using-the-symfony-validator-as-a-standalone-component/ Fri, 18 Jul 2014 17:20:27 +0000 http://blog.tinned-software.net/?p=1642 It’s easy to think of Symfony as just being a huge full-stack PHP framework, that you either base your entire project around or ignore completely, but in fact, the individual Symfony components can be surprisingly easy to slot into an existing project. This … Continue reading

The post Using the Symfony Validator as a standalone component appeared first on Experiencing Technology.

]]>
PHP Unable to load library module.so https://blog.tinned-software.net/php-unable-to-load-library-module-so/ Thu, 01 May 2014 16:34:14 +0000 http://blog.tinned-software.net/?p=1055 If you see in the Apache error_log log-file an error like "Unable to load dynamic library /usr/lib/php/modules/module.so", you probably have CentOS 6.4 which has a configuration issue in the mcrypt configuration file. Continue reading

The post PHP Unable to load library module.so appeared first on Experiencing Technology.

]]>
WordPress performance tuning https://blog.tinned-software.net/wordpress-performance-tuning/ Wed, 27 Nov 2013 19:15:57 +0000 http://blog.tinned-software.net/?p=1114 While migrating from one server to a Amazon AWS i noticed a huge decrease in performance on the AWS instance. While the Wordpress blog took a second or so to load on the old server (dedicated server) the processing time went up to about 5-10 seconds for one page load. At first you might immediately think of the server as the bottle neck. But a slow server will just bring the problem to light. Continue reading

The post WordPress performance tuning appeared first on Experiencing Technology.

]]>
Why is my Symfony 2 app crashing with an out of memory error? https://blog.tinned-software.net/why-is-my-symfony-2-app-crashing-with-an-out-of-memory-error/ Thu, 11 Apr 2013 18:09:37 +0000 http://blog.tinned-software.net/?p=300 I’ve recently run into an issue where a data-processing task in a Symfony app would crash with a PHP ‘Out of memory’ fatal error. The task in question was using Doctrine to retrieve some rows from the database, updating some … Continue reading

The post Why is my Symfony 2 app crashing with an out of memory error? appeared first on Experiencing Technology.

]]>
PHP “headers already sent”, but I didn’t do it! https://blog.tinned-software.net/php-headers-already-sent-but-i-didnt-do-it/ Tue, 29 Jan 2013 16:19:29 +0000 http://blog.tinned-software.net/?p=193 I get the PHP Error "headers already sent" when calling a PHP script! My scripts appear to be outputting data to the browser before any function to manage the buffer such as ob_flush() or ob_get_contents() is even being called! What is going on!? Continue reading

The post PHP “headers already sent”, but I didn’t do it! appeared first on Experiencing Technology.

]]>
My HTML-form mysteriously stopped working, why? https://blog.tinned-software.net/my-html-form-mysteriously-stopped-working-why/ Sat, 29 Dec 2012 11:27:46 +0000 http://blog.tinned-software.net/?p=51 Nobody changed it, why is it not working anymore? You can imagine the confusion after checking the version control and the files which where unchanged since the time the website was finished (lets say about 4 years). Continue reading

The post My HTML-form mysteriously stopped working, why? appeared first on Experiencing Technology.

]]>