Categories
Uncategorized

.htaccess hide “.php” extension and custom 404 page

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteEngine on ErrorDocument 404 /spel/template/404

Categories
Uncategorized

Step-by-Step Installing Citadel Mail Server on CentOS

yum install gcc gcc-c++ autoconf automake yum install zlib-devel yum install gettext wget -q -O – http://easyinstall.citadel.org/install | sh

Categories
Uncategorized

Convert all your tabled From MyISAM to INNODB MySQL

This post shows exactly how to do, we will make use of a webserver and a php script to do the task but I guess you could do it through command line as well. <?php # Connect mysql_connect(‘localhost’, ‘root’, ‘pass’) or die(‘Could not connect: ‘ . mysql_error()); # Choose a database mysql_select_db(‘my_db’) or die(‘Could not […]

Categories
HTML5 Uncategorized

HTML Forms and Submit Button Changing Name

This article explores HTML webforms and specifically the submit button in terms of changing the name, id and value. We explore Submit Button Changing Name Examples. Example 1: Simple form tags and a frugal submit input <form> <input type=”submit” /> </form> Result 1: Submit label is ‘Submit’, Default action is to do a Get. Example […]

Categories
Uncategorized Zend Framework 1.12

Go Back to Referring page Zend Framework

Tutorial on how to go back to previous page Zend Framework Controller: $request = $this->getRequest(); $referrer = $request->getHeader(‘referer’); $this->view->referer = $referer; View: