Archive for the ‘PHP Configuration’ Category

Sometimes you need to use the variables passed to script avoiding usage of superglobal arrays. If you are on shared hosting, you won’t have access to your php.ini file and won’t be able to change register_globals setting. A simple function will help you to do this.
<?
/**
* function to emulate the register_globals setting in PHP
* [...]

If you just got a clean server without PHP installed and you are trying to do this, you might receive the following error: configure: error: no acceptable cc found in $PATH. This means you don’t have c compiler installed. Just type in yum install gcc and install all the necessary libs. Then you might receive [...]

Iconv functions are often used in PHP when you have problems with character encoding. When you have non-latin chars in the text you work with, you might have problems with storing them, writing into database, etc. It becomes useful when you use several different encodings and when you need to store or output some text [...]

Today we’ll add Freetype support for your PHP installation. You might need it if you work with GD library and if you want to add text on pictures. Let’s do it together. Starting PuTTY…
Let’s install Freetype devel first. You can do that by issuing the following command: yum install freetype-devel.

Now we need to configure [...]

This time I will show you how to add dba support to php. This is usually necessary when you’re planning to work with big databases and MySQL is not a good idea for any reason. First of all, you should have root access to your server or VPS, in order to reconfigure PHP and [...]