Antonio Grazioli Web Site
Web Technologies & more...

 

 

Main Menu
Home
News
Web Technologies
SQL Server
Portfolio
Downloads
Contact me
Syndication
Search...

Latest News

Welcome!
 Welcome

Welcome to My Web Site.

Please use the  Menu on the left to navigate the Site. You can find info on Web Technologies, on my Works and some Downloads.

 
Video Sitemap for VShare

I have managed to build a Video Sitemap for Vshare.

This is what I am currently using. I submitted it to Google and he liked it. No problems so far.

Just edit your MySQL Details and your site name in the script, then save it in your site root (use .php as extension, any name will do) and then submit it too Google Video Sitemap

 

<?php
echo "<?xml version='1.0' encoding='iso-8859-1'?>";
echo "<urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9' xmlns:video='http://www.google.com/schemas/sitemap-video/1.0'>";

// hostname on which MySQL is (usally localhost)
$dbhost = "localhost";
// Database name
$dbname = "my_database_name";
// Username
$dbuser = "my_user_name";
// Password
$dbpass = "my_password";

// mysql_connect() fnction
$conn = mysql_connect($dbhost,$dbuser,$dbpass)
or die("Unable to connect to MySQL.");

// mysql_select_db() function
mysql_select_db($dbname,$conn)
or die("Unable to connect to Database $dbname");

$sql = "Select  VID, title, description, adddate, flvdoname, duration from video where approve=1 and active=1";

// execute SQL Command
$res = mysql_query($sql,$conn)
or die( "Error: " . mysql_error() );

// Retrieve Results
while ($info = mysql_fetch_row($res)) {
$SefUrl=strtolower(preg_replace("/[^a-zA-Z0-9]+/","-", $info[1]));

$title=str_replace("&","e", $info[1]);
$title=str_replace("\"","", $title);

$desc=str_replace("&","e", $info[2]);
$desc=str_replace("\"","'", $desc);
$desc=str_replace("<","", $desc);
$desc=str_replace(">","", $desc);

echo "<url>
<loc>http://www.yoursite.com/view/".$info[0]."/".$SefUrl."/</loc>
<video:video>
<video:content_loc>http://www.yoursite.com/flvideo/".$info[4]."</video:content_loc>
<video:player_loc allow_embed='yes'>http://www.yoursite.com/player.swf</video:player_loc>
<video:title>".$title."</video:title>
<video:description>".$desc."</video:description>
<video:thumbnail_loc>http://www.yoursite.com/thumb/".$info[0].".jpg</video:thumbnail_loc>
//change the following line if your site contains adult videos
<video:family_friendly>Yes</video:family_friendly>
<video:duration>".$info[5]."</video:duration>
</video:video></url>";
}  
echo "</urlset>";

// mysql_close() function
mysql_close($conn);
?>

 
Just another SEO Contest - pagerank patatrak

I am taking part in another SEO contest. This one has been organized by Giorgio Taverniti Forum, one of the most visited site for SEO/SEM and Web Related Stuff.
The aim of the contest is to rank first on Google for the couple of keywords pagerank patatrak  (which means near to nothing), but the challenge is NOT to get any pagerank. (In other words, your pagerank bar must be clear and your site must keep a pagerank of zero ).
This is an interesting challenge, because we all need to rank high without gettng too many backlinks (which would raise our pagerank)

 
<< Start < Prev 1 2 3 Next > End >>

Results 1 - 4 of 12