Posts

function split() is deprecated php and codeingiter , joomla , worpress , magento, php, smarty, cakephp

replace    $base_struc     = split('[/.-]', 'd/m/Y');  to     $base_struc     = explode('/', 'd/m/Y'); function split() is deprecated php and codeingiter , joomla , worpress , magento, php, smarty, cakephp

The URI you submitted has disallowed characters. in codeigniter [solve]

[SOLVE] first replace in config.php -$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';  to $config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-'; second - replace from  D:\xampp\htdocs\hes\system\libraries\URI.php if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str)) to if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str))) i think you got my point and then working   good

codeigniter Deprecated error and A PHP Error was encountered [SOLVE]

Deprecated : Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\hes\system\codeigniter\Common.php on line 123    SOLVE to replace -> $objects[$class] =& new $name(); to $objects[$class] = new $name(); Deprecated : Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\hes\system\codeigniter\Common.php on line 129   SOLVE to replace ->  $objects[$class] =& new $name(); to $objects[$class] =new $name();   A PHP Error was encountered Severity: 8192 Message: Function set_magic_quotes_runtime() is deprecated Filename: codeigniter/CodeIgniter.php Line Number: 60 SOLVE to replace - set_magic_quotes_runtime(0);  to ini_set("magic_quotes_runtime",0); then restart your web server application.,.,. A PHP Error was encountered Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: libraries/Loader.php Line Number: 248 SOLVE to replace -     ...

count number of word from a string in php

<?php $str = "extract word from a sring using php"; //before $extractword= str_word_count($str); $extword=explode(" ",$str); //count word from string echo count($extword); echo "total word in a string is =$extractword<br>"; // after $couter=1; foreach($extword as $word){ echo "$couter  ".$word."<br>"; $couter=$couter+1; } ?>

how to extract number of word in a string and string count using php

<?php $str = "extract word from a sring using php"; //before $extractword= str_word_count($str); $extword=explode(" ",$str); //count word from string echo count($extword); echo "total word in a string is =$extractword<br>"; // after $couter=1; foreach($extword as $word){ echo "$couter  ".$word."<br>"; $couter=$couter+1; } ?>provided by amazon and ebay

simple example add , delete ,update ,show records in cakephp

stp-1 CREATE TABLE IF NOT EXISTS `movies` (   `id` char(36) NOT NULL,   `title` varchar(255) DEFAULT NULL,   `genre` varchar(45) DEFAULT NULL,   `rating` varchar(45) DEFAULT NULL,   `format` varchar(45) DEFAULT NULL,   `length` varchar(45) DEFAULT NULL,   `created` datetime DEFAULT NULL,   `modified` datetime DEFAULT NULL,   PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; ---------------------------------------------------------------------------------------------------------- stp- 2->create controller page under(moviescontroller.php)-> D:\xampp\htdocs\cakephp_lt\app\Controller\moviescontroller.php and paste below code ---------------------------------------------------------------------------------------------------------- <?php class MoviesController extends AppController {     public $components = array('Session');                 public function...

facebook login using php and get user emai id and orther data from face book

stp-1->include_once(COMMONINCLUDES.'classes/facebook.php'); -------------------------------------------------------------------------- stp-2 ------------------------------------------------------------------------ class facebookapi {             function facebookapi($postArr)     {                global $g_criteria1;                 parent :: CommonClass();         //parent :: Facebook();                                 $this->CheckGetMagicQuotes($postArr);                 switch($g_criteria1)         {              ...