free hit counter

Prevent uploads nude or adult images using php

Prevent uploads nude or adult images using php
  Image Nudity Filter can be used to determine whether an image may contain nudity. It analyses the colors used in different sections of an image to determine whether those colors match the human skin color tones. As result of the analysis it returns a score value that reflects the probability of the image to ...

How to debug SQL queries from a controller in cakePHP

How to debug SQL queries from a controller in cakePHP
  Debug SQL queries from a controller in cakePHP Getting last query on CakePHP when you need to exit in the middle of the action is pretty annoying. You would usually do a function where the dataSource would be instantiated and then you would access the queryLog. $log = $this->Model_name->getDataSource()->getLog(false, false); debug($log);

Remove Cakephp Model Field Validation from Controller

Remove Cakephp Model Field Validation from Controller
  in Cakephp we set all validation in model ! but many time we didn’t need some validation for particular field ! in that condition  how to remove that validation ? its very simple , you need to write some line in controller   //Remove only Single Rule of a field       $this->User->validator()->remove(‘phone’, ‘rule1’);       //Completely remove all validation rules of  a field       $this->User->validator()->remove(‘phone’);     First Line of ...

CakePHP V/s other frameworks 2

CakePHP V/s other frameworks
CakePHP V/s Symfony URL : http://symfony.com CakePHP VS Symfony Compariosn Both CakePHP and Symfony are excellent frameworks for developing robust web applications. Analysing their pros & cons helps you choose the best out of these. CakePHP v/s Symfony – A Quick Comparison To Help Developers Choose The Best Framework! PHP based frameworks such as CakePHP ...

CakePHP Framework

CakePHP Framework
CakePHP – Rapid Application Development Framework CakePHP is a rapid web application development framework powered by the popular PHP language. Using CakePHP, developers can easily build scalable applications as per different needs. CakePHP, A Solid MVC Architecture Based Open Source Framework That Makes Web Application Development A Breeze The CakePHP Framework is an open source ...

Editing .ctp Files in Dreamwaver and Eclipse

Editing .ctp Files in Dreamwaver and Eclipse
Editing .ctp Files in Dreamwaver In Dreamweaver, by default,we can’t edit our codes in .ctp script in the code or design views. Using Dreamweaver configuration, we can set it up. Here we will see the proper configuration for 1.Viewing   CTP and THTML files in code view with PHP syntax coloring 2.Viewing  CTP and THTML files in ...

Image Resize Component for CakePHP

Image Resize Component for CakePHP
image resize with aspect ratio in CakePHP Installation Place the above script in a file named ImgResizerComponent.php within your app/controllers/components/ directory. Next, simply add ‘ ImgResizer‘ to your controller’s component property.               ImgResizer Component Download Link  Example $image = WWW_ROOT . ’img/myimage.png’;   $w=100;   $h=100;   $this->ImgResizer->set_image($w,$h,$image );