Spiga



Upload Your PHP folder file to www on Netserver

After done the .php file. Open folder where you extracting netserver. Then, open folder (www) then paste the php file that have you done it.

Go to the web browser type http://localhost/.php

.php = file name of your folder.

After that browser will display your list on folder and your must selected folder you want to view.

Thank you...Hope You Enjoy with this tutorial.i not really good in english but i can do my best in practically.

Netserver Installation on your Computer

Today i will teach you how to using netserver to start doing your programming.

Ok firstly,create any file name to extract netserver file. For example "PHP". Click the netserver setup and choose the directory have you create before to extract netserver file.

After done all extracting process. click the netserver icon to install it.

*Close Skype Application if you using it.

Web/HTTP Server(Apache)
Select Manage server - > Click Apache Web Server - > Click Install -> Select PHP version 4/5-> Install . Complete...

MySQL Server Installation
Select MySQL Database Server. Complete..

After this i will updated this post and upload the netserver and thier video installation how to install netserver on computer.

Determining Last Day of a Given Month

It is often useful to determine what the last day of a given month is. Although a lookup table could tell you what the actual day is (although you would have to still calculate February based on leap years), it is often useful to have an actual time stamp for that day.

Fortunately, through the use of mktime() this is not difficult. This function accepts the following variables in order: hour,minute,second,month,day and year. The powerful part is that mktime() automatically determines zero or negative number for you correctly.

Therefore, whereas entering a month of 3 (March) and a day of 1 returns a stamp for March 1' entering a month of 3 (March) and a day of 1 returns a stamp for February.

Code below demonstrate how to take advantage of mktime() in calculating last-day-of-month time stamps.




//set the default timezone to US/Eastern
date_default_timezone_set('US/Eastern');

//Will return a timestamp of the last day in a month for a specified year
function last_day($month, $year) {

//Use mktime to create a timestamp one month into the future, but one day //less.
//Also make the time for almost midnight, so it can be used as an 'end of //month' boundary
return mktime(23, 59, 59, $month + 1, 0, $year);

}

//Determine the last day for february, 2006
$stamp = last_day(2, 2006);

//Output the result, it will be : 28
echo '

The last day for February in 2006 is: ',date('d', $stamp) , '

';

?>

Time And Date in PHP5

Application that deal with are forever present, especially in web-based application: times of form submittals, user input such as date of birth, and the updating and removal of pages when out of date are just a few examples. Though potentially complicated, the date extensions in PHP are relatively simple and straightforward.

This lesson deals mainly with the core date and time functions. These function provide all basic for time manipulation which is retrieving, formatting, and converting. One other extension, the calendar functions, is devoted to conversion between different calendar systems, such as converting dates between the Gregorian and Jewish calendars. After this you can see the fucntion cal_to_jd() and cal_from_jd() on my Quick code below.

Subject beyond the scope of this chapter is that of schedule or calendar management, such as meeting and event scheduling. An extension is available, called MCAL, which does provide such functionality. for more information, see http://php.net/mcal.

To fully utilize the time functionality of PHP, you must understand how PHP measures time. For PHP, time is measured as the number of seconds since January 1, 1970, theUNIX epoch.
Hence any moment in time is store as a simple integer. Time, when stored this way, is often referred to as a time stamp. As you will see, many functions either return a time stamp or use a time stamp as a parameter. You must be careful however, when reading documentation or code comments. Depending on context, the term time stamp can also be used in its more generic sense: a time at which something occurs. For example, when referring to web server log files, the time at which an event is logged is reffered to as a time stamp.

This i add a Quick hits of function in time and date in PHP

Get the time stamp for the current time:

$timestamp = time();

Taking no parameter, this function returns the time stamp of the current time-that is,when time() is called.



Get the current time stamp to the microsecond resolution:

$result = microtime($format);

retun the UNIX time stamp but resolved to microseconds in accuracy. If $format is false, the default, the time is returned as the string "seconds microseconds" with the seconds portion the same as that returned by time(), and microseconds as a fraction of a second.If $format is true, the time is returned as a floating point number.


Create a time stamp for a specified date and time:

$timestamp =mktime($hour,$minute,$second,$month,$day,$year);

Return a time stamp that corresponds to the specified time and date.


Format the specified time:


$string = date($format,$timestamp);

Return a string representing the given time stamp based on the specified format. If $timestamp is not specified,the current time is used.


Format a date and time, adjusting the result to be Greenwich Mean Time(GMT):

$string = gmdate($format,$timestamp);

This function is equivalent to date(), the time is adjusted to be relative to GMT representation of the given time.


Get various information about a specified time:

$time_array = getdate($timestamp);

returns an array of various values based on the given time stamp. The keys to the are array seconds,minutes,hours,mday,wday,mon,year,yday,weekday
,month.


Get and set the time zone used by the time functions:

$string = date_default_timezone_get();
date_default_timezone_set($string);

This pair of funtions gets or sets the timezone identifier


Parse any English string representation of time and produce a time stamp:

$timestamp = strtotime($english_time);

This function can take nearly any string containing a textual description of a date and time, in English, and produce the corresponding time stamp.


Validate a date against the gregorian calendar:

$isvalid = checkdate($month,$day,$year);

Returns true if the specified date can be found on the Gregorian calendar. Useful to make sure that user input or calculated time is valid.


Find sunrise and sunset times for a given position:

$time_rise = date_sunrise($day_ts, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude);

$time_set = date_sunset($day_ts, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude);

This pair of funtions returns the time of sunrise and sunset at the specified location. The constant, SUNFUNCS_RE_TIMESTAMP, tell the function to return the time as a time stamp.



Convert a date between different calendars and Julian Day Count:

$jday_count = cal_to_jd($calendar,$month,$day,$year);
$date_array = cal_from_jd($jday_count, $calendar);


This pair functions converts a date, in a specified calendar system, to and from a Julian Day Count. These are useful for converting dates from one calendar to another. The supported calendar systems are CAL_GREGORIAN, CAL_JULIAN, CAL_JEWISH and CAL_FRENCH.


I hope you interest about my post on my site. If u like any article,please subscribe now and bookmark for me. Thanks You. We will meet again. email me at Marx Nazrin

Clickbank Security Using PHP

by: Robert Plank

Here's a way to protect the products you sell with Clickbank, using their built-in protection and by implementing a 30-day expiration, all without having to worry about managing databases or customer lists.

THE FIRST STEP

First of all, Clickbank protection is decent as it is. If you want to keep your customers from passing the thank you page URL around to friends, there are a couple of things you can do.

Login to your Clickbank account: http://www.clickbank.com/login.html

At the top there's a link that says "Click HERE to modify your account". Click on the link.

On this page there are two links at the top, but one says "Click HERE to modify your account." Click on this one.

You should be at the page that allows you to edit the prices of all your Clickbank products. Scroll down to the bottom where it says:

Secret key (up to 16 letters & digits)

You should see a text box here. If it's empty, choose a secret key, type it in and remember it. It can be anything you want, but it should be different than your Clickbank password.

"COOKIE CUTTER" TOOLS

If you've looked around the Clickbank site you'd know that Clickbank offers some friendly pieces of code in a few different programming languages like Perl and PHP that can help you protect your downloads. Basically this is what happens:

* Your order link contains what's called a "seed". This is just a word or a piece of text, which can be anything you want.

* Your customer clicks on the order link and pays.

* Clickbank takes that seed, and uses your secret key on it -- basically mashes the two together and does a bunch of crazy stuff to come up with a garbled piece of junk. But this a garbled piece of junk that can ONLY come from this seed and secret key. You change the value of the seed or secret key even a little and this "hash" changes.

* The seed and the hash are passed back to the thank you page where your Clickbank script sits. (We have the secret key added to your script, and it never changes, so it doesn't need to be handed to us by Clickbank.) This Clickbank script takes the seed and the secret key and does the same crazy shit Clickbank did to us to compute your own hash.

Clickbank calls this their "cbpop" or Clickbank Proof of Purchase.

The hash was something we figured out on your own and the hash Clickbank are compared. If they match, we're in business because the customer here really did buy from us.. The customer can't figure this out on his or her own because they never actually saw the secret key. (And no, you can't "reverse" a hash to figure out the original secret key.)

If you get nothing out of what I just told you, remember this: it's almost impossible for anyone to figure out the right Proof of Purchase code without that secret key.

USING SOMEONE ELSE'S CODE

This is the PHP function they give us:

function cbValid($seed, $cbpop, $secret_key) {

// A bunch of stuff in here...

}

This function cbValid takes three parameters: $seed, $cbpop, and $secret_key. The script goes through that last step of ours I explained above, does the crazy shit and then compares the result to the one given to us by Clickbank.

Now we need to figure out what to do if your customer really didn't pay. The easiest thing to do, is just stop the script in its tracks, preventing the page under it from loading.

if (!cbValid($seed, $cbpop, $secret_key)) die();

The exclamation point means "not". We're saying, first try this...

cbValid($seed, $cbpop, $secret_key)

.. pass the seed, proof of purchase, and secret key into your black box. If the function tells us NO, do the rest. In this case, "die". Die stops everything immediately, so if you have HTML or PHP code below that line, it won't be looked at if the Clickbank validation fails.

The "proper" way to grab $seed from the query string is this way:

if (!cbValid($_GET["seed"], $_GET["cbpop"], $secret_key)) die();

You could also redirect the user to an error page of yours if you like:

if (!cbValid($_GET["seed"], $_GET["cbpop"], $secret_key)) {

header("Location:http://www.your.host/error.html");

die();

}

Instead of $seed and $cbpop we use $_GET["seed"] and $_GET["cbpop"]. This is because the variables don't appear magically out of thin air, they really appear in the URL as http://www.your.url/test.php?seed=SOMESEED&cbpop=SOMEPOP. We want these values to be taken out of the URL.

USE MINE

Here's a zip file containing your cb.php script: http://www.jumpx.com/tutorials/clickbank/cb.zip

Save it, unzip it, and open cb.php. Near the top should be a line such as:

$secret_key = "YOUR_SECRET_KEY";

Change YOUR_SECRET_KEY to that secret key you set in the Clickbank control panel.

Now, for usage... your thank you pages will have to end in .php here. Like, thankyou.php (and now it doesn't matter if they have obvious names or not -- because they'll be thoroughly inaccessible to thieves. Remember, you can simply rename your HTML pages so they end in .php and they'll still work just fine.

Put this line at the top of you thank you page script:

Be sure to upload cb.php to the same folder as your thank you page. Now, when someone goes to the thank you page, the first thing the thank you script will do is run everything in cb.php, and cb.php will take the data Clickbank has passed to see if it matches.

You're going to have to change your Clickbank order links a little. This is what they should look like now:

http://www.clickbank.net/sell.cgi?link=YOUR_CLICKBANK_ID/YOUR_PRODUCT_ID/

YOUR_PRODUCT_NAME&seed=YOUR_SEED

Replace YOUR_CLICKBANK_ID with, of course, your Clickbank ID and YOUR_SEED with the seed you want to use. This can be anything, something simple that's short and one word like the product name. But NOT your secret key.

YOUR_PRODUCT_ID is the number Clickbank shows to the left of each thank you page as you add it. When you're testing, be sure to set the price at $0.00. Once everything's in place you can raise the price of the item to $19.95 or $29.95 or whatever it's priced at.

http://www.clickbankguide.com/merchant.htm#account will explain everything if you're a Clickbank newbie.

COULDN'T THE DOWNLOAD URL, HASH, AND RECEIPT BE SHARED?

You can't prevent sharing completely... after all, your customer can always download the file and share the file, not the download URL, to friends. We can do one thing to give these would-be freeloaders a bit of a headache, and that is expiration.

Here we can say, 30 days after someone buys your product, the thank you page will be inaccessible to them. If they buy on October 25th, they can bookmark and revisit that thank you page up until November 25th at the exact time they made their purchase. It's kind of a nice compromise because it gives honest people enough time to get what they need but at the same time it becomes impractical to share the URL.

In chapter 9 of my book, Simple PHP (http://www.simplephp.com), I explained how time works on computers, they use a big number which is just a count of how many seconds have passed since January 1st, 1970. I also explained that there was a function, called strtotime(), which we could use to determine this "number" or timestamp of a certain date. For example, 30 days ago or 1 year ago.

30 days sounds about right. To figure out the Unix timestamp of this moment, minus 30 days is:

strtotime("-30 days")

Now, to store it in a variable called $expire:

$expire = strtotime("-30 days");

But you're saying, how do I know when these people purchased? I don't have that kind of information. Aha! But you can. Remember, the seed you put in your order links can be anything you want. So let's just make it the timestamp of this exact moment.

When the customer revisits the thank you page, they can't change the seed, because as I mentioned, if you change *either* the seed or the secret key, the resulting hash (proof of purchase) will be different. So you see, they're stuck with it. But, the current time always changes!

All we have to do, in cb.php, are these two steps:

* Figure out what the timestamp was exactly 30 days ago, and store this value in $expire.

* Compare the seed and $expire. If the the value of the seed is less than that of $expire, it means that the product was purchased more than 30 days ago and the visitor shouldn't be given access to the page. Die.

We've already taken care of step one by saving the timestamp 30 days prior in $expire. Now, we compare the seed (it's $_GET["seed"], remember, because we're grabbing it out of the URL string) and $expire like:

if ($_GET["seed"] Order Now

Instead of YOUR_SEED we want PHP to call the function mktime(), which gives us the current timestamp, and output it, using echo.

echo mktime();

Now just put around it...

And shove it in there.

">Order Now

Now setup a link for $0.00 in your Clickbank control panel and try it. You can be sure it works by changing that "-30 days" in strtotime to "-5 minutes". Then try accessing the download page, then wait 5 minutes and try again. Neat, isn't it?

You say, I've done this, but I have more than one product. How do I keep someone from grabbing everything once they've grabbed one?

Have your links look like the following: ">Order Now

This way the seeds will look like "stringbeans445433" if you're selling stringbeans. Then again if you're selling corn on the cob on another sales page, you can change "stringbeans" to "cornonthecob". Now the seeds for each product will be different.

Those seeds won't be all numbers, will they? So, in cb.php, do this:

$timestamp = ereg_replace("[^0-9]","",$_GET["seed");

I won't go into a lot of detail about pattern matching, but the [^0-9] means "NOT anything from 0 to 9. It basically goes through every letter and number of $_GET["seed"], and if what's there isn't a 0, 1, 2, etc. it's replaced with nothing (hence the ""). The final result is saved in a variable called $timestamp.

Since now we're looking at $timestamp and not $_GET["seed"], let's change that if-statement:

if ($timestamp

When I extracted the timestamp from the seed, I simply removed all characters that were not numbers, leaving just the numbers contained within that string. Now I want to do the opposite. Here's an example seed:

test1074482258

I take out all the numbers and am left with "test". Next I figure out which script called cb.php (which is stored in the variable $_SERVER["SCRIPT_NAME"]). Then the script takes out everything up to the last slash (/) and everything before the first dot (.). If the script was located at "/clickbank/test.php", all that's left is "test".

If you give each thank you page a different name, and make sure all your seeds reflect the correct page, i.e. if your thank you page is called "carrots", the part of that order link containing the seed should appear as:

&seed=carrots

If you don't care how Clickbank's protection works, that's your derogative. Just get the zip file and follow the instructions I've provided in cb.php.

As far as scripts that handle several Clickbank products -- I can't recommend any at this time, since I've never across any good ones. (But you should check out Harvey Segal's free site, ClickbankGuide.com, which can answer most of your questions about Clickbank.)

Here's that script again in case you missed it: http://www.jumpx.com/tutorials/clickbank/cb.zip

Make sure to read the instructions I've supplied in cb.php, get everything setup and on your web server, and you'll be well on your way to having bulletproof protection on your Clickbank products.

MySQL Database Handling in PHP


by: John L

Most interactive websites nowadays require data to be presented dynamically and interactively based on input from the user. For example, a customer may need to log into a retail website to check his purchasing history. In this instance, the website would have stored two types of data in order for the customer to perform the check – the customer’s personal login details; and the customer’s purchased items. This data can be stored in two types of storage – flat files or databases.

Flat files are only feasible in very low to low volume websites as flat files have 3 inherent weaknesses:

  1. The inability to index the data. This makes it necessary to potentially read ALL the data sequentially. This is a major problem if there are a lot of records in the flat file because the time required to read the flat file is proportionate to the number of records in the flat file.
  2. The inability to efficiently control access by users to the data
  3. The inefficient storage of the data. In most cases, the data would not be encrypted or compressed as this would exacerbate the problem no. 1 above

The alternative which is, in my opinion, the only feasible method, is to store the data in a database. One of the most prevalent databases in use is MySQL. Data that is stored in a database can easily be indexed, managed and stored efficiently. Besides that, most databases also provide a suite of accompanying utilities that allow the database administrator to maintain the database – for example, backup and restore, etc.

Websites scripted using PHP are very well suited for the MySQL database as PHP has a custom and integrated MySQL module that communicates very efficiently with MySQL. PHP can also communicate with MySQL through the standard ODBC as MySQL is ODBC-compliant, However, this will not be as efficient as using the custom MySQL module for PHP.

The rest of this article is a tutorial on how to use PHP to:

  1. Connect to a MySQL database
  2. Execute standard SQL statements against the MySQL database

Starting a Session with MySQL

Before the PHP script can communicate with the database to query, insert or update the database, the PHP script will first need to connect to the MySQL server and specify which database in the MySQL server to operate on.

The mysql_connect() and mysql_select_db() functions are provided for this purpose. In order
to connect to the MySQL server, the server name/address; a username; and a valid password is required. Once a connection is successful, the database needs to be specified.

The following 2 code excerpts illustrate how to perform the server connection and database selection:

@mysql_connect("[servername]", "[username]", "[password]") or die("Cannot connect to DB!");

@mysql_select_db("[databasename]") or die("Cannot select DB!");

The @ operator is used to suppress any error messages that mysql_connect() and mysql_select_db() functions may produce if an error occurred. The die() function is used to end the script execution and display a custom error message.

Executing SQL Statements against a MySQL database

Once the connection and database selection is successfully performed, the PHP script can now proceed to operate on the database using standard SQL statements. The mysql_query() function is used for executing standard SQL statements against the database. In the following example, the PHP script queries a table called tbl_login in the previously selected database to determine if a username/password pair provided by the user is valid.

Assumption:

The tbl_login table has 3 columns named login, password, last_logged_in. The last_logged_in column stores the time that the user last logged into the system.

// The $username and $passwd variable should rightly be set by the login form
// through the POST method. For the purpose of this example, we’re manually coding
it.

$username = “john”;
$passwd = “mypassword”;

// We generate a SELECT SQL statement for execution.
$sql="SELECT * FROM tbl_login WHERE login = '".$username."' AND password =
'".$passwd."'";


// Execute the SQL statement against the currently selected database.
// The results will be stored in the $r variable.
$r = mysql_query($sql);

// After the mysql_query() command executes, the $r variable is examined to
// determine of the mysql_query() was successfully executed.
if(!$r) {
$err=mysql_error();
print $err;
exit();
}

// If everything went well, check if the query returned a result – i.e. if the
username/password

// pair was found in the database. The mysql_affected_rows() function is used for this
purpose.

// mysql_affected_rows() will return the number of rows in the database table that was
affected

// by the last query
if(mysql_affected_rows()==0){
print "Username/password pair is invalid. Please try again.";
}
else {

// If successful, read out the last logged in time into a $last variable for display
to the user

$row=mysql_fetch_array($r);
$last=$row["last_logged_in"];
print “Login successful. You last logged in at ”.$last.”.”;

}

The above example demonstrated how a SELECT SQL statement is executed against the selected database. The same method is used to execute other SQL statements (e.g. UPDATE, INSERT, DELETE, etc.) against the database using the mysql_query() and mysql_affected_rows() functions.

Track Your Visitors, Using PHP

by: Dennis Pallett

There are many different traffic analysis tools, ranging from simple counters to complete traffic analyzers. Although there are some free ones, most of them come with a price tag. Why not do it yourself? With PHP, you can easily create a log file within minutes. In this article I will show you how!

Getting the information

The most important part is getting the information from your visitor. Thankfully, this is extremely easy to do in PHP (or any other scripting language for that matter). PHP has a special global variable called $_SERVER which contains several environment variables, including information about your visitor. To get all the information you want, simply use the following code:

// Getting the information
$ipaddress = $_SERVER['REMOTE_ADDR'];
$page = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}";
$page .= iif(!empty($_SERVER['QUERY_STRING']), "?{$_SERVER['QUERY_STRING']}", "");
$referrer = $_SERVER['HTTP_REFERER'];
$datetime = mktime();
$useragent = $_SERVER['HTTP_USER_AGENT'];
$remotehost = @getHostByAddr($ipaddress);

As you can see the majority of information comes from the $_SERVER variable. The mktime() (http://nl2.php.net/mktime) and getHostByAddr() (http://nl2.php.net/manual/en/function.gethostbyaddr.php) functions are used to get additional information about the visitor.

Note: I used a function in the above example called iif(). You can get this function at http://www.phpit.net/code/iif-function.

Logging the information

Now that you have all the information you need, it must be written to a log file so you can later look at it, and create useful graphs and charts. To do this you need a few simple PHP function, like fopen (http://www.php.net/fopen) and fwrite (http://www.php.net/fwrite).

The below code will first create a complete line out of all the information. Then it will open the log file in "Append" mode, and if it doesn't exist yet, create it.

If no errors have occurred, it will write the new logline to the log file, at the bottom, and finally close the log file again.

// Create log line
$logline = $ipaddress . '|' . $referrer . '|' . $datetime . '|' . $useragent . '|'
. $remotehost . '|' . $page . "\n";

// Write to log file:
$logfile = '/some/path/to/your/logfile.txt';

// Open the log file in "Append" mode
if (!$handle = fopen($logfile, 'a+')) {
die("Failed to open log file");
}

// Write $logline to our logfile.
if (fwrite($handle, $logline) === FALSE) {
die("Failed to write to log file");
}

fclose($handle);

Now you've got a fully function logging module. To start tracking visitors on your website simply include the logging module into your pages with the include() function (http://www.php.net/include):

include ('log.php');

Okay, now I want to view my log file

After a while you'll probably want to view your log file. You can easily do so by simply using a standard text editor (like Notepad on Windows) to open the log file, but this is far from desired, because it's in a hard-to-read format.

Let's use PHP to generate useful overviews for is. The first thing that needs to be done is get the contents from the log file in a variable, like so:

// Open log file
$logfile = "/some/path/to/your/logfile.txt";

if (file_exists($logfile)) {

$handle = fopen($logfile, "r");
$log = fread($handle, filesize($logfile));
fclose($handle);
} else {
die ("The log file doesn't exist!");
}

Now that the log file is in a variable, it's best if each logline is in a separate variable. We can do this using the explode() function (http://www.php.net/explode), like so:

// Seperate each logline
$log = explode("\n", trim($log));
After that it may be useful to get each part of each logline in a separate variable. This can be done by looping through each logline, and using explode again:
// Seperate each part in each logline
for ($i = 0; $i <>

Now the complete log file has been parsed, and we're ready to start generating some interesting stuff.

The first thing that is very easy to do is getting the number of pageviews. Simply use count() (http://www.phpit.net/count) on the $log array, and there you have it;

echo count($log) . " people have visited this website.";
You can also use custom functions to filter out search engines and crawlers. Or create graphs using PHP/SWF Charts (http://www.maani.us/charts/index.php). The possibilities are endless, and you can do all kinds of things!

In Conclusion...

In this article I have shown you have to create a logging module for your own PHP website, using nothing more than PHP and its built-in functions. To view the log file you need to parse it using PHP, and then display it in whatever way you like. It is up to you to create a kick-ass traffic analyzer.

If you still prefer to use a pre-built traffic analyzer, have a look at http://www.hotscripts.com.

AJAX Tutorial 1 - Introduction Video

This is example video that i embedded from youtube.com which is show about AJAX. Enjoy learn AJAX.



PHP Tutorial: Installation and The Basics Video

This Video show how to create and installation to start your php code.




- G - Class Listing Download


DOWNLOAD CODE BY CLICK LINK BELOW


Geo Conversation - Convert coordinates between degrees and decimal download

GCurl - Perform HTTP requests using Curl download

Using GD Color Class - Manage colors allocated for GD images download

Gen Class - Generate MySQL table wrapper classes download

Gen Dummy Class - Generate class skeletons from existing classes download

Generic Array - Create arrays that allow members of just one type download

Geology IP - Determine the country of an IP address using GeoIP download

Gmap Builder - Present world maps on Web pages using Google Maps download

Google Hacks - Search the Internet for certain files using Google download

Google Translator - Translate texts between idioms using Google download

Grab Gmail - Grab the contact lists of a Gmail user download

Graph Colouring - Assign colors to graph points from a vertex list download

Gravatar - Retrieve Gravatar images download

Razon FTP Writer - Send files to an FTP server download

GPS Rinex - Parse GPS navigation messages in the RINEX format download


- F - Class Listing Download


DOWNLOAD CODE BY CLICK LINK BELOW


Feed Finder - Check whether an URL has an RSS or Atom feed Download

Ffmpeg - Manipulate and convert videos with ffmpeg program Download

Fast HTML Form Creator - Generate and validate Web forms Download

Fadpf - Generate PDF documents in the Farsi idiom Download

Find Date - Add to or substract day from date Download

Form Checker - Sanitize and validate user input data Download

FormLib4PHP - Generate and validate Web forms Download

Forum Integrator - Integrate with punBB and phpBB forum user systems Download

Fuse Box Manager - Generate Web applications using Fusebox framework Download


- E - Class Listing Download

DOWNLOAD CODE BY CLICK LINK BELOW


Easy Mail Smtp - Compose and send e-mail messages via SMTP download

Easy Mail - Compose and send HTML messages with attachments download

Easy Template - Template engine based on real HTML tag replacement download

Easy Thumbnail - Generate thumbnail images using the GD extension download

Edit File Tags - Find and replace tags in files with new values download

Email Parser - Parse e-mail messages using regular expressions download

Encode and optimize PHP - Obfuscate and compact PHP source files download

Error - Display exception call stack trace information download

Event - Register handlers and trigger event actions download

Extended Array Object - Create and manipulate arrays as objects download


- D - Class Listing Download


DOWNLOAD A CODE BY CLICK LINK BELOW

Daemon Emulation - Create and manage daemon processes download

Database Connection - Abstract the access to SQL databases download

Database Operation - MySQL database access wrapper download

Data Manipulate - Manipulating data using class download

Data To Graph - Generate bar charts from arrays of data download

Data To XML - Generate XML documents from data in MySQL database download

Date Difference - Calculate the difference between dates download

Date Buddy - Convert dates between ISO, MySQL and US formats download

Date Function - Spell the time relative to period or current time download

Day Iterator - Iterate the over the days of a range of dates download

Database Object - Object oriented database abstraction layer download

DB Connect Class - Simple MySQL database connection class download

Databse Code Assistant - Generate code to access databases as data objects download

DBrowser - Emulate a browser to extract content from sites download

Defensive Attack - Retrieve information of current user HTTP request download

Dev Color - Converts color values between RGB and hexadecimal download

Dictionary Object - Access arrays with the IDictionary interface download

Directory Match - Synchronize the files between two directories download

Distance Time - Calculate the speed, pace for distances ran download

Double Link List - Manage circular double-linked lists of objects download

Drastic Tools - Visualize MySQL data in Grid, Cloud and Map download

Dynamic Page - Replace comments in HTML templates with content download

Dynfetcher - Extract information from Web pages using SimpleXML download


- C - Class Listing Download


DOWNLOAD - CLICK LINK BELOW

Cache Zip Files - Cache zip content in files download

Cal Tag Cloud - Display a tag cloud from an array of tags download

Calendar Form - Display month calendars in Ukrainian download

Calendar Component - Generate calendar for a given month download

Chart Graphing Class - Generate line, bar and pie graphs and charts download

AMDev Captcha - Generate form elements for CAPTCHA validation download

Check Spam - Generate and validate CAPTCHA verification images download

Classfb - Wrapper to access Firebird databases download

Client Socket - Generic network client connection wrapper download

Class Image - Image manipulation with PHP 4 and PHP 5 support download

Class Mail Composite- Compose & send e-mail with attachments download

Code Map - Display the classes used by a PHP script download

coMySQL Class - MySQL database access wrapper download

Configuration Setting - Write and read configuration files like in .NET download

Connection PDO - Wrapper to access SQL databases using the PDO API download

Contact Grabber - Grab contacts of email and social networking sites download

Cookies Object Class - Store & retrieve composite data items in cookies download

Country From IP Adress - Lookup the country of a given IP address download

Cross Authentication - Authenticate users in multiple domains at once download

CSQLite - Wrapper to access SQLite databases under PHP 5 download

CSV managing class - Store and retrieve data from CSV files download

CSV parse and read - Parse and display data from a CSV file download

CSV tokenizer - Parse CSV files tokening data lines download

Currency Exchange - Convert values currencies using a XML feed download

Czechcourse - Get the conversion rates to the Czech currency download

- B - Class Listing Download


CLICK LINK BELOW TO DOWNLOAD


BarcodeGenerating -
Web interface to generate barcode images download

Bar Graphic - Generate bar charts using only HTML tables download

Binary Parser - Serialize and unserialize binary data download

Blogger Integration - Import a blog published in Blogger.com into a site download

BPT session manager - Manage user access sessions download

- A - Class Listing Download


PHP CODE TITLE FOR DOWNLOAD


Access Method -
Map variable accesses to accessor method calls download

Ajax Tree View - Update tree view on demand without page reloading download

All Date Class - Perform many operations with times and dates download

Array XML - Generate XML documents from associative arrays download

Autoload - Autoload classes from given directories download

AutoAjax - using ajax to create auto generate load download

ASession - Alternative management of user access sessions download

Ascii Crypt - Encrypt and decrypt text messages in pure PHP code download

Ascii Art - Render images using text characters download

Array Constant - Declare arrays as constants download

Acronym In PHP5 - Locate and process acronyms within text phrases download

Authenticator - Authenticate users with MS SQL SP_Login procedure download

Auction - For an auction code download

PHPBB2: All It Can Be?

by: Matthew C. Keegan

Please allow me to start off and say that I am very happy to run PHP software on my computer. Specifically, the bulletin boards developed by PHPBB2 [an open source program] works head and shoulders above the EZBoard system I gave up on several months earlier. Still, it has its own special challenges that only a regular user or administrator can appreciate. If you are considering starting your own message board community please read on for some homespun advice on how to make PHPBB2 work best for you.

On Memorial Day 2005 I had a rude awakening. Although a national holiday here in the U.S. I was taking advantage of that day to catch up on some much needed behind the scenes work. You see, when you work for yourself a holiday just isn’t the same thing. It ends up being a day where your phone isn’t likely to ring all that much, thereby making it a better opportunity to catch up on all the little niggling details of operating a business, like paying bills and bookkeeping. Okay, I digress.

What happened on that special day was the total overthrow of the EZBoard message board system. Hackers, so EZBoard claimed, infiltrated their entire system and brought down the house. Literally overnight thousands of boards were affected and compromised. Now for the rub: forum managers, myself included, had no power to back up their sites. Thus, what was lost was likely lost for good or would take many weeks to restore from pasted together backups. We depended on EZBoard for our back ups and when their system failed we all suffered.

So then the decision was made for me. I downloaded PHPBB2 software a few days later and immediately went to work.

As open source programs go the PHPBB2 software was free and the instructions were quite good. Fortunately for me the two sites that I planned to set up, the Aviation Employment Board and the Corporate Flight Attendant Community, already had separate web pages hosted with a company that could support a database. This particular MySQL database would essentially power the site and house important stuff including all the member information.

Fortunately those who have been working on building, maintaining, and promoting PHPBB have a copious amount of detailed information accessible right online and available for viewing and/or downloading. Personally, the biggest help to me were the excellently made Flash videos that helped walk me through the installation process. Without them in place, I doubt I would have figured it all out. Truly, in this case, a picture is worth a thousand words each!

In addition to the software itself, PHPBB2 also offers a separate file to help speed the process conversion process from EZBoard to PHPBB2. This EZBoard converter takes messages from the old board and transfers them to the new board. Unfortunately, it was only partially successful which could have been due to the hacked nature of the EZBoard site. Still, what I was able to move over was helpful, but it did not include member files as that bit of necessary information was under EZBoard’s lock and key.

By the time I downloaded everything, followed all the instructions, converted what I could from EZBoard, laid out the new site, and made some additional design changes, approximately eight hours had flown past. At the end of that time a useful and functioning board was in place. The next day I contacted all my current EZBoard members and told them about the switch and put notices on the old site about the change. Most of my members were very understanding as they realized that the switch had to be made.

Without exception PHPBB2 has been a big improvement. Still, it could use some refining and, happily, many of those refinements are routinely accomplished within regular updates of the software or via preselected “mods” that a forum manager can select.

Without belaboring the point here are some things that I have observed about PHPBB2 that are helpful to know about before going with the software:

Limited Support There is a lot of information right online to read and there are forums moderated by volunteers. At the same time the moderators are stretched very thin and sometimes their responses border on the irritated. Of course, that could have something to do with all the N00B questions, many of which are answered somewhere on the site. My recommendation is that you spend plenty of time reading before posting a question. Study the forum for similar questions asked and answers given.

Difficult Updates Get on the forum managers mailing list to ensure that you receive notification of each update as they are made. Some updates are simple while others are more difficult. If you make any modifications to your site then only a “patch” update is necessary while everyone else will select “changed files only.” If you select “changed files only” and you have some mods installed, you risk losing all of your mods. Let’s just say that already has happened to me once!

AOL Quirks Some members have difficulty signing up, especially AOL account holders. It seems to be that the confirmation code doesn’t always show up when members register [you don’t need to have it enabled, but it does put a halt to rogue registrants] and sometimes AOL users get booted when logged on. A little thing called “sessions” monitors everyone’s visits by examining their I.P. address for a match. Of course, AOL scrambles I.P. addresses mid-session, a reason for much of the booting. The fix involved from a PHPBB2 standpoint is not recommended as it puts you at risk for security breaches. Quite frankly, I have urged some members to leave AOL especially if they can’t work around it on their end.

Back Ups The administration panel is simple to use, but back ups don’t always work. Errors messages prevail; therefore backing up through your web host is another option. Speaking of the administration panel, you can select whether members can email each other [not a good thing to have enabled], how long their signature can be, enable automatic pruning of posts, and lots more. Indeed, the features offered by PHPBB2 far exceed the limitations that are inherent with EZBoard.

There are alternative forums to PHPBB2 and one popular one is another PHP program called vBulletin. vBulletin utilizes excellent forum software that takes off where PHPBB2 leaves off. Many of the modifications that are not part of PHPBB2 are standard with vBulletin, therefore removing some of the behind the scenes tasks that a webmaster must do with PHPBB2 in order to customize his site.

So, why not go with vBulletin? For many it is simply the cost. With vBulletin, you can lease a license for $85 for one year or buy a license for $160. Access to updates after the first year costs another $30 per year while custom support can run from $30 for one month up to $300 for one year. Thus, if you have a small forum that makes little or no money, and you need extra special assistance, than vBulletin can be a big expense to carry. Other paid forums have similar expenses, but there are some free ones out there. For the record, EZBoard isn’t free, although the start up cost is very low. However, your renewal fee is calculated on the amount of bandwidth used in the most recent thirty day period and for some forum managers that amount could easily be several hundreds to well over one thousand dollars!

So then, why go with PHPBB2? Well, language packs to name a big reason. Besides English forums, an additional 59 languages are supported by this open source code! From Afrikaans to Vietnamese, Arabic to Russian, and from French to German, PHPBB2 is available in many native languages. For people of very limited means this has become an excellent way to communicate for no capital outlay. One gets the sense that PHPBB2 is very proud of this fact and I must admit that I am too!

As I write this I am in the midst of updating my two sites to the latest release. Because it is near the Christmas season I am also looking at several themed templates for my flight attendant site and have selected a “Merry Christmas” board replete with drifting down snowflakes. This template, which looks so professionally done, is free as well.

I plan on sticking with PHPBB2, quirks and all, by continuing to support our growing community of forum managers worldwide. Each of us, in our own way, has helped to shape this all important piece of open source software. It certainly isn’t perfect, but it definitely has been a lot of fun and has helped me to increase my knowledge as well as to appreciate the whole open source movement.

Displaying An RSS Feed On Your Website Using PHP And MagpieRSS

by: Mikel Beck

These days everybody wants to have fresh content on their web site. Search engines like to see dynamic web pages, where the content is updated on a regular basis. Static pages that have information that doesn't change are not only boring, but less likely to be visited by a search engine spider than a page that changes every time it is displayed.

By using RSS and the MagpieRSS toolkit, you can import data from another web site or news source and display that information on your own site.

First, download the MagpieRSS kit from http://magpierss.sourceforge.net.

Next, unpack the archive, into a directory off your root on your web site called "rss".

Then, create a directory off your root called "cache". CHMOD this directory to 777.

You'll need to know the URL for the feed that you want to display. You can find this by searching for "RSS feed" in Google, or by going to one of the many sites that allow you to search thrown various sources for feeds. Syndic8.com is one, for example.

To display data from a single source, you can use code similar to this:

require_once('rss/rss_fetch.inc');

$news_feed = '';

error_reporting(E_ERROR);

$rss = fetch_rss("http://www.url-of-the-rss-feed.com");
$items = array_slice($rss->items, 0);
foreach ($items as $item )
{
$news_feed .= '' . $item['title'] . '' . $item['summary'] . '';
}

echo $news_feed;

MagpieRSS not only decodes the data, but it will also cache the data so it will retrieve news articles only once per hour.

Utilizing RSS in this fashion will allow your web site to have fresh content displayed constantly, and will (hopefully!) keep the search engine spiders interested in your site. The more the spiders index your site, the more pages you will have listed in the search engines. And with more pages listed in the search engine indexes you have a much better chance of attracting people to your web site.

Copyright © 2005 by Mikel Beck.

At A Glance: ASP.net vs. PHP

by: Ian Wilson

In the world of web development, the choice of which development language to use commonly comes down to two popular choices. Web applications, specifically those relying on back end databases, are typically being created using either Microsoft's ASP.Net language, or the Open Source alternative language of PHP. Reasons why one might choose one over the other can include: The cost of development tools, or availability of such tools, or even ones comfort level with the Open Source initiative. The goal of this article is to provide some perspective on reasons why one might choose one over the other.

Active Server Pages or ASP has long been an option for creating dynamic web content. Active Server Pages facilitates the ability to use databases such as Access or SQL just to name a few, to create dynamic, feature rich websites. The work going on behind the scenes in serving up the dynamic content is being done at the server level by the Active Server Pages source code. Microsoft has spent a great deal of time and resources promoting their .Net family of programming languages of which ASP.Net is a member. In order to develop with ASP.Net one must obtain the extremely expensive Microsoft Visual Studio Programming Suite. While expensive, Visual Studio is an asset to any programmer due to its vast amount of features. As with all of Microsoft's products, support and updates are constantly made available for ASP.Net. The shear amount of features that Microsoft packs into Visual Studio, coupled with Microsoft's extensive support make certainly make ASP.Net an attractive solution for any corporation's web development needs, but the cost can be prohibitive, if not impossible to afford for the individual web developer.

PHP which is in its 5th revision now, is an Open Source web development language that also facilitates the creation of feature rich, dynamic websites that can use databases. Being Open Source means simply that PHP isn't owned by anyone. Just as with Active Server Pages, the work going on behind the scenes of serving up the dynamic web content is being done by PHP at the server level. As with most Open Source products, the resources available to a PHP developer are free of charge. This makes PHP extremely attractive to the independent web developer. There are some commercial quality development suites available from companies like Zend, but there is also wealth of free resources just a Google Search away. Because there is really no corporate entity behind PHP, support and development on PHP is done by the community of its users and developers themselves. Surprisingly this does not seem to adversely affect the ability to find support for PHP.

All in all, ASP.Net and PHP are both excellent options, offering basically the same functionality. Whether the decision comes down to the cost of initial investment, or the comfort level one has regarding Open Source, or something else entirely, the end result depends upon the mastery of whichever language is chosen.

PHP, Internet Business Marketing, & Good Web Content Go Hand In Hand

by: Tom Worsley

Everyone has heard that content is king when it comes to search engine optimization and just good old plain web site marketing smarts. But how you present that content on your site can also make a world of difference.

PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. PHP-enabled web pages are treated just like regular HTML pages and you can create and edit them the same way you normally create regular HTML pages.

Now here is were it gets interesting. Search engines like Google Yahoo and MSN love fresh new content that is changing on a daily basis. But if you are using a java script snippet the search engines will not be able to read the content. If however you are using a PHP type script the content will automatically be transformed into HTML and the search engines will be able to pick it up and read it.

The first thing you will need to do before you jump onto the PHP bandwagon is to make sure your web host provider has PHP support. Most do but if you are only paying for basic services or using a free host you may have to pay for an upgrade. It’s well worth it trust me.

One of the best PHP based scripts you can add to any web site is the forum or bulletin board. Forums will take on a life of their own after several 100 members have joined and are posting threads on a daily basis. If 100 members seems like a lot think again. I have one work from home internet business forum and after just 2 month I already have over 70 members. Each time someone posts to the forum the HTML changes and the search engines treat it as new content.

Another great PHP script you can add is the link directory. You can actually set up a categorized reciprocal link directory with 20 links on each page and the process is completely automated. I have mine set up so that I have to approve each link first but if you want you could by pass this so that once your script is set up the directory will just start to grow all on its own with no additional work on your part. Again each time someone adds a new link you HTML page is changing. Make sure you add categories that are relative to your main theme. My directory for example has categories for work from home , internet business and business opportunities because that’s what my web site is all about. Also make sure you have added instructions on how they can link back to you. This is the reason why I like to approve all my liks first. No reciprocal link back to my site NO directory listing.

PHP can also be used for blogging. Wordpress is one of the most popular PHP script based blogging tools. I have not used Wordpress but I do use blogger for all my blogging. A weblog (usually shortened to blog, but occasionally spelled web log) is a web-based publication consisting primarily of periodic articles (normally in reverse chronological order). Although most early weblogs were manually updated, tools to automate the maintenance of such sites made them accessible to a much larger population, and the use of some sort of browser-based software is now a typical aspect of "blogging". With a blog or web log you can make daily posts on almost any subject matter creating new content for the search engines to crawl. To date Yahoo seems to be giving a bit of an edge to all my blogs incuding my work form home internet business news site. Ironically most of the post on that blog come from yahoo and or Google news. This is a great way to get free content on a daily basis for your blog. Just go to Google news or yahoo news and type in the keywords you are using for your blog. Each day there will be a new news article that you can legally use on your blog.

There are many more PHP scripts that you can use on your website to automatically create fresh new content with. The ones listed above are the ones I have downloaded for free and installed to my web host. If you are not using PHP now is a good time to get started.

How To Install And Run phpAdsNew

by: Bedrich Omacka

What is phpAdsNew? It is great script written in PHP which can be used to manage different ad campaigns on your website. PhpAdsNew supports banners of any size (including flash banners), pop-ups, text ads and many different types of rich media ads. Using this script you can manage third party ads, e.g. ads from banner exchanges. And the good message is that this script is free.

How to install phpAdsNew?

First, ensure that your web hosting provider offers PHP support (PHP 4.0.4 or higher) and MySQL database (3.23.3 or higher). Then download the zip or tgz package and unzip it to your hard drive. You can use WinZip or Total Commander to do this. Now upload the files to your web host. Change the permissions of the config.inc.php file using "chmod a+w config.inc.php". Create new MySQL database with any name, e.g. phpadsnew (or use existing database). Now you are able to run the installer. Point your browser to http://www.yourdomain.com/phpadsnew (or another folder where you copied the files). Follow the instruction on the screen and finish the installation process.

Another and easier solution how to install this PHP script is to sign up for a quality web hosting service which offers pre-installed PHP scripts. Then easily go to your control panel, find the section with pre-installed scripts and select phpAdsNew. The installer will do all the job for you. All you need to do is to choose the script you want to install.

How to run phpAdsNew?

Go to admin interface and create at least one zone. Zone is the place on your website where the ads will be displayed (e.g. top banner on the home page can be zone 1, bottom banner on the section page zone 2 etc.). Then create a new client. When you're done, create new campaign for this client. You can set up the zone(s), limit of banner / text ads / rich media... impressions, when the campaign will start and finish, the frequency at which the ad will be shown and many other options.

Ok, we have some campaigns now and they are sucessfully running. But every advertiser wants to check the results of his campaign. From this reason phpAdsNew has very detailed stats section. Your advertisers (or you if you use this script to manage your own ads) will be able to see how many times was particular ad viewed by the website visitors and click through rate (how many % of visitors clicked the ads). In addition, you can watch weekly and daily stats. Stats can be exported to *.csv file (data from *.csv files can be opened by software like MS Excel on your computer).

I hope you will find these information helpful when you will start using phpAdsNew. If you will need some advanced functions I suggest to open phpAdsNew/misc/documentation folder where are stored three *.pdf files with very detailed description of this script. The first one, administrator-guide.pdf, will help you with the installation process and configuration. Developer-guide.pdf is for advanced users with PHP knowledge. The most important file is user-guide.pdf which will provide you by all the functions. Btw. this file has 109 pages. Good luck!

Cant Find?Try This.