
Search In
Hi Guys,
Do you have any PHP Programming Problems? Or Stuck in a PHP Language Issue? Just visit FindNerd Community Forum and get answers to all your PHP Language Queries on PHP Developer Forum. In this video blog, I am going to explain, how you can
PHP has three types of modules which are as following.
A) Core PHP : This modules handles requests, error handling as well as file streams.
B) Zend Engine: It convert the php code into machine tokens or opcode and it will execute it in a virtual ma
Hello Readers's if you want to get a recursive set of dates between two given dates, For example
10-12-2105 to 19-12-2015 there are 9 days all will have different dates. By using PHP you can get this as using the code below:-
$startTime = strtotime
Hello Reader's!
If you have to destroy or unset the user's session automatic then the better way is to set with time dependency
session_start();
if (!isset($_SESSION['EXPIRES']) || $_SESSION['EXPIRES'] < time()+1800) {
session_destroy();
Hello reader's If are using the Windows environment and developing the SSL based websites then you might have to enable the SSL for PHP for the first time. So to enable that you just need to perform the following tasks steps:-
Step1: Rename php.in
Hello Reader's! If you want to send variables from PHP to jQuery then you have to use the selectors:-
Lets's see the example below:-
This you have to put in the bottom of php page with the selector is "input[type=checkbox]"
$("input[type=checkbox
We can set the cookies with function called setcookie() . This function requires six arguments to be pass.
Syntax:
setcookie(name, value, expire, path, domain, security);
Creating cookies:
<?php
setcookie("name", "John Watkin", time()+3600
Hello Reader! If you developing the website for a global purpose then getting the time zone of your user is a important factor.
In the example below we'll see how to get the user's time zone by using JavaScript and PHP with a custom webpage.
First
On converting the given time in seconds you have to follow the calculation in days and hours etc. Using PHP you can get the format by using the code below:-
Here I created the function ConvertToSec ($sec) as param:
function ConvertToSec($sec) {
Hi Reader's,
Welcome to FindNerd, today we are going to discuss set default timezone in CakePHP 2.x
When developing an application in CakePHP, sometimes we need to set default time zone in our applications, according to the timezone area.
This
