Entries Tagged as 'php'
PHP is slow. This should not be a huge revelation for any of us, and this is not because PHP is a bad programing language, or because Python or Ruby are better. This is because it is an interpreted language. Every time you execute a PHP script it is going to do the exact same [...]
[Read more →]
Tags: apc·Drupal performance·hosting·Performance·php
APC (Alternative PHP Cache) is a free, open, and robust framework for caching and optimizing PHP intermediate code. APC is a great tool to speed up a php driven site and I can’t even think of a big site running on a php framework without an opcode cache (other good choices are eaccelerator or xcache). [...]
[Read more →]
Tags: apc·php·tips
Latest version of PHP available for RHEL5.x is 5.1.6 and no new RedHat releases are coming as packaging has ceased. You can get PHP 5.3 for RHEL5 from Remi, but it it’s incompatible with latest versions of Drupal, Civicrm or many modules so we need the a 5.2X branch of PHP. This requires building php [...]
[Read more →]
Tags: drupal·php·rhel
If you are using a shared server, or just have a limited account on your Buy Cipro Online company servers, you might not have access to your php configuration file php.ini (this is usually found under /etc/php.ini in rhel/centos and /etc/php5/apache2/php.ini in debian/ubuntu). Still, in many situations it might be needed to enable php errors [...]
[Read more →]
Tags: php
When using cPanel the way to enable allow_url_include directive locally (per user) is to create an Virtual Host include: First create an include file: /usr/local/apache/conf/userdata/std/2/username/domain.com/custom.conf Add directive to custom.conf: php_admin_flag allow_url_include On Then run to enable include: /scripts/ensure_vhost_includes –user=username –verbose Alternatively, enabling allow_url_include globally (server-wide) is done by editing /usr/local/lib/php.ini and adding “allow_url_include = On” [...]
[Read more →]
Tags: include·php
This post describes a way to implement data encryption in the front-end of an application and how to make it compatible between a PHP front-end and a Java front-end. First off we need to decide what type of encryption to use. AES is an encryption standard that has been endorsed by the NSA and is [...]
[Read more →]
Tags: aes·encryption·gnu-crypto·java·php·rijndael
Considering that you have an existing php installation compiled from sources, it is very easy to add afterwards new php modules, outside the php binary. This can be achieved without any interruption of the web services, and requires just the following steps: 1. Ensure you have the mcrypt libraries and development tools. For example on [...]
[Read more →]
Tags: CLI·mcrypt·php