<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5364993284822684362</id><updated>2011-04-21T11:19:22.653-07:00</updated><category term='Joomla Multi site Component'/><category term='july 7 2007'/><category term='BSE Current Index'/><category term='Joomla'/><category term='07-07-07'/><category term='MySql Database Backup Script'/><category term='Joomla Multi Site Note'/><category term='07-07-07 or 007'/><category term='seventh july 2007'/><category term='Joomla Multi site Development'/><category term='page impression sharing php mysql script'/><category term='Bombay Stock Exchange (BSE) Index'/><category term='PHP Script to backup MySql  Database'/><category term='PHP function to backup MySql Database'/><category term='adsense revenue sharing php mysql script'/><category term='Joomla Multi Domain with one database'/><title type='text'>my blog</title><subtitle type='html'>:) my sweet sweet cute cute blog :)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sanjeev1.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sanjeev1.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>blogmaster</name><uri>http://www.blogger.com/profile/15039947374065931235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5364993284822684362.post-1407670190597461262</id><published>2007-09-07T02:28:00.000-07:00</published><updated>2007-09-07T02:29:43.305-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bombay Stock Exchange (BSE) Index'/><category scheme='http://www.blogger.com/atom/ns#' term='BSE Current Index'/><title type='text'>Bombay Stock Exchange (BSE) Index</title><content type='html'>&lt;script src="http://gmodules.com/ig/ifr?url=http://orawiz.googlepages.com/bseidx.xml&amp;amp;up_bse_css=its&amp;amp;up_bse_refresh=300000&amp;amp;synd=open&amp;amp;w=320&amp;amp;h=200&amp;amp;title=Bombay+Stock+Exchange+(BSE)+Index&amp;amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;amp;output=js"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5364993284822684362-1407670190597461262?l=sanjeev1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjeev1.blogspot.com/feeds/1407670190597461262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sanjeev1.blogspot.com/2007/09/bombay-stock-exchange-bse-index.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/1407670190597461262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/1407670190597461262'/><link rel='alternate' type='text/html' href='http://sanjeev1.blogspot.com/2007/09/bombay-stock-exchange-bse-index.html' title='Bombay Stock Exchange (BSE) Index'/><author><name>blogmaster</name><uri>http://www.blogger.com/profile/15039947374065931235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5364993284822684362.post-4628818440794243737</id><published>2007-09-06T23:04:00.000-07:00</published><updated>2007-09-06T23:23:23.104-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='page impression sharing php mysql script'/><category scheme='http://www.blogger.com/atom/ns#' term='adsense revenue sharing php mysql script'/><category scheme='http://www.blogger.com/atom/ns#' term='Joomla Multi site Development'/><title type='text'>busy with joomla multisite project</title><content type='html'>now days im busy with joomla multi site project at work, customizing all core joomla components, modules n mambots (plugins) to control all sites with a single joomla installation and single control panel.&lt;br /&gt;&lt;br /&gt;In past days we  have workout a page impression sharing php mysql script  to  share page impression with many user types, we developed this script mainly for google adsense but you can use it for any purpose to sharing page impression to user types; also do some hands on Cake PHP exploring it.&lt;br /&gt;&lt;br /&gt;And one sad news since i write here again our cute doggy "Honey" passes away on Saturday 18 August, i will put a pic of her here soon, a really wise doggy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5364993284822684362-4628818440794243737?l=sanjeev1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjeev1.blogspot.com/feeds/4628818440794243737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sanjeev1.blogspot.com/2007/09/busy-with-joomla-multisite-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/4628818440794243737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/4628818440794243737'/><link rel='alternate' type='text/html' href='http://sanjeev1.blogspot.com/2007/09/busy-with-joomla-multisite-project.html' title='busy with joomla multisite project'/><author><name>blogmaster</name><uri>http://www.blogger.com/profile/15039947374065931235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5364993284822684362.post-4016821714575530864</id><published>2007-07-31T23:43:00.000-07:00</published><updated>2007-07-31T23:48:34.504-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Script to backup MySql  Database'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP function to backup MySql Database'/><category scheme='http://www.blogger.com/atom/ns#' term='MySql Database Backup Script'/><title type='text'>PHP function to backup MySql Database</title><content type='html'>Yesterday i try to find a PHP script to backup MySql Database, i search a lot but finds only few, here a good one script i find it, hope this help someone to, here is it...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;?&lt;br /&gt;function mysqlbackup($host,$dbname, $uid, $pwd, $output, $structure_only)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;//this function creates a text file (or output to a HTTP connection), that when parsed through MYSQL's telnet client, will re-create the entire database&lt;br /&gt;&lt;br /&gt;//Parameters:&lt;br /&gt;// $host: usually "localhost" but depends on where the MySQL database engine is mounted&lt;br /&gt;// $dbname : The MySQL database name&lt;br /&gt;// $uid : the database's username (not your account's), leave blank if none is required&lt;br /&gt;// $pwd : the database's password&lt;br /&gt;// $output : this is the complete filespec for the output text file, or if you want the result SQL to be sent back to the browser, leave blank.&lt;br /&gt;// $structure_only : set this to true if you want just the schema of the database (not the actual data) to be output.&lt;br /&gt;&lt;br /&gt;// **************&lt;br /&gt;// IMPORTANT: If you use this function, for personal or commercial use, AND you feel an overwhelming sense of gratitude that someone actually took the time and wrote it,&lt;br /&gt;// immediately go to your paypal account and send me $10 with a small comment of how and how much it helped! Set the payment recipient to woodystanford@yahoo.com .&lt;br /&gt;// **************&lt;br /&gt;&lt;br /&gt;if (strval($output)!="") $fptr=fopen($output,"w"); else $fptr=false;&lt;br /&gt;&lt;br /&gt;//connect to MySQL database&lt;br /&gt;$con=mysql_connect("localhost",$uid, $pwd);&lt;br /&gt;$db=mysql_select_db($dbname,$con);&lt;br /&gt;&lt;br /&gt;//open back-up file ( or no file for browser output)&lt;br /&gt;&lt;br /&gt;//set up database&lt;br /&gt;out($fptr, "create database $dbname;\n\n");&lt;br /&gt;&lt;br /&gt;//enumerate tables&lt;br /&gt;$res=mysql_list_tables($dbname);&lt;br /&gt;$nt=mysql_num_rows($res);&lt;br /&gt;&lt;br /&gt;for ($a=0;$a&lt;$nt;$a++)&lt;br /&gt;{&lt;br /&gt;$row=mysql_fetch_row($res);&lt;br /&gt;$tablename=$row[0];&lt;br /&gt;&lt;br /&gt;//start building the table creation query&lt;br /&gt;$sql="create table $tablename\n(\n";&lt;br /&gt;&lt;br /&gt;$res2=mysql_query("select * from $tablename",$con);&lt;br /&gt;$nf=mysql_num_fields($res2);&lt;br /&gt;$nr=mysql_num_rows($res2);&lt;br /&gt;&lt;br /&gt;$fl="";&lt;br /&gt;&lt;br /&gt;//parse the field info first&lt;br /&gt;for ($b=0;$b&lt;$nf;$b++)&lt;br /&gt;{&lt;br /&gt;$fn=mysql_field_name($res2,$b);&lt;br /&gt;$ft=mysql_fieldtype($res2,$b);&lt;br /&gt;$fs=mysql_field_len($res2,$b);&lt;br /&gt;$ff=mysql_field_flags($res2,$b);&lt;br /&gt;&lt;br /&gt;$sql.=" $fn ";&lt;br /&gt;&lt;br /&gt;$is_numeric=false;&lt;br /&gt;switch(strtolower($ft))&lt;br /&gt;{&lt;br /&gt;case "int":&lt;br /&gt;$sql.="int";&lt;br /&gt;$is_numeric=true;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case "blob":&lt;br /&gt;$sql.="text";&lt;br /&gt;$is_numeric=false;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case "real":&lt;br /&gt;$sql.="real";&lt;br /&gt;$is_numeric=true;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case "string":&lt;br /&gt;$sql.="char($fs)";&lt;br /&gt;$is_numeric=false;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case "unknown":&lt;br /&gt;switch(intval($fs))&lt;br /&gt;{&lt;br /&gt;case 4: //little weakness here...there is no way (thru the PHP/MySQL interface) to tell the difference between a tinyint and a year field type&lt;br /&gt;$sql.="tinyint";&lt;br /&gt;$is_numeric=true;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;default: //we could get a little more optimzation here! (i.e. check for medium ints, etc.)&lt;br /&gt;$sql.="int";&lt;br /&gt;$is_numeric=true;&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case "timestamp":&lt;br /&gt;$sql.="timestamp";&lt;br /&gt;$is_numeric=true;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case "date":&lt;br /&gt;$sql.="date";&lt;br /&gt;$is_numeric=false;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case "datetime":&lt;br /&gt;$sql.="datetime";&lt;br /&gt;$is_numeric=false;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;case "time":&lt;br /&gt;$sql.="time";&lt;br /&gt;$is_numeric=false;&lt;br /&gt;break;&lt;br /&gt;&lt;br /&gt;default: //future support for field types that are not recognized (hopefully this will work without need for future modification)&lt;br /&gt;$sql.=$ft;&lt;br /&gt;$is_numeric=true; //I'm assuming new field types will follow SQL numeric syntax..this is where this support will breakdown&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//VERY, VERY IMPORTANT!!! Don't forget to append the flags onto the end of the field creator&lt;br /&gt;&lt;br /&gt;if (strpos($ff,"unsigned")!=false)&lt;br /&gt;{&lt;br /&gt;//timestamps are a little screwy so we test for them&lt;br /&gt;if ($ft!="timestamp") $sql.=" unsigned";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (strpos($ff,"zerofill")!=false)&lt;br /&gt;{&lt;br /&gt;//timestamps are a little screwy so we test for them&lt;br /&gt;if ($ft!="timestamp") $sql.=" zerofill";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (strpos($ff,"auto_increment")!=false) $sql.=" auto_increment";&lt;br /&gt;if (strpos($ff,"not_null")!=false) $sql.=" not null";&lt;br /&gt;if (strpos($ff,"primary_key")!=false) $sql.=" primary key";&lt;br /&gt;&lt;br /&gt;//End of field flags&lt;br /&gt;&lt;br /&gt;if ($b&lt;$nf-1)&lt;br /&gt;{&lt;br /&gt;$sql.=",\n";&lt;br /&gt;$fl.=$fn.", ";&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;$sql.="\n);\n\n";&lt;br /&gt;$fl.=$fn;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//we need some of the info generated in this loop later in the algorythm...save what we need to arrays&lt;br /&gt;$fna[$b]=$fn;&lt;br /&gt;$ina[$b]=$is_numeric;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;out($fptr,$sql);&lt;br /&gt;&lt;br /&gt;if ($structure_only!=true)&lt;br /&gt;{&lt;br /&gt;//parse out the table's data and generate the SQL INSERT statements in order to replicate the data itself...&lt;br /&gt;for ($c=0;$c&lt;$nr;$c++)&lt;br /&gt;{&lt;br /&gt;$sql="insert into $tablename ($fl) values (";&lt;br /&gt;&lt;br /&gt;$row=mysql_fetch_row($res2);&lt;br /&gt;&lt;br /&gt;for ($d=0;$d&lt;$nf;$d++)&lt;br /&gt;{&lt;br /&gt;$data=strval($row[$d]);&lt;br /&gt;&lt;br /&gt;if ($ina[$d]==true)&lt;br /&gt;$sql.= intval($data);&lt;br /&gt;else&lt;br /&gt;$sql.="\"".mysql_escape_string($data)."\"";&lt;br /&gt;&lt;br /&gt;if ($d&lt;($nf-1)) $sql.=", ";&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$sql.=");\n";&lt;br /&gt;&lt;br /&gt;out($fptr,$sql);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;out($fptr,"\n\n");&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;mysql_free_result($res2);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if ($fptr!=false) fclose($fptr);&lt;br /&gt;return 0;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function out($fptr,$s)&lt;br /&gt;{&lt;br /&gt;if ($fptr==false) echo("$s"); else fputs($fptr,$s);&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;Copy the above function into a file called "mysqlbackup.h" and invoke it with the following script:&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;include("mysqlbackup.h");&lt;br /&gt;mysqlbackup("localhost","yerdatabase","yerusername","yerpassword","/home/sites/site90/web/backup/sqldata.txt", true);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;The database's structure has been saved to "/home/sites/site90/web/backup/sqldata.txt" FTP download it at your convenience.&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5364993284822684362-4016821714575530864?l=sanjeev1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjeev1.blogspot.com/feeds/4016821714575530864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sanjeev1.blogspot.com/2007/07/php-function-to-backup-mysql-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/4016821714575530864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/4016821714575530864'/><link rel='alternate' type='text/html' href='http://sanjeev1.blogspot.com/2007/07/php-function-to-backup-mysql-database.html' title='PHP function to backup MySql Database'/><author><name>blogmaster</name><uri>http://www.blogger.com/profile/15039947374065931235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5364993284822684362.post-2298843027866118224</id><published>2007-07-19T11:15:00.000-07:00</published><updated>2007-07-19T12:01:38.999-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Joomla Multi site Component'/><category scheme='http://www.blogger.com/atom/ns#' term='Joomla'/><category scheme='http://www.blogger.com/atom/ns#' term='Joomla Multi Site Note'/><category scheme='http://www.blogger.com/atom/ns#' term='Joomla Multi Domain with one database'/><title type='text'>Joomla World diping in n out :)</title><content type='html'>its takes me 11 days to write again here, busy now days with some new cool projects, one on Joomla and today is a special day again for me and ashish, my friend, a cool guy, we find our way in Joomla, a way to add multi domain functionality in  Joomla Content Component, Cheers... soon coming back with some cool work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5364993284822684362-2298843027866118224?l=sanjeev1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjeev1.blogspot.com/feeds/2298843027866118224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sanjeev1.blogspot.com/2007/07/joomla-world-diping-in-n-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/2298843027866118224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/2298843027866118224'/><link rel='alternate' type='text/html' href='http://sanjeev1.blogspot.com/2007/07/joomla-world-diping-in-n-out.html' title='Joomla World diping in n out :)'/><author><name>blogmaster</name><uri>http://www.blogger.com/profile/15039947374065931235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5364993284822684362.post-8019853869857653976</id><published>2007-07-07T12:50:00.000-07:00</published><updated>2007-07-07T13:26:28.572-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='07-07-07 or 007'/><category scheme='http://www.blogger.com/atom/ns#' term='07-07-07'/><category scheme='http://www.blogger.com/atom/ns#' term='seventh july 2007'/><category scheme='http://www.blogger.com/atom/ns#' term='july 7 2007'/><title type='text'>07-07-07 or 007</title><content type='html'>today is a special date, i just think to start my blog on this very special day, i will try to manage this blog on regular intervals, lets see and 07-07-07 or 007 just a joke which follow this thought automatically, here we go...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5364993284822684362-8019853869857653976?l=sanjeev1.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanjeev1.blogspot.com/feeds/8019853869857653976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sanjeev1.blogspot.com/2007/07/07-07-07-or-007.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/8019853869857653976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5364993284822684362/posts/default/8019853869857653976'/><link rel='alternate' type='text/html' href='http://sanjeev1.blogspot.com/2007/07/07-07-07-or-007.html' title='07-07-07 or 007'/><author><name>blogmaster</name><uri>http://www.blogger.com/profile/15039947374065931235</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
