<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="0.92">
<channel>
	<title>PHP Resource</title>
	<link>http://php.trivuz.com</link>
	<description>welcome to php world</description>
	<lastBuildDate>Tue, 03 Jun 2008 18:38:48 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Building services like FriendFeed using PHP - Part2</title>
		<description>By Hasin Hayder

Following the first installment in this series, here is the second part. In this part I will focus mainly on Bookmarking and News services supported by FriendFeed . Here we go

Supported bookmarking services by FriendFeed
1. Del.icio.us
2. Furl
3. Google shared stuffs
4. Mag.nolia
5. Stumbleupon

Except google shared stufss, all of the ...</description>
		<link>http://php.trivuz.com/building-services-like-friendfeed-using-php-part2/</link>
			</item>
	<item>
		<title>Building services like FriendFeed using PHP - Part 1</title>
		<description>By Hasin Hayder

Friendfeed is an excellent life streaming service aggregating all your feeds from different service providers, compile them together, build a social network among your known people and finally deliver all these feeds as a mashup. As a result you can immediately track activities of your friends on all ...</description>
		<link>http://php.trivuz.com/building-services-like-friendfeed-using-php-part-1/</link>
			</item>
	<item>
		<title>PHP Unique Hit Counter</title>
		<description> Description

This simple and easy-to-use script logs the number of unique visitors to your web site by logging only one occurence of each IP address. This script is 100% free!
Installation

It's a quick 3-step process.

1.
Upload uniquehits.php and uniquehits.log to your web server.
2.
CHMOD 666 (writable) uniquehits.log (skip this step on Windows servers).
3.
Insert ...</description>
		<link>http://php.trivuz.com/php-unique-hit-counter/</link>
			</item>
	<item>
		<title>Object Oriented PHP Counter</title>
		<description>A more advanced version of our PHP Counter, this script is object oriented and remembers return visitors by setting a cookie. Because it remembers visitors, this counter counts the number of unique visitors that visited your site.

This script is object oriented and written for PHP 5+, which handles object differently ...</description>
		<link>http://php.trivuz.com/object-oriented-php-counter/</link>
			</item>
	<item>
		<title>PHP Login script tutorial</title>
		<description>Overview

In this tutorial create 3 files
1. main_login.php
2. checklogin.php
3. login_success.php

Step
1. Create table "members" in database "test".
2. Create file main_login.php.
3. Create file checklogin.php.
4. Create file login_success.php.
5. Create file logout.php
 </description>
		<link>http://php.trivuz.com/php-login-script-tutorial/</link>
			</item>
	<item>
		<title>server to server file transfar using php script</title>
		<description> Script: Server-to-Server Transfer using PHP
Server  to  Server  Transfer 2  or SST  is a PHP class that can be used to move
a file from a server to another.

The moving process  occurs by using  HTTP protocol (by  GET request), after  the
data is ...</description>
		<link>http://php.trivuz.com/server-to-server-file-transfar-using-php-script/</link>
			</item>
	<item>
		<title>Wordpress Theme GX3 Gray</title>
		<description>

Live Preview

Download Now </description>
		<link>http://php.trivuz.com/wordpress-theme-gx3-gray/</link>
			</item>
	<item>
		<title>How to create a basic rating system</title>
		<description> &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd"&#62;
&#60;html&#62;
&#60;body&#62;
&#60;?php if ( (!isset($_POST['submit'])) ) { ?&#62;
  &#60;form action="&#60;?php echo $_SERVER['PHP_SELF']; ?&#62;" method="post"&#62;
&#60;table&#62;
&#60;tr&#62;
&#60;td&#62;Your rating:&#60;/td&#62;
&#60;td&#62;&#60;select name="rate"&#62;
&#60;option value="1"&#62;1&#60;/option&#62;
&#60;option value="2"&#62;2&#60;/option&#62;
&#60;option value="3"&#62;3&#60;/option&#62;
&#60;option value="4"&#62;4&#60;/option&#62;
&#60;option value="5"&#62;5&#60;/option&#62;
&#60;/select&#62;&#60;/td&#62;
&#60;/tr&#62;
&#60;tr&#62;&#60;td colspan="2" align="center"&#62;
&#60;input type="submit" value="Rate it!" name="submit"/&#62;
&#60;/td&#62;&#60;/tr&#62;
&#60;/table&#62;
&#60;/form&#62;

&#60;?php
} else  {
$rate = isset ($_POST['rate']) ? $_POST['rate'] : 0;
$filename     = "ratings";
$alreadyRated = false;
$totalRates   = 0;
$totalPoints  = 0;

$ip = getenv('REMOTE_ADDR');

// Read the result file
$oldResults = file('results/'.$filename.'.txt');

// Summarize total points and rates
foreach ($oldResults as $value) {
$oneRate = explode(':',$value);
// If our IP is in the list then set the falg
if ($ip == $oneRate[0]) $alreadyRated = true;
$totalRates++;
$totalPoints += $oneRate[1];
}

// If our rating is valid then append it to the result file
if ((!$alreadyRated) &#38;&#38; ($rate &#62; 0)){
$f = fopen('results/'.$filename.".txt","a+");
fwrite($f,$ip.':'.$rate."\n");
fclose($f);
$totalRates++;
$totalPoints+=$rate;
}

echo "Actual rating from $totalRates rates is: "
.substr(($totalPoints/$totalRates),0,3)."&#60;br/&#62;";

// Display the actual rating
for ($i=0;$i&#60;round(($totalPoints/$totalRates),0);$i++){
echo "&#60;img src='style/star.png' /&#62;";
}
} ?&#62;
&#60;/body&#62;
 </description>
		<link>http://php.trivuz.com/how-to-create-a-basic-rating-system/</link>
			</item>
	<item>
		<title>Code Snippet: Date converter</title>
		<description>Snippet: Date converter

Description:
       										This tiny piece of code takes care that you can display a standard date instead of the mysql date (2005-02-23)
Example:
echo date("d m Y", "2005-02-23");

Shows:
23 02 2005

Code:
PHP:
 </description>
		<link>http://php.trivuz.com/code-snippet-date-converter/</link>
			</item>
	<item>
		<title>Snippet: Are sessions working?</title>
		<description>Description:
       										You can use this piece of code to check if it is possible to use sessions for the visitor.

This can come handy for login pages. If you have cookies disabled and try to login, no login session can be used. In such cases ...</description>
		<link>http://php.trivuz.com/snippet-are-sessions-working/</link>
			</item>
</channel>
</rss>
