webdevelopmentbanner

A step by step planning guide for developing websites

Here are a series of step by step guides to help you gather the right resources and information to building…

add comment

What are the different errors in PHP

In PHP, there are three types of runtime errors, they are:Warnings: These are important errors. Example: When we try to…

add comment

What is PEAR

PEAR is a framework and distribution system for reusable PHP components.The project seeks to provide a structured library of code,…

add comment

What are the different types of errors in PHP

Here are three basic types of runtime errors in PHP: 1. Notices: These are trivial, non-critical errors that PHP encounters…

add comment

What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()

Mysql_fetch_array Fetch a result row as an associative array, a numeric array, or both. mysql_fetch_object ( resource result ) Returns…

add comment

Difference between mysql_connect and mysql_pconnect

There is a good page in the php manual on the subject, in short mysql_pconnect() makes a persistent connection to…

add comment

what is the use of rand() in php

It is used to generate random numbers.If called without the arguments it returns a pseudo-random integer between 0 and getrandmax()….

add comment

How to create a text file in php

$filename = “/home/user/guest/newfile.txt”; $file = fopen( $filename, “w” ); if( $file == false ) { echo ( “Error in opening…

add comment

What is the difference between Session and Cookie?

The main difference between sessions and cookies is that sessions are stored on the server, and cookies are stored on…

add comment

require_once(), require(), include().What is difference between them?

require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on…

add comment