Useful commands
Monday, February 15, 2010
.htaccess file
Instead of including a file manually in all the files we can make use of .htaccess file.
create a file .htaccess in the root folder of the project and include the following lines.
php_value auto_prepend_file "/var/www/foldername/config.php"
Open this file and give allow override All in
sudo gedit /etc/apache2/sites-enabled/000-default
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment