PHP Web Development Tutorials

PHP Web Development Tutorials and Articles
  Title / Author Replies Reverse Sort Order
Views
Many sites send you a temporary password after u sign up with them. Here is is how you too can do that function TempPassword($tp_len) { $pstring = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWXxYyZz0123456789"; $plen = strlen($pstring); for ($i = 1; $i <= $tp_len; $i++) ...
1
5,598
How to show the no. of users online on your site using PHP & MySQL. Step1: Creating the database Create a new table called 'useronline', with 3 fields inside a table. The fields are timestamp, ip and file. Below is the SQL to create the table. CREATE TABLE useronline ( timestamp...
1
3,915
Ill start by giving the code to the guest book then I will give a step by step on what each part does. <?php if(isset($_POST) && isset($_POST)) { if($_POST != "" && $_POST != "") { $F_D = getdate(); $FT = $F_D."/".$F_D."/".$F_D;
0
34,888
With an ODBC connection, you can connect to any database, on any computer in your network, as long as an ODBC connection is available. Here is how to create an ODBC connection to a MS Access Database: 1.Open the Administrative Tools icon in your Control Panel. 2.Double-click...
0
18,591
I like coding PHP, in Perl we can change an associative array to a list then to a string. In case if we wish to do the same in PHP, we need to write some user functions for that purpose. Here are two functions which will convert Array to String and vice-versa. //array to string ...
0
5,215
This script is a simple file based counter. This is meant for sites that do not run a db and instead, use a file and a cookie. It isn't the best I've seen but it's simple. Consider this as a tutorial. Just create a file called counter.txt and put this where you want to display the...
0
4,693
How to optimize your PHP installation to handle large file uploads. Though PHP presents a very versatile and user friendly interface for handling file uploads, the default installation is not geared for working with files in excess of 2 Mega Bytes. This article will help you...
0
7,469
To display the data by splitting them in pages is very important if you have chances of more records to be displayed. function page_records() { global $page,$pagecount,$perpage; $arr = $_GET; if (is_array($arr)) { foreach($arr AS $_arrykey => $_arryval) {
0
8,218
Well, I always had a problem identifying my MP3 files because of their vague filenames like, "Track 1.mp3" or "Bryan Adams 1.mp3", I was wondering whether I could rename the file depending upon the MP3 tags, so I came with up this script with reads MP3 tags and renames the file according to the...
0
4,461
I never recommend using " (double quotes) when programming with PHP. Always use ' (single quotes) unless you need the features of " (double quotes). You might think it's much easier to write code as: echo "Today is the $day of $month"; However, using single quotes forces variables to be...
0
6,531
There are times when we require to put a calendar in some web appplication of ours,writing the code to generate a calendar from scratch is painstaking and waste of time. So PEAR comes to rescue with its Calendar package. The package gives a ton of features, below you'll find a simple program to...
0
6,820
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,892
Memcached is a high-performance open-source caching solution, generally used to improve web application performance by avoiding round-trips to RDBMS, to know more about memcached read Faster Webapps With Memcached. In this article we'll discuss about installing and using memcached in PHP. A PHP...
0
2,265
Amazon Simple Storage Service (S3) is a low-cost & high-availability storage service provided by Amazon Web Services. It's very efficient and cheap, it allows you to store as much as you want and there is no limit, you pay for what you use and you pay as you go, there is no commitment. You can...
0
2,680
Most of us have know PHP as a language used for web development, but it is also being used for writing backend processing scripts, backup scripts, deferred processing scripts etc. for a long time but still not as much as other scripting languages as Perl, Python, or Ruby. But if you are a PHP...
0
2,130
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,538
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
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...
0
1,967
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 :)...
0
2,541
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