Pages

Showing posts with label check. Show all posts
Showing posts with label check. Show all posts

Wednesday, October 2, 2013

PHP-Version Check code

 if (version_compare(phpversion(), '5.0.0', '>=') !== true) {  
   exit('This website runs with PHP5... You version is <b>' . phpversion() . '</b>.Please upgrade');  
 }  

Sunday, June 9, 2013

Cakephp->check if there was a referrer page/last page

Cakephp check for a last page/redirect to last page


 if($this->reffrrer()!='/')  
 {  
 $this->redirect($this->reffrrer());
 }  
 This works in controller 

Tuesday, July 3, 2012

Check if java script is disabled

use
"noscript" html tag

check here