 |
Building web applications with membership management is one of the most frequent tasks that every programmer does. Managing membership data, such as username, password and the member's profile with sessions in PHP is the easiest and simplest solution.
Sessions stores data about a particular...
By pradeep
Last Message By pradeep
|
2 4,214 |
 |
Many times it is required for us to calculate the time remaining and display it in a very understandable format like days,weeks,hours etc.
Here is a function i wrote to do the same.
//FUNCTION FOR TIME LEFT
function time_left($integer)
{
$seconds=$integer;
if...
By pradeep
Last Message By lothar86
|
2 30,701 |
 |
Do a WHOIS query for any domain using the script below.:)
<form method="POST" action= "<?$_SERVER?>">
<label>Do a WHOIS query:</label>
<P>
<INPUT name="domain" SIZE="20" MAXLENGTH="22">
<INPUT TYPE="SUBMIT" VALUE="Check name">
<INPUT TYPE="RESET" VALUE="Clear">
</P>
</FORM>
By pradeep
Last Message By pipeten
|
2 6,563 |
 |
The PDF (or portable document format) file is an amazingly versatile format for transferring what usually starts as a hard copy version of a document over the Internet. Many companies use the PDF format to transfer contracts, manuals, and other documents over the Internet without trying to convert...
By Sanskruti
Last Message By dean8710
|
2 15,180 |
 |
Introduction
RSS is a family of web feed formats used to publish frequently updated content such as blog entries, news headlines or podcasts. An RSS document, which is called a "feed," "web feed," or "channel," contains either a summary of content from an associated web site or the full text....
By pradeep
Last Message By shrikrishnatech
|
2 3,680 |
 |
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...
By pradeep
Last Message By inteblio
|
2 18,810 |
 |
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...
By pradeep
Last Message By qforever
|
2 15,736 |
 |
Cookies have long been used in PHP scripts, and are a very useful function. But what exactly are cookies? Maybe you have used then, but you still don't know exactly what they are. Or you are completely new to cookies? It doesn't matter, because in this tutorial I will show you exactly what cookies...
By Kings
Last Message By shabbir
|
1 7,611 |
 |
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++)
...
By pradeep
Last Message By shabbir
|
1 5,227 |
 |
Show page processing time at the end of the page using PHP
<?php
//Page process time calculation
/*
The microtime() function fetches the current current Unix timestamp with microseconds
another alternative method is to use the microtime() so that it returns a float value...
By pradeep
Last Message By shabbir
|
1 13,108 |
 |
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...
By pradeep
Last Message By shabbir
|
1 3,723 |
 |
Introduction
At some point, most developers have a need to create graphs. I've known some to get frustrated and end up exporting the data to a spreadsheet, rather than relying upon the graphing capabilities of Open Office or Excel. That can be the way to go in certain cases, but not because...
By pradeep
Last Message By ppa108
|
1 11,724 |
 |
Recently, an obscure detail in the way PHP processes strings came to my attention.
This is processed by code that checks for simple lists (like 1. blah 2. blah, or - blah - blah, etc.). However, an innocent call to in_array($x, array('1.', '0.')) had surprising and unexpected results: our...
By pradeep
Last Message By LenoxFinlay
|
1 9,437 |
 |
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...
By pradeep
Last Message By coderzone
|
1 1,533 |
 |
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...
By pein87
Last Message By Scripting
|
1 1,889 |
 |
A Comma-Separated Values(CSV) file stores information in a list with a comma between each item. A CSV file may consists of any number of records. CSV file format is widely supported by scientific applications, and various consumer and business applications. There are a few variations where...
By jasbir712
Last Message By mfred90
|
1 1,745 |
 |
Mysqli extension provides us to access the functionality offered by MySQL 4.1 and above.The i in the function name stands for improved (MySQL Improved). The mysqli extension is built using the PHP extension framework.The MySQLi library is much more optimized and quicker than the previous MYSQL...
By jasbir712
Last Message By RezaAgselya
|
1 1,750 |
 |
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...
By pein87
Last Message By pein87
|
1 1,966 |
 |
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...
By pradeep
Last Message By jeeva1388
|
1 5,076 |
 |
System tools & monitoring programs are often required to monitor a directory or file(s) for changes, not just content changes, it may even be attribute changes like permissions, timestamps etc. Inotify is being used for quite some time in C programming to achieve the same.
Here we will be...
By pradeep
Last Message By marlonmark
|
1 1,527 |