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
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 fully [...]
Installing MYSQL with PHP 4
apt-get install mysql-server libapache2-mod-auth-mysql php4-mysql
Installing MYSQL with PHP 5
apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
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 libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common [...]