PHP xml to array
[php] $xml = simplexml_load_string($data); $json = json_encode($xml); $response = json_decode($json,TRUE); print_r($response);exit; [/php]
[php] $xml = simplexml_load_string($data); $json = json_encode($xml); $response = json_decode($json,TRUE); print_r($response);exit; [/php]
[php]$db = ConnectionManager::getDataSource(‘default’); $db->showLog();[/php]
It is a common seen requirement to use Flash to record audio from browser, like the famous singing search site midomi. These days I did a little survey about this, write down some memo here. There are a lot of resources introducing how to program in ActionScript to send video/audio stream via RTMP protocol. One … Read more
1. Open this link : Click Here. 2. Save the file on your coputer with cacert.pem name. 2. use curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . ‘/cacert.pem’); OR curl_setopt($ch, CURLOPT_CAINFO, ‘/path/to/cacert.pem’);
Symlinks via Command Prompt 1. First of all run your command prompt as administrator. 2. type mklink and press enter. and you can see the options. 3. if we choose /D (means directory) then use below command C:\Windows\system32>mklink /D C:\xampp\htdocs\videorepo “C:\ Program Files\Adobe\Adobe Media Server 5\webroot\live_recorded” For Referer link: Click Here
step 1: set path to environment variable. like: C:\xampp\php;C:\xampp\htdocs\yourproject\lib\cake\console\; step 2: open command prompt and type cd C:\xampp\htdocs\yourproject\app and press enter. step 3: now type cake bake now you can see the options there. you can continue accordingly.
[php]var restaurantsStore = this.getStore(); var avg_rating; restaurantsStore.clearFilter(); if ( restaurantsStore !== undefined ) { restaurantsStore.load({ callback: function(records, operation, success) { var proxy = restaurantsStore.getProxy(), message = proxy.getReader().rawData.message; if( success === false ){ Ext.Msg.alert(‘Operation Failed’, message); } else{ var vendor = records[0].get(‘vendor’); Ext.getCmp(‘poweredByContainer’).setVendor( vendor ); if( vendor === ‘O’ ){ for ( var index = 0; … Read more
Ques: http://www.sencha.com/forum/showthread.php?99255-How-can-i-Do-Checkbox-state-maintain-In-Paging-Grid Ans: http://www.sencha.com/forum/showthread.php?61282-Ext.ux.grid.RowSelectionPaging&highlight=pagingselection
install mongo on linux/ubuntu: 1. sudo apt-get install mongodb 2. sudo pecl install mongo 3. echo “extension=mongo.so” >> /etc/php5/apache2/php.ini 4. restart apache 5. restart mongodb ( sudo service mongodb restart/start ) install on centos centos 6.3 1. http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/ 2. Install php-pecl-mongo rpm package: yum install php-pecl-mongo 3. echo “extension=mongo.so” >> /etc/php.ini 4. service httpd restart … Read more
myField.allowBlank = true; myField.validateValue(myField.getValue()); //force update