//Input
$files = Array
(
[0] => Array
(
[filename] => 1.mp4
[modified] => 0.00
)
[1] => Array
(
[filename] => video2
[modified] => 1.00
)
[2] => Array
(
[filename] => video1
[modified] => 2.00
)
)
usort($files, array('UsersController','date_compare'));
$files is your multidimensional array
UsersController is your class...
I am ubed khan php developer have an 5years plus experience in web development lives in Nagpur India. I have knowledge about phonegap, cakephp ,mysql , jquery, javascript, ajax, html5, and css.
Saturday, October 17, 2015
Friday, October 16, 2015
Upload BY FTP
if(!empty($submitne))
{
$form_data = $fwRequest->getParam('ne_days', array());
$tblne_days = new Fw_Db_Table('ne_days');
$ext = strtolower(array_pop(explode('.',$_FILES['video']['name'])));
$video_ext = array("flv");
//if(in_array($ext,$video_ext))
//{
$video_name = time()."_".$_FILES['video']['name'];
$destination=BASE_DIR ."upload/video/".$video_name;
$ch = curl_init();
$file = $_FILES['video']['tmp_name'];
$fp = fopen($file, 'r');
curl_setopt($ch, CURLOPT_URL,...
Sunday, August 30, 2015
Cakephp Simple Acl Controlled Application

This article will cover all following aspects
How to install cakephp,
How to set environment variable path on window 7,
How to generate code by using bake console feature of cakephp
How to permission users on the basis of their groups (ACL) .
To achieve first point just click on How to install cakephp
Then set environment variable path Click here
Execute Following...
Subscribe to:
Posts (Atom)