Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to make a cookie with no expire lifetime

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

Internet Explorer(IE) Caching Flash SWF Problem

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

How to Implement a PHP Class Containing 2 Methods?

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

Retrieving and Set the data in cakePHP

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

Functions in php

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 email using cake email

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' =

ERRORS IN PHP

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 2.7: How to paginate using ajax in cakephp?

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

My code Not Working On Hosting Server

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&#95;start(); if(!isset($&#95;GET['subm

How to count the number of occurrences of values in an array

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_

1 15 39
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: