PHP Web Development Tutorials

PHP Web Development Tutorials and Articles
  Title / Author Replies Reverse Sort Order
Views
Many websites generate temporary password or some generate the Activiation code for verification of email. They send the mail with that code in it and so If you wonder how they do this here is a function to do this. Input : - Length of the Random string you wish to generate Output :- Random...
6
12,120
Some web applications need to display numbers in words, like e-commerce, shopping web applications, so PEAR brings a package named Numbers_Words which converts numbers to words in 2 lines of PHP code. Checkout the example below. <?php require('Numbers/Words.php'); $number =...
6
11,308
Repetitive tasks are always a burden to us. Deleting spam email, sealing 50 envelopes, and going to work are all examples of tasks that are repeated. The nice thing about programming is that you can avoid such repetitive tasks with a little bit of extra thinking. Most often these repetitive tasks...
6
5,875
Let us say you have some images and want to watermark those images with some other gif, jpeg, png images or with some plain text on the fly in PHP. It actually looks tough but it is very simple. Let us take a real time example of profile picture option we have here at Go4Expert.com where if you...
6
5,885
PHP can be used for a lot of different things, and is one of the most powerful scripting languages available on the web. Not to mention it's extremely cheap and widely used. However, one thing that PHP is lacking, and in fact most scripting languages are, is a way to update pages in real-time,...
5
11,821
What are Regular Expressions? A regular expression is a pattern that can match various text strings. Using regular expressions you can find (and replace) certain text patterns, for example "all the words that begin with the letter A" or "find only telephone numbers". Regular expressions are...
5
7,295
Say if you want to generate graph on your website using data from a data base, you might be wondering how to go about it. Well the best way I would do it is use free PHP GD library. Here is a class i wrote to generate a graph in a PNG image for me. class BarGraph { var $barWidth; var...
5
41,824
Introduction PHP comes with an extensive catalog of date and time functions, all designed to let you easily retrieve temporal information, massage it into a format you require, and either use it in a calculation or display it to the user. However, if you'd like to do something more complicated,...
5
18,938
Introduction XOR encryption is a trivially simple symmetric cipher which is used in many applications where security is not a defined requirement.Exclusive-OR encryption, while not a public-key system such as RSA, is almost unbreakable through brute force methods. It is susceptible to...
5
26,488
password.class.php <?php /* * Simple password generator define ('PC_MINUS', 0x01); define ('PC_CAPITAL', 0x02); define ('PC_NUMBERS', 0x04); define ('PC_SPACES', 0x08);
5
5,578
Introduction Actually, this has been taken from my blog(www.sampctricks.blogspot.com) and I re-updated the article for Go4expert. I am myself newbie to programming but still I have included here what I myself practice. This is just a basic guide to prevent basic flaws in your PHP based web apps....
5
5,389
In this article we will create file based simple yet successful captcha generator. 3 Major Anti-spamming techniques used? Mathematical Operation like Random number + Random Number = -> The user must specify the answer Random word -> User must type the word Random question -> Obvious one...
5
12,034
Bubble sort in this form allows someone to order number arrays from lowest number to highest number and vice verse. This article serves the purpose of providing the bubble sort algorithm for use in php. I found a tuts @ active.tutsplus and I used it as a base to create a direct port over to php. ...
5
5,597
All PHP coders are aware of the mail() function in PHP, which can be used to send mails. On Linux systems we ussually have Sendmail program installed, if someone is facing a problem sending mails with mail() function, they can alternatively use Sendmail to send mails. For sending mails using...
4
34,718
Background I've needed the header function in php so many times I figured I'd write a tutorial on it. This tutorial should help you do most of the things that the header function is capable of. Simply put, the php header function will send a http header to the browser. Headers in PHP If...
4
4,395
This is temperature conversion script, used to convert temperature from Celsius, Fahrenheit, Rankine, and Kelvin. The Code Include the script in your php project and call one of the conversion functions with a numeric value as its parameter to get some output. You can convert from Celsius,...
4
3,843
PHP will automatically convert data types as necessary across the board - you need not worry about it happening. If you specifically wish to override PHP's type conversion, you can perform what is called a type cast - you forcibly convert a variable of type A to type B. In PHP, type casting looks...
3
39,266
Introduction The RGB color model is an additive model in which red, green, and blue (often used in additive light models) are combined in various ways to reproduce other colors. The name of the model and the abbreviation ‘RGB’ come from the three primary colors, red, green, and blue and the...
3
24,606
Introduction Roman numerals are a great way to add a bit of class to a web page. They are often used in official titles, such as the XXXIV Pennsic War (34th). The rules for Roman numerals are straightforward and therefore lend themselves to being scripted. The basic rules of Roman numerals...
2
21,689
While working with currency calculations, we often require to round a number to the nearest 10 or the nearest 50, like 407 should be 410. I've written a function which will do exactly that, it requires two parameters the number to the round, and the integer to be rounded to. The function is like...
2
18,282