PHP Web Development Tutorials

PHP Web Development Tutorials and Articles
  Title / Author Reverse Sort Order Replies
Views
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...
9
9,351
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...
0
2,542
Creating dynamic XML with PHP When working with XML-based applications, developers often find themselves facing the requirement to generate XML-encoded data structures on the fly. Examples of this include an XML order template based on user input in a Web form, or an XML representation of a...
7
18,501
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,533
Sometimes you just need to know what country your site visitors are coming from - for example, if you're trying to implement geo-targeted advertising. This article will show you how. Sometimes you just need to know what country your site visitors are coming from - for example, if you're trying...
23
61,785
This is a guide, you will not have a stand-alone effect or file by the end of this guide, but you will - hopefully - have an understanding of the Unix timestamp that allows you a powerful form of managing your PHP applications. Note: This guide expects the reader to have an understanding on how...
0
11,744
This Code let you take a image search on Google easily and user-friendly. You can pre-specify image properties: image name or caption, size and dimension rank of image. Code Here: <?php session_start(); $_SESSION=0; ?> <link href="../../client/style.css" rel="stylesheet" type="text/css">
15
16,640
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,465
This script adds some basic math functions to php allowing you to get percentages, ratios and other fraction based functions. Background I created this because I had a need for some math functions that php does not provide. I also made them for my math class to save on time from having to do...
0
2,238
These functions allow you to get the mean, the median, tell if a number is even or odd, strip an array of all strings and characters, and provide probability. The mean function works well if your trying to implement a rate system. just filter the input values of the array and it will work...
1
2,278
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
4,945
Allows you to include dynamically a single file, a list of files or a whole directory. No more tedious include statements. Background This is designed to be similar to Java's package system but instead uses a directory, file/s or */ALL, and include type(INC, IN_O, REQ, REQ_O). The reason is...
0
1,877
This functions solves the problem of always writing the same code to check if a get or post request is set or not. Background I created this because I was tired of the extra code needed just to see if a request variable has the array key set or not. I don't want to use error suppression...
1
2,519
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.
0
1,539
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...
0
1,425
If we intend to make an image gallery, and we would like to show the thumbails of the images, it wouldn't be a wise idea to show the original images with their height & width modified in the <img> tag, that would result in low image quality & higher download time. The solution to this problem would...
9
8,551
If you want to validate a form without submitting it, you can use two methods, one is pure client side JavaScript and the other being a mix of JavaScript and server-side scripting which can be PHP,ASP.JSP,Perl or anything for that matter. First I will give an example of pure JavaScript...
21
235,048
The code snippet below will pick up a random image from the server and sends it to the browser. Try it out. <?php if($_GET){ $folder=$_GET; }else{ $folder='/images/'; } //path to image dir
2
4,606
The in-built array functions allow you to interact with and manipulate arrays in various ways. Arrays are essential for storing, managing, and operating on sets of variables. Simple and multi-dimensional arrays are supported, and may be either user created or created by another function. There...
14
15,347
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...
0
6,894