Home » Posts tagged with "PHP Code"
In this post i want to explain how to calculate the list of dates between two dates using php code. Just we have to give the starting date and ending date and this function will calculate the dates including leap year and monthly days … It will be mainly useful in the calculate the statistics or register users between given dates.
How to calculate...
Hi friends,
This is a simple code to build a captcha code with recaptcha options with simple javascript and PHP code. Now a days SPAM messages are increasing. To stop the SPAM and validating the forms with using this simple captcha code. This post explains how to build a simple captcha using javascript, php with few steps.
PHP Captcha and reCaptcha...
Filed in: JavaScript, PHP Code
In this post i want to explain how to create rss feeds using php code and get the data from mysql table. It is very simple to develop and use.
Step 1 : Connect to database
We already discussed about how to connect database using php code.See the following code to connect database:
Code
12345678910<?php
DEFINE ('DB_USER', 'root');
DEFINE...
In this post explains how to create thumbnail image using php code.
function make_thumb($img_name,$filename,$new_w,$new_h)
{
//get image extension.
$ext=getExtension($img_name);
//creates the new image using the appropriate function from gd library
if(!strcmp(“jpg”,$ext) || !strcmp(“JPG”,$ext) || !strcmp(“jpeg”,$ext)...
Filed in: PHP Code
Hi, In php there is one predefined variable called $_SERVER, with that only we can get the complete information about server. We can get all server information with the below code. And easily access the information for your coding part.
Once check the below script:
1234567891011121314151617181920<?php
echo "<table border = '2' style='color:#ffffff;'>";
$i...
Filed in: PHP Code




