Skip to content

Tag Archives: php

How to change the time zone within a php script

06-Nov-09

How to change the time zone within a php script You can change the time zone within a php script. Here is a sample code: You can set the timezone in .htaccess as well. Add the line: SetEnv TZ America/Indianapolis List of timezones is here: http://us.php.net/manual/en/timezones.php

PHP Security

01-Nov-09

PHP Security PHP as a module or as a CGI Using PHP as a mod-ule is suitable for systems that are dedicated to a single purpose or for sites run by trusted groups of administrators and developers. Using PHP as a CGI (possibly with an execution wrapper) is a better option when users cannot be [...]

Installing MYSQL with PHP4

31-Oct-09

Installing MYSQL with PHP 4 apt-get install mysql-server libapache2-mod-auth-mysql php4-mysql

Installing MYSQL with PHP 5

31-Oct-09

Installing MYSQL with PHP 5 apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

Install LAMP stack in Ubuntu

30-Oct-09

Install LAMP stack in Ubuntu As of the 7.04 release +, the Ubuntu base system includes Tasksel. You can either install LAMP using tasksel or install the LAMP packages as detailed above. sudo tasksel install lamp-server To remove the LAMP stack remove the following packages: apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off [...]