
Search In
Hello Reader's If you have writing the code that makes the cookies for valid lifetime then you just need to set big number for it's validity. As the example below PHP code:-
Maximum value: 2147483647
setcookie("CookieName", "CookieValue", 21474836
Sometimes we need to rapidly hit the same API . Like ,"http://myAPI.php?param=123456"
There is a caching problem in IE. Swf hits URL first time and store in to the cache and shows the same result in each response. So to resolved the issue we just add
Suppose that you have to implement a class named Dragonball. This class must have an attribute named ballCount (which starts from 0) and 2 methods iFoundaBall and iLostball. When iFoundaBall is called, ballCount is increased by one. When ilostball is
Retrieve the data from the database.
CakePHP come with the functions to get the data from the database.
find: It is a multifunctional function of all model data-retrieval function.
It is used under the controller.
It is used for fetching th
A function is a group of statements that does a special task. the function can be called repeatedly to execute the same statements.
The syntax of the user defined functions in php is as :
function functionName() {
code to be executed;
}
Here
To send the email using the CakeEmail we first need to configure the smtp configuration that is in the Config/email.php.
public $smtp = array(
'transport' => 'Smtp',
'from' => array('youremailaddress@abcd.com' => 'My Site'),
'host' =
An error is defined as the unexpected state of the program. An error message is then displayed to the browser.
There are four types of error in PHP-
Parse Error
Fatal Error
Warning Error
Notice Error
1.Parse Errors- Parse error is also known
Cakephp Ajax Pagination:
This blog will help you to paginate page using ajax. First of all create Users table and add some data in it, now create its model, view and controller by following command:
$ cd /var/www/html/cakephp/app
$ /var/www/html/c
Hi,
My code working in my locahost wamp server. But if I uploaded it to my hosting server it's not working.
Please give solution. Or reason for this problem. Thanks
Here is my code :
<?php
session_start();
if(!isset($_GET['subm
There is a function array_count_values() in PHP which counts the frequency of occurrences of all values of an array. The function returns an associative array with original values as keys and the number of occurrences as values.
Syntax: array_count_
