CGI Time Out The specified CGI application exceeded the allowed time for...
Whenever we tried to run some large script like data extraction or trying to get thousand number of records from remote database, most of us will face the following CGI Issue “The specified CGI...
View ArticlePhp Tools
PHP is the commonly used open-source server-side scripting languages among all exist languages today. PHP has in depth credentials, a vast community, plenty of ready-to-use scripts and well-supported...
View ArticlePhp code to find leap year or not
We can find a year is leap year or not in various ways.we can use the following fuctions in php. By using date() function By Modulus operator Here is a sample php code that uses modulus(%)operator for...
View ArticleTo display current date,no.of days and weeks in a month and year using php
1:Create new php file and copy the code and save it as file1.php. 2.Run file1.php, then it will display the current date and no.of days,weeks in a month and year. <?php echo "My name is:...
View ArticleTransfer data from one page to another using php
Steps: 1:Create new php file and copy file1 code and save it as file1.php. 2.Create another new php file and copy file2 code and save it as file2.php. 3.Run file1.php, then it will display the file1...
View ArticleCalculate add,sub,mul using php
Steps: 1. Create new html file and copy calculate.html code and save it as calculate.html. 2. Create new php file and copy calculation.php code and save it as calculation.php. 3. Run calculate.html,...
View ArticleTo upload a file using php
Steps: 1. Create new html file and copy upload.html code and save it as upload.html. 2. Create new php file and copy uploader.php code and save it as uploader.php. 3. Run upload.html, then it will...
View ArticleIF Statement In PHP
<html> <head> <title>IF statements in PHP.</title> </head> <body> <?php $name = "Rose"; if ( $name == "Rose" ) echo "Your name is Rose!<br />"; else echo...
View ArticleExplode function in php
How to split a name using explode function? 1. Get the name in a variable 2. Specify the position from which you need to split the name. 3. If you need to split the name after an underscore, use “_”....
View ArticleCode to get Title and Link in WordPress RSS Feed using PHP
You would often want to display the RSS feed of your blog in your personalized home page or your professional page. This can be achieved, if you have basic knowledge on PHP and HTML. Just copy and...
View ArticleValidation Using Javascript
<html> <head> <script type="text/javascript"> function vali() { if(document.myform.FirstName.value=="") { alert("Please enter the FirstName"); document.myform.FirstName.focus();...
View ArticleHide/Show using JavaScript
To hide the Div : style=”display:none”; To visible the Div : style=”display:block”; <html><head><script type="text/javascript"> function showdiv() {...
View ArticlePHP Sessions
Starting a PHP Session The session_start() function must appear BEFORE the <html> tag: <?php session_start(); ?> <html> <body> </body> </html> The above code is used...
View ArticleSimple Capcha using php
Capcha Code: Save this code as “capcha.php” [php] <?php session_start(); $text = rand(10000,99999); $_SESSION["vercode"] = $text; $height = 25; $width = 65; $image_p = imagecreate($width, $height);...
View ArticlePHP Form Validation
<?php // define variables and set to empty values $nameError = $emailError= $genderError = $websiteError = “”; $name = $email = $gender = $comment = $website = “”; if ($_SERVER["REQUEST_METHOD"] ==...
View ArticlePHP Functions
A PHP function is a block of statements that can be used repeatedly in a program. It is not executed when page is loaded, instead implemented when a function is called. Function Syntax Function...
View Article
More Pages to Explore .....