PHP Web Development Tutorials

PHP Web Development Tutorials and Articles
  Title / Author Replies
The use of function is similar to other language functions, take one or more parameters as input, process and provide the corresponding result. The block of code to be used more frequently is added inside the functions. The execution of function is dependent on two points as create the function and...
Strings in PHP are similar to the ones used in other languages. They define a group of characters combined together to form a string. There are several string functions which can be easily used for data manipulation. User does not to perform separate installation. There are various...
The elements in array are stored in an ordered format. The mapping of the elements is in key value pair. User can define the length of the array. There are different types of arrays in PHP. They are as listed below: Numeric array: It defines an array with a numeric index. User can access and...
We shall understand about the following loops in PHP. For loop statement The while loop The do while loop The foreach loop The continue statement The break statement For loop statement
The following conditional statements are used in PHP. if statement if ….else statement if….elseif…else statement switch statement 1. if statement The statement is executed only if the condition is true.
Constants Operators in PHP Constants The name allocated to a value is known as constant. The value is fixed and cannot be modified by the user. It is case sensitive. The name of the constant starts with a letter, following numbers, letters, or underscores. It is case sensitive. The following...
PHP tags Comments in PHP Executing PHP from command prompt Overview of variables Different PHP data types Scope of variables PHP tags The PHP tags are used by the user to divide the PHP code from the page elements. The content inside the tags is used and remaining is ignored by the...
Several protocols like POP3, IMAP and LDAP are supported. Various databases like Oracle, MySQL, PostgreSQL, Informix, Sybase, and SQL server can be easily integrated. Uses of PHP The database modifications like insert, delete and element modification is possible using PHP The system...
CURL is a command line tool for sending and receiving files or other data with URL syntax.CURL supports many protocols for example HTTP, FTP, HTTPS, TELNET, etc. When it comes to PHP/CURL, it is a module that allow us to use libcurl PHP library. Uses We can use PHP/CURL for HTTP form based...
This is a very simple code and hardly requires any explanations. :eek: If you need any put the post here. functions.php <?php function createsessions($username,$password) { //Add additional member to Session array as per requirement session_register();
These days, i'm kinda into hot stuff each day but kinda not having time to document all those. So here I got a little time, let's skip the bla bla. What exactly is real-time updating means? Have you ever seen how php output is shown on the browser? No matter what length code or how many loops...
Recently i had to implement a file split-er in PHP and was shocked find how LESS pre written scripts are available for the task. So thought of writing a quick one myself. If you just want the code, I have a fully featured php script hosted at github Just download it there and well CONTRIBUTE :)...
Got the vacations and so it's coding time. Pretty basic php based download script with a counter before starting the download, you may have seen those kind of script sources all around. But I made some arrangements for this code to make it a bit more than a simple downloading script. Lets start...
PDO or PHP Data Objects is a data abstraction layer, i.e. it provides uniform methods to access different types of databases, as a result switching between or moving to a different database system is relatively easier. So, in simple language the code to access a SQLite db will also work for MySQL...
Most applications like browsers, text editors, etc. come built in with spelling suggestions, they highlight a possible incorrect English word (any language for that matter) and offers a list of suggestions when clicked or selected. Even, search engines provide spelling suggestions. Even you...
Parsing HTML has always been a tough cookie even for seasoned programmers, but nowadays parsing HTML is extensively used for scraping websites, crawling, error detection websites, and many other useful purposes. In this article we'll be looking into parsing HTML using PHP, for this purpose I...
This class is a wrapper for array's that allows you to use oop to create and manage an array Background This class is inspired by Java and C#'s array class. The Code If you'd like to use oop to manage an array this class is meant to provide a data type of sorts for that effort.
Creates a class that acts as a string wrapper similar to Java and C#. Background Php doesn't do types so I created a class to act as a wrapper to provide a faux type for strings The Code The code is designed so that you can create text variables which have there own methods that you...
PHP 4.0.2 onwards libcurl support was added in PHP, libcurl is a free client library initially written by Daniel Stenberg which allows us to communicate with servers using a variety of protocols like HTTP,HTTPS,FTP,SMTP,LDAP, etc. In this article we'll be looking at enabling libcurl support in...
EXIF stands for Exchangeable image file format is standard by which metadata is stored in image & sound file formats, these are sometimes added by digital camera / software / or manually added by a user. These standards metadata tags help people track / store info, for example Flickr shows the...