<?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-6304924319904337556</id><updated>2012-01-07T21:20:54.773-08:00</updated><category term='MYSQL'/><category term='sandbox'/><category term='checkbox'/><category term='FCKeditor'/><category term='BLOG'/><category term='javascript'/><category term='CURL'/><category term='FUNCTION FOR'/><category term='BMP'/><category term='json encode'/><category term='fopen'/><category term='json decode'/><category term='JPG'/><category term='BLOGGER'/><category term='html table'/><category term='PEAR'/><category term='PHP'/><category term='FEED'/><category term='payment gateway'/><category term='RSS'/><category term='SMTP'/><category term='paypal'/><category term='CONVERT'/><category term='DATE TIME'/><category term='google search'/><category term='spinner'/><category term='SWAP'/><category term='MAIL'/><category term='fwrite'/><category term='ORDER BY'/><title type='text'>Free PHP Script</title><subtitle type='html'>http://vasimpadhiyar.wordpress.com</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>54</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-7628583915888819602</id><published>2010-04-10T01:51:00.000-07:00</published><updated>2010-11-02T23:40:09.743-07:00</updated><title type='text'>regular expression in php examples</title><content type='html'>Contact Us : &lt;br /&gt;&lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;regular expression in php examples&lt;br /&gt;&lt;pre&gt;&lt;b&gt;TO CHECK ALPHA-NUMERIC STRING&lt;/b&gt;&lt;br /&gt;$subject = "hi to all 123";&lt;br /&gt;&lt;br /&gt;if(preg_match('/[^A-Za-z0-9\ ]/i',$subject))&lt;br /&gt;{&lt;br /&gt;echo "error";&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;echo "success";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FIND SPECIFIC LINK FROM WEBPAGE&lt;/b&gt;&lt;br /&gt;$content = @file_get_contents("http://www.somewebpage.com/somepage.html");&lt;br /&gt;$trans = array('/'=&amp;gt;'\/');&lt;br /&gt;$link = strtr("http://www.searchdomain.com",$trans);&lt;br /&gt;$regexp = '/&amp;lt;a\s[^&amp;gt;]*href=\"'.$link.'\"[^&amp;gt;]*&amp;gt;searchdomain&amp;lt;\/a&amp;gt;/siU';&lt;br /&gt;if(@preg_match($regexp, $content))&lt;br /&gt;{&lt;br /&gt;echo "Match"; &lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;echo "Not Match"; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FIND EMAIL FROM FOLLOWING CONTENT&lt;/b&gt;&lt;br /&gt;$content = "Aamir  [aamir@yahoo.com], Alice [alice@yahoo.com]";&lt;br /&gt;&lt;br /&gt;$friends_array = explode(',',$content);&lt;br /&gt;&lt;br /&gt;for($i=0; $i&amp;lt;count($friends_array); $i++)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;preg_match('/[^&amp;gt;]*\[(.*)\]/Ui',$friends_array[$i],$matches);&lt;br /&gt;&lt;br /&gt;print_r($matches);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt; GET ALL LINKS FROM WEBPAGE&lt;/b&gt;&lt;br /&gt;$page = @file_get_contents("http://www.somewebpage.com/somepage.html");&lt;br /&gt;$reg_expr = '/&amp;lt;a\s[^&amp;gt;]*href=(\"??)([^\" &amp;gt;]*?)\\1[^&amp;gt;]*&amp;gt;(.*)&amp;lt;\/a&amp;gt;/siU';&lt;br /&gt;preg_match_all($reg_expr,$page,$matches);&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-7628583915888819602?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/7628583915888819602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2010/04/regular-expression-in-php-examples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7628583915888819602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7628583915888819602'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2010/04/regular-expression-in-php-examples.html' title='regular expression in php examples'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-5225208397525950401</id><published>2010-03-25T00:40:00.000-07:00</published><updated>2010-11-02T23:45:57.259-07:00</updated><title type='text'>how to get row number in mysql select query</title><content type='html'>Contact Us : &lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Example Table : test&lt;br /&gt;&lt;hr&gt;&lt;pre&gt;id  name&lt;br /&gt;====   ======&lt;br /&gt;2 xyz&lt;br /&gt;5       abc&lt;br /&gt;6       pqr&lt;br /&gt;7       uvw&lt;br /&gt;&lt;/pre&gt;&lt;hr&gt;&lt;br /&gt;Query : &lt;b&gt;&lt;br /&gt;SET @i := 0;&lt;br /&gt;SELECT @i := @i + 1 as row_num,id,name FROM test WHERE 1=1 &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;OUTPUT&lt;br /&gt;&lt;pre&gt;row_num  id  name&lt;br /&gt;=======  ====   ======&lt;br /&gt;1        2 xyz&lt;br /&gt;2        5       abc&lt;br /&gt;3        6       pqr&lt;br /&gt;4        7       uvw&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-5225208397525950401?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/5225208397525950401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2010/03/how-to-get-row-number-in-mysql-select.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5225208397525950401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5225208397525950401'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2010/03/how-to-get-row-number-in-mysql-select.html' title='how to get row number in mysql select query'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-8221388711508685561</id><published>2010-02-09T07:56:00.000-08:00</published><updated>2010-11-02T23:47:50.992-07:00</updated><title type='text'>htaccess redirect invalid url to error page</title><content type='html'>Contact Us&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;If you are new to htaccess , Create htaccess file by rename any file with ".htaccess" name.&lt;br /&gt;&lt;br /&gt;Now you can write rules &amp; conditions for invalid urls&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Some common error code:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; 401 - Authorization Required &lt;/li&gt;&lt;li&gt; 400 - Bad request &lt;/li&gt;&lt;li&gt; 403 - Forbidden &lt;/li&gt;&lt;li&gt; 500 - Internal Server Error &lt;/li&gt;&lt;li&gt; 404 - Page Not Found &lt;/li&gt;&lt;/ul&gt;To redirect to error page we can use following :&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Syntax :&lt;/h3&gt;&lt;h4&gt;ErrorDocument ERROR_CODE  /ERROR_REDIRECT_FILE.html &lt;/h4&gt;&lt;h3&gt;Examples :&lt;/h3&gt;&lt;h4&gt;ErrorDocument   404   /error_404.html &lt;/h4&gt;&lt;h4&gt;ErrorDocument   500   /somefolder/error_500.html &lt;/h4&gt;&lt;br /&gt;Some More Examples&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;RewriteRule ^/$ /homepage.html [L]&lt;/li&gt;&lt;li&gt; RewriteCond %{REQUEST_FILENAME} !-f &lt;br /&gt;&lt;br /&gt;RewriteRule ^(.+)errata\.html?$ cgi-bin/errata/errata-html/$1 &lt;br /&gt;&lt;br /&gt;(Rewrites can be conditional, for example, rewrite only if the file could not be found: )&lt;br /&gt;&lt;/li&gt;&lt;li&gt;RewriteRule ^(.*)/(.*)$ index.php?param1=$1&amp;param2=$2 [L]&lt;br /&gt;&lt;br /&gt;(Match if url passed like "http://www.mysite.com/value1/value2/" then redirect to http://www.mysite.com/index.php?param1=value1&amp;param2=value2)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;pre&gt;Note : If you have any query or questions about htaccess programing kindly post your comments &lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-8221388711508685561?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/8221388711508685561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2010/02/htaccess-redirect-invalid-url-to-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/8221388711508685561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/8221388711508685561'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2010/02/htaccess-redirect-invalid-url-to-error.html' title='htaccess redirect invalid url to error page'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-1005322078429014540</id><published>2010-01-27T22:05:00.000-08:00</published><updated>2010-11-02T23:51:16.896-07:00</updated><title type='text'>Display Find Get Yahoo Backlinks in php</title><content type='html'>Contact Us&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$url = "http://www.google.com";&lt;br /&gt;&lt;br /&gt;$page = file_get_contents("http://siteexplorer.search.yahoo.com/search?p=$url&amp;bwm=i&amp;bwmf=a&amp;bwms=p");&lt;br /&gt;&lt;br /&gt;$expression = '/&amp;lt;span class="btn"&amp;gt;Inlinks \((.*)\)&amp;lt;i class="tl"&amp;gt;&amp;lt;\/i&amp;gt;/Us'; &lt;br /&gt;&lt;br /&gt;preg_match($expression, $page, $matches); &lt;br /&gt;&lt;br /&gt;print_r($matches);&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-1005322078429014540?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/1005322078429014540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2010/01/display-find-get-yahoo-backlinks-in-php.html#comment-form' title='50 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1005322078429014540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1005322078429014540'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2010/01/display-find-get-yahoo-backlinks-in-php.html' title='Display Find Get Yahoo Backlinks in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>50</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-8504903491160894049</id><published>2010-01-27T22:03:00.000-08:00</published><updated>2010-11-02T23:52:48.843-07:00</updated><title type='text'>Search whole word from database value in mysql</title><content type='html'>Contact Us&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Following example will retrive all the records from table that have 'music' word in emp_info colomn.&lt;br /&gt;Query will avoid emp_id = 4 bcoz its not has 'music' only. its 'musics' in value.&lt;br /&gt;&lt;br /&gt;There are 3 ways, you can get result from databse.&lt;br /&gt;&lt;br /&gt;Lets assume we have following table :&lt;br /&gt;&lt;br /&gt;table : emp_info&lt;br /&gt;&lt;br /&gt;CREATE TABLE &lt;br /&gt;  emp_info (&lt;br /&gt;  emp_id  INT UNSIGNED NOT NULL PRIMARY KEY,&lt;br /&gt;  emp_name VARCHAR(200),&lt;br /&gt;  emp_info TEXT,&lt;br /&gt;  FULLTEXT (emp_info)&lt;br /&gt;   );&lt;br /&gt;&lt;br /&gt;Insert following rows into table :&lt;br /&gt;&lt;br /&gt;emp_id  emp_name emp_info&lt;br /&gt;=============================================================================&lt;br /&gt;1  Rocky  i love to sing a song &lt;br /&gt;2  Andy  i want to become a singer &lt;br /&gt;3  Jackson  i am music lover&lt;br /&gt;4  Neil  i don't like musics&lt;br /&gt;5  Williem  sometime i enjoy music&lt;br /&gt;6  Helly  i love music all day &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;query1 =&gt; SELECT emp_id FROM emp_info WHERE  emp_info like '% music %'&lt;br /&gt;query2 =&gt; SELECT emp_id FROM emp_info WHERE  MATCH (emp_info) AGAINST('music') &lt;br /&gt;query3 =&gt; SELECT emp_id FROM emp_info WHERE  emp_info REGEXP '[[:&lt;:]]music[[:&gt;:]]' =1 &lt;br /&gt;&lt;br /&gt;Output of all query: &lt;br /&gt;emp_id : &lt;br /&gt;3&lt;br /&gt;5&lt;br /&gt;6&lt;br /&gt;&lt;br /&gt;contact : &lt;a href="mailto:iamvasim@gmail.com"&gt;iamvasim@gmail.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-8504903491160894049?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/8504903491160894049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2010/01/search-whole-word-from-database-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/8504903491160894049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/8504903491160894049'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2010/01/search-whole-word-from-database-value.html' title='Search whole word from database value in mysql'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-4399331378237804145</id><published>2010-01-18T23:58:00.000-08:00</published><updated>2010-11-02T23:53:38.022-07:00</updated><title type='text'>how to use ob_start function in php</title><content type='html'>Contact Us&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Syntax :&lt;/b&gt; &lt;br /&gt;bool ob_start ([ callback $output_callback [, int $chunk_size [, bool $erase ]]] )&lt;br /&gt;&lt;br /&gt;&lt;b&gt;what it does :&lt;/b&gt; &lt;br /&gt;This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example : &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;function callback_function($buffer)&lt;br /&gt;{&lt;br /&gt;// replace all the apples with oranges&lt;br /&gt;return (str_replace("hi", "hello", $buffer));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;ob_start("callback_function");&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;p&gt;Hello World, example : hi to all &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;ob_end_flush();&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Output : &lt;/b&gt;&lt;br /&gt;Hello World, example : hello to all&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-4399331378237804145?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/4399331378237804145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2010/01/how-to-use-obstart-function-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4399331378237804145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4399331378237804145'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2010/01/how-to-use-obstart-function-in-php.html' title='how to use ob_start function in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-6286605503558194288</id><published>2009-11-11T22:46:00.000-08:00</published><updated>2010-11-02T23:55:37.100-07:00</updated><title type='text'>Read Atom Feed From Blogger Entry</title><content type='html'>Contact Us&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;$xml_url = "http://scriptforphp.blogspot.com/feeds/posts/default";&lt;br /&gt;&lt;br /&gt;$ch = curl_init($xml_url);&lt;br /&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;curl_setopt($ch, CURLOPT_HEADER, 0);&lt;br /&gt;$data = curl_exec($ch);&lt;br /&gt;curl_close($ch);&lt;br /&gt;&lt;br /&gt;if(!preg_match("|The blog you were looking for was not found.|Ui",$data))&lt;br /&gt;{&lt;br /&gt;$xml = new SimpleXmlElement($data, LIBXML_NOCDATA);&lt;br /&gt;$xml_detail = parseAtom($xml);&lt;br /&gt;for($j=0; $j&amp;lt;count($xml_detail); $j++)&lt;br /&gt;{&lt;br /&gt;$url   = addslashes($xml_detail[$j][url]);&lt;br /&gt;$title = addslashes($xml_detail[$j][title]);&lt;br /&gt;$desc = addslashes($xml_detail[$j][desc]);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function parseAtom($xml)&lt;br /&gt;{&lt;br /&gt;$cnt = count($xml-&amp;gt;entry);&lt;br /&gt;&lt;br /&gt;$atom = array();&lt;br /&gt;for($i=0; $i&amp;lt;$cnt; $i++)&lt;br /&gt;{&lt;br /&gt;$total_link = count($xml-&amp;gt;entry[$i]-&amp;gt;link);&lt;br /&gt;for($j=0; $j&amp;lt;$total_link; $j++)&lt;br /&gt;{&lt;br /&gt;$urlAtt = $xml-&amp;gt;entry[$i]-&amp;gt;link[$j]-&gt;attributes();&lt;br /&gt;if($urlAtt['rel']=="alternate")&lt;br /&gt;{&lt;br /&gt;$atom[$i]['url'] = $urlAtt['href'];&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$atom[$i]['title'] = $xml-&amp;gt;entry[$i]-&amp;gt;title;&lt;br /&gt;$atom[$i]['desc']  = substr(strip_tags($xml-&amp;gt;entry[$i]-&amp;gt;content),0,130);&lt;br /&gt;}&lt;br /&gt;return $atom;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-6286605503558194288?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/6286605503558194288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/11/read-atom-feed-from-blogger-entry.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6286605503558194288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6286605503558194288'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/11/read-atom-feed-from-blogger-entry.html' title='Read Atom Feed From Blogger Entry'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-2658408396139679252</id><published>2009-08-10T02:54:00.000-07:00</published><updated>2010-11-02T23:56:27.788-07:00</updated><title type='text'>publish post on movable type api blog with xmlrpc</title><content type='html'>Contact Us&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;require_once('IXR_Library.inc.php');  // &lt;a href="http://scripts.incutio.com/xmlrpc/IXR_Library.inc.txt"&gt;Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;$blog_id = "2"; // only blogid no need to set username/password for blog&lt;br /&gt;&lt;br /&gt;$admin_user = "username here"; // Login username =&gt; that you use at http://www.yourdomain.com/cgi-bin/mt.cgi&lt;br /&gt;$admin_pass = "password here"; //  Web Services Password =&gt; will be found at http://www.yourdomain.com/cgi-bin/mt.cgi?__mode=view&amp;_type=author&amp;id=XX&lt;br /&gt;$xmlrpc_host = "http://www.yourdomain.com/cgi-bin/mt-xmlrpc.cgi";  // or http://www.yourdomain.com/cgi-bin/mt/mt-xmlrpc.cgi&lt;br /&gt;&lt;br /&gt;$client = new IXR_Client($blog_url);&lt;br /&gt;&lt;br /&gt;if (!$client-&amp;gt;query('metaWeblog.getCategories',$blog_id, $admin_user,$admin_pass)) {&lt;br /&gt;die('An error occurred - '.$client-&amp;gt;getErrorCode().":".$client-&amp;gt;getErrorMessage());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$content['title'] = "Free PHP Script";&lt;br /&gt;$content['categories'] = array($response[0]['categoryName']);&lt;br /&gt;$content['description'] = '&amp;lt;p&amp;gt; &amp;lt;b&amp;gt; Free PHP Script !!! &amp;lt;/b&amp;gt; &amp;lt;br&amp;gt; Author : Vasim Padhiyar &amp;lt;br&amp;gt; Contact : iamvasim@gmail.com &amp;lt;br&amp;gt; Blog : http://scriptforphp.blogspot.com &amp;lt;/p&amp;gt;';&lt;br /&gt;&lt;br /&gt;if (!$client-&amp;gt;query('metaWeblog.newPost',$blog_id, $admin_user,$admin_pass, $content, true)) {&lt;br /&gt;die('An error occurred - '.$client-&amp;gt;getErrorCode().":".$client-&amp;gt;getErrorMessage());&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;$response = $client-&amp;gt;getResponse();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$post_id = $response['postid'];&lt;br /&gt;$post_url = $response['link'];&lt;br /&gt;$category = $response['categories'][0];&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-2658408396139679252?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/2658408396139679252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/08/publish-post-on-movable-type-api-blog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/2658408396139679252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/2658408396139679252'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/08/publish-post-on-movable-type-api-blog.html' title='publish post on movable type api blog with xmlrpc'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-702497956495101751</id><published>2009-08-04T07:38:00.000-07:00</published><updated>2010-11-02T23:59:38.911-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='json decode'/><category scheme='http://www.blogger.com/atom/ns#' term='json encode'/><category scheme='http://www.blogger.com/atom/ns#' term='google search'/><title type='text'>how to integrate google search api for php</title><content type='html'>Contact Us&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;$url = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=~car~insurance&amp;rsz=large&amp;hl=en&amp;safe=off";&lt;br /&gt;&lt;br /&gt;// sendRequest&lt;br /&gt;// note how referer is set manually&lt;br /&gt;$ch = curl_init();&lt;br /&gt;curl_setopt($ch, CURLOPT_URL, $url);&lt;br /&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;curl_setopt($ch, CURLOPT_REFERER, "http://www.scriptforphp.blogspot.com");&lt;br /&gt;$body = curl_exec($ch);&lt;br /&gt;curl_close($ch);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// download json library file from &lt;a href="http://mike.teczno.com/JSON.tar.gz"&gt;Download Here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;include('JSON/JSON.php');&lt;br /&gt;$object = new Services_JSON();&lt;br /&gt;$json = $object-&gt;decode($body);&lt;br /&gt;&lt;br /&gt;echo '&amp;lt;pre&amp;gt;';&lt;br /&gt;print_r($json);&lt;br /&gt;exit;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-702497956495101751?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/702497956495101751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/08/how-to-integrate-google-search-api-for.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/702497956495101751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/702497956495101751'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/08/how-to-integrate-google-search-api-for.html' title='how to integrate google search api for php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-2095833948941611582</id><published>2009-07-28T23:57:00.000-07:00</published><updated>2010-11-03T00:19:15.444-07:00</updated><title type='text'>How to read article from text file ?</title><content type='html'>Contact Us : &lt;br /&gt;&lt;a href="http://vasimpadhiyar.wordpress.com/2010/11/02/hire-php-web-developer/"&gt;Hire PHP Web Developer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;# problem : How to read article from text file ?&lt;br /&gt;# article txt file will be in following way&lt;br /&gt;# root_directory/test/import/file1.txt , root_directory/test/import/file2.txt&lt;br /&gt;# filename or directory does not matter&lt;br /&gt;# Article format :  1st line = title , rest of will be article body&lt;br /&gt;&lt;br /&gt;$dir = "test/import";&lt;br /&gt;&lt;br /&gt;if ($handle = opendir($dir)) {&lt;br /&gt;while (false !== ($file = readdir($handle))) {&lt;br /&gt;if ($file != "." &amp;&amp; $file != "..") {&lt;br /&gt;$files[] = $file;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;closedir($handle);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;for($i=0; $i&amp;lt;count($files); $i++)&lt;br /&gt;{&lt;br /&gt;$file = $dir."/".$files[$i];&lt;br /&gt;$fp = fopen($file, "r");&lt;br /&gt;$title = fgets($fp);       &lt;br /&gt;$body = fread ($fp, filesize ($file));  &lt;br /&gt;fclose ($fp);&lt;br /&gt;&lt;br /&gt;echo "&amp;lt;h2&gt;".$title."&amp;lt/h2&amp;gt;";&lt;br /&gt;echo "&amp;lt;span&gt;".nl2br($body)."&amp;lt/span&amp;gt;";&lt;br /&gt;echo "&amp;lt;br&amp;gt;";&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-2095833948941611582?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/2095833948941611582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/07/how-to-read-article-from-text-file.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/2095833948941611582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/2095833948941611582'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/07/how-to-read-article-from-text-file.html' title='How to read article from text file ?'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-2039549004130916634</id><published>2009-06-29T04:15:00.000-07:00</published><updated>2009-06-29T04:18:19.664-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DATE TIME'/><title type='text'>convert DATE format to UNIX TIMESTAMP in mysql</title><content type='html'>&lt;pre&gt;&lt;br /&gt;Table : info&lt;br /&gt;============================&lt;br /&gt;id name dob&lt;br /&gt;============================&lt;br /&gt;1 test1 2008-12-03 00:00:00&lt;br /&gt;2 test2 2009-06-01 00:00:00&lt;br /&gt;============================&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;$sql = "SELECT UNIX_TIMESTAMP(dob) AS birthdate FROM info WHERE 1=1";&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;OUTPUT :&lt;br /&gt;-------------&lt;br /&gt;birthdate&lt;br /&gt;========&lt;br /&gt;1228280400&lt;br /&gt;1243828800&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-2039549004130916634?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/2039549004130916634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/convert-date-format-to-unix-timestamp.html#comment-form' title='44 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/2039549004130916634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/2039549004130916634'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/convert-date-format-to-unix-timestamp.html' title='convert DATE format to UNIX TIMESTAMP in mysql'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>44</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-5136451914430009716</id><published>2009-06-29T04:10:00.000-07:00</published><updated>2009-06-29T04:15:34.270-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DATE TIME'/><title type='text'>How to convert UNIX TIMESTAMP to DATE  in mysql</title><content type='html'>&lt;pre&gt;&lt;br /&gt;Table : info&lt;br /&gt;============================&lt;br /&gt;id      name    dob&lt;br /&gt;============================&lt;br /&gt;1 test1 1235994659&lt;br /&gt;2 test2 1235994707&lt;br /&gt;============================&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;$sql = "SELECT DATE(FROM_UNIXTIME(dob)) AS birthdate FROM info WHERE 1=1";&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;OUTPUT :&lt;br /&gt;-------------&lt;br /&gt;birthdate&lt;br /&gt;========&lt;br /&gt;2009-03-02&lt;br /&gt;2009-03-02&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-5136451914430009716?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/5136451914430009716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-convert-unix-timestamp-to-date.html#comment-form' title='33 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5136451914430009716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5136451914430009716'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-convert-unix-timestamp-to-date.html' title='How to convert UNIX TIMESTAMP to DATE  in mysql'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>33</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-5037746874364854175</id><published>2009-06-22T07:25:00.001-07:00</published><updated>2009-06-22T07:28:09.300-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fopen'/><category scheme='http://www.blogger.com/atom/ns#' term='fwrite'/><title type='text'>fopen fwrite in php</title><content type='html'>// Create ip.txt file &lt;br /&gt;// place code below&lt;br /&gt;&lt;br /&gt;$iptxt = $_SERVER['REMOTE_ADDR']&lt;br /&gt;$fname = "ip.txt";&lt;br /&gt;$fhandle = fopen($fname,"r");&lt;br /&gt;$fhandle = fopen($fname,"w");&lt;br /&gt;fwrite($fhandle,$iptxt);&lt;br /&gt;fclose($fhandle);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-5037746874364854175?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/5037746874364854175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/fopen-fwrite-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5037746874364854175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5037746874364854175'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/fopen-fwrite-in-php.html' title='fopen fwrite in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-6384953075804343628</id><published>2009-06-19T00:35:00.000-07:00</published><updated>2009-06-19T00:47:42.173-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='checkbox'/><title type='text'>how to check all checkboxes within a div elemen in javascript</title><content type='html'>JAVASCRIPT&lt;br /&gt;=======================================&lt;br /&gt;&amp;lt;script type="text/javascript"&gt;&lt;br /&gt;function checkByParent(aId, aChecked) {&lt;br /&gt;    var collection = document.getElementById(aId).getElementsByTagName('INPUT');&lt;br /&gt;    for (var x=0; x&lt;collection.length; x++) {&lt;br /&gt;        if (collection[x].type.toUpperCase()=='CHECKBOX')&lt;br /&gt;            collection[x].checked = aChecked;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&gt;&lt;br /&gt;&amp;lt;a href="#" onclick="checkByParent('mydiv', true)"&gt;CHECK&amp;lt;/a&gt;&lt;br /&gt;&amp;lt;div id="mydiv"&gt;&lt;br /&gt;CHECK 1 &amp;lt;input type="checkbox"&gt;&lt;br /&gt;CHECK 2 &amp;lt;input type="checkbox"&gt;&lt;br /&gt;CHECK 3 &amp;lt;input type="checkbox"&gt;&lt;br /&gt;CHECK 4 &amp;lt;input type="checkbox"&gt;&lt;br /&gt;CHECK 5 &amp;lt;input type="checkbox"&gt;&lt;br /&gt;&amp;lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-6384953075804343628?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/6384953075804343628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-check-all-checkboxes-within-div.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6384953075804343628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6384953075804343628'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-check-all-checkboxes-within-div.html' title='how to check all checkboxes within a div elemen in javascript'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-2887340935569416656</id><published>2009-06-16T05:02:00.000-07:00</published><updated>2009-06-16T05:07:46.648-07:00</updated><title type='text'>The reference to entity  must end with the ';' delimiter</title><content type='html'>// For Blogger post if u got above error please try below code&lt;br /&gt;// this will post html content in a publish post&lt;br /&gt;$DB_ARTICLE[article_title]="Any Title";&lt;br /&gt;$DB_ARTICLE[article_text] = &amp;lt;h1&gt;Your content&amp;lt;/h1&gt;"&lt;br /&gt;$entry = "&amp;lt;entry xmlns='http://www.w3.org/2005/Atom'&gt;   &lt;br /&gt;&amp;lt;title type='text'&gt;".$DB_ARTICLE[article_title]."&amp;lt;/title&gt;  &lt;br /&gt; &amp;lt;content type='text/html'&gt;".htmlentities($DB_ARTICLE[article_text])."&amp;lt;/content&gt;  &lt;br /&gt; &amp;lt;/entry&gt;";&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-2887340935569416656?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/2887340935569416656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/reference-to-entity-must-end-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/2887340935569416656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/2887340935569416656'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/reference-to-entity-must-end-with.html' title='The reference to entity  must end with the &apos;;&apos; delimiter'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-6286164836663795897</id><published>2009-06-11T04:37:00.000-07:00</published><updated>2009-06-11T04:40:26.281-07:00</updated><title type='text'>how to create login logout script in php</title><content type='html'>I search through the internet and find below usefull tutorial&lt;br /&gt;check out this is very easy step by step script provided&lt;br /&gt;with graphical view too.&lt;br /&gt;&lt;br /&gt;&lt;strong class="Verdana14"&gt;&lt;a href="http://www.phpeasystep.com/phptu/6.html"&gt;PHP Login script tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-6286164836663795897?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/6286164836663795897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-create-login-logout-script-in.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6286164836663795897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6286164836663795897'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-create-login-logout-script-in.html' title='how to create login logout script in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-6884440041053890901</id><published>2009-06-11T04:22:00.000-07:00</published><updated>2009-06-11T04:26:43.497-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RSS'/><category scheme='http://www.blogger.com/atom/ns#' term='FEED'/><title type='text'>how to create rss feed in php</title><content type='html'>// How to create RSS feed for site in php&lt;br /&gt;// Check your rss is correct or not @  http://validator.w3.org/feed/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$a='&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;';&lt;br /&gt;$a .='&amp;lt;rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"&amp;gt;';&lt;br /&gt;$a.='&amp;lt;channel&amp;gt;';&lt;br /&gt;$a.= '&amp;lt;atom:link href="http://www.anydomain.com?feed=xml" rel="self" type="application/rss+xml" /&amp;gt;';&lt;br /&gt;$a.='&amp;lt;title&amp;gt;Your Site Title&amp;lt;/title&amp;gt;';&lt;br /&gt;$a.='&amp;lt;link&amp;gt;http://www.yourdomain.com&amp;lt;/link&amp;gt;';&lt;br /&gt;$a.='&amp;lt;description&amp;gt;Your site Details here&amp;lt;/description&amp;gt;';&lt;br /&gt;$a.='&amp;lt;language&amp;gt;en-us&amp;lt;/language&amp;gt;';&lt;br /&gt;$a.='&amp;lt;docs&amp;gt;http://blogs.law.harvard.edu/tech/rss/&amp;lt;/docs&amp;gt;';&lt;br /&gt;$a.='&amp;lt;item&amp;gt;';&lt;br /&gt;$a.='&amp;lt;title&amp;gt;Title For Item1&amp;lt;/title&amp;gt;';&lt;br /&gt;$a.='&amp;lt;link&amp;gt;http://www.linktoitem1.com&amp;lt;/link&amp;gt;';&lt;br /&gt;$a.='&amp;lt;guid&amp;gt;http://www.linktoitem1.com&amp;lt;/guid&amp;gt;';&lt;br /&gt;$a.='&amp;lt;description&amp;gt;Item1 Description Here&amp;lt;/description&amp;gt;';&lt;br /&gt;$a.='&amp;lt;pubDate&amp;gt;'.date("D, d M Y H:i:s T",UNIX_TIMESTAMP).'&amp;lt;/pubDate&amp;gt;';&lt;br /&gt;$a.='&amp;lt;/item&amp;gt;';&lt;br /&gt;$a.='&amp;lt;item&amp;gt;';&lt;br /&gt;$a.='&amp;lt;title&amp;gt;Title For Item2&amp;lt;/title&amp;gt;';&lt;br /&gt;$a.='&amp;lt;link&amp;gt;http://www.linktoitem2.com&amp;lt;/link&amp;gt;';&lt;br /&gt;$a.='&amp;lt;guid&amp;gt;http://www.linktoitem2.com&amp;lt;/guid&amp;gt;';&lt;br /&gt;$a.='&amp;lt;description&amp;gt;Item2 Description Here&amp;lt;/description&amp;gt;';&lt;br /&gt;$a.='&amp;lt;pubDate&amp;gt;'.date("D, d M Y H:i:s T",UNIX_TIMESTAMP).'&amp;lt;/pubDate&amp;gt;';&lt;br /&gt;$a.='&amp;lt;/item&amp;gt;';&lt;br /&gt;$a.='&amp;lt;/channel&amp;gt;';&lt;br /&gt;$a.='&amp;lt;/rss&amp;gt;';&lt;br /&gt;&lt;br /&gt;echo trim($a);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-6884440041053890901?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/6884440041053890901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-create-rss-feed-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6884440041053890901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6884440041053890901'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-create-rss-feed-in-php.html' title='how to create rss feed in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-4881164478454281446</id><published>2009-06-11T04:11:00.000-07:00</published><updated>2009-06-11T04:13:05.855-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SWAP'/><title type='text'>How to swap 2 variable values without using 3rd variable in php</title><content type='html'>$a = 10;&lt;br /&gt;$b = 20;&lt;br /&gt;&lt;br /&gt;$a=$a+$b;   &lt;br /&gt;$b=$a-$b;   &lt;br /&gt;$a=$a-$b;       &lt;br /&gt;&lt;br /&gt;echo $a;&lt;br /&gt;echo $b;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-4881164478454281446?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/4881164478454281446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-swap-2-variable-values-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4881164478454281446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4881164478454281446'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-swap-2-variable-values-without.html' title='How to swap 2 variable values without using 3rd variable in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-1869544373124790188</id><published>2009-06-10T03:27:00.000-07:00</published><updated>2009-06-10T03:30:15.543-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ORDER BY'/><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>how to order mysql query via input order in an IN() clause</title><content type='html'>&lt;p&gt;         &lt;span class="syntax"&gt;&lt;span class="syntax_alpha syntax_alpha_reservedWord"&gt;SELECT&lt;/span&gt;  &lt;span class="syntax_punct"&gt;*&lt;/span&gt;&lt;br /&gt;&lt;span class="syntax_alpha syntax_alpha_reservedWord"&gt;FROM&lt;/span&gt;  &lt;span class="syntax_quote syntax_quote_backtick"&gt;`articles`&lt;/span&gt;&lt;br /&gt;&lt;span class="syntax_alpha syntax_alpha_reservedWord"&gt;WHERE&lt;/span&gt; &lt;span class="syntax_alpha syntax_alpha_identifier"&gt;article_id&lt;/span&gt;&lt;br /&gt;&lt;span class="syntax_alpha syntax_alpha_reservedWord"&gt;IN&lt;/span&gt; &lt;span class="syntax_punct syntax_punct_bracket_open_round"&gt;(&lt;/span&gt; &lt;span class="syntax_digit syntax_digit_integer"&gt;31&lt;/span&gt;&lt;span class="syntax_punct syntax_punct_listsep"&gt;,&lt;/span&gt; &lt;span class="syntax_digit syntax_digit_integer"&gt;27&lt;/span&gt;&lt;span class="syntax_punct syntax_punct_listsep"&gt;,&lt;/span&gt; &lt;span class="syntax_digit syntax_digit_integer"&gt;36&lt;/span&gt;&lt;span class="syntax_punct syntax_punct_listsep"&gt;,&lt;/span&gt; &lt;span class="syntax_digit syntax_digit_integer"&gt;23&lt;/span&gt;  &lt;span class="syntax_punct syntax_punct_bracket_close_round"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class="syntax_alpha syntax_alpha_reservedWord"&gt;ORDER&lt;/span&gt;  &lt;span class="syntax_alpha syntax_alpha_reservedWord"&gt;BY&lt;/span&gt; &lt;span class="syntax_alpha syntax_alpha_functionName"&gt;FIND_IN_SET&lt;/span&gt;&lt;span class="syntax_punct syntax_punct_bracket_open_round"&gt;(&lt;/span&gt;  &lt;span class="syntax_quote syntax_quote_single"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="syntax"&gt;&lt;span class="syntax_alpha syntax_alpha_identifier"&gt;article_id,&lt;/span&gt;&lt;/span&gt;&lt;span class="syntax"&gt;&lt;span class="syntax_quote syntax_quote_single"&gt;'31,27,36,23'&lt;/span&gt;  &lt;span class="syntax_punct syntax_punct_bracket_close_round"&gt;)&lt;/span&gt; &lt;span class="syntax_white syntax_white_newline"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="syntax_alpha syntax_alpha_reservedWord"&gt;LIMIT&lt;/span&gt; &lt;span class="syntax_digit syntax_digit_integer"&gt;0&lt;/span&gt; &lt;span class="syntax_punct syntax_punct_listsep"&gt;,&lt;/span&gt; &lt;span class="syntax_digit syntax_digit_integer"&gt;30&lt;/span&gt;&lt;/span&gt;     &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-1869544373124790188?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/1869544373124790188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-order-mysql-query-via-input.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1869544373124790188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1869544373124790188'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-order-mysql-query-via-input.html' title='how to order mysql query via input order in an IN() clause'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-3855114884739496475</id><published>2009-06-08T03:12:00.000-07:00</published><updated>2009-06-08T03:26:49.708-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='payment gateway'/><category scheme='http://www.blogger.com/atom/ns#' term='sandbox'/><category scheme='http://www.blogger.com/atom/ns#' term='paypal'/><title type='text'>Free sandbox paypal script in php</title><content type='html'>// First create 3 files in root of site called&lt;br /&gt;// paypal_return.php,cancel_return.php,notify_return.php&lt;br /&gt;// Replace business@domain.com with your test business account email id&lt;br /&gt;&lt;br /&gt;&amp;lt;form action="https://www.sandbox.paypal.com/cgi-bin/webscr" name="frm" id="frm" method="post"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="cmd" value="_xclick"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="upload" value="1"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="business" value="business@domain.com"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="item_name" value="Deposite Balance"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="amount" value="100"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="currency_code" value="USD"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="charset" value="utf-8"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="rm" value="2" &amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="return" id="return" value="http://yoursite/paypal_return.php" /&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="cancel_return" value="http://yoursite/cancel_return.php"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="notify_url" value="http://yoursite/notify_return.php"&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="first_name" value="Vasim" /&amp;gt;&lt;br /&gt;&amp;lt;input type="hidden" name="last_name" value="Padhiyar" /&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" value="Paypal" name="btn"  /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;// After Payment Complete , Paypal will return you Token in request&lt;br /&gt;// on paypal_return.php&lt;br /&gt;//Check This Token Transation Record on paypal server as below&lt;br /&gt;&lt;br /&gt;$order_status = check_paypal($_REQUEST['tx']);&lt;br /&gt;&lt;br /&gt;if($order_status=='SUCCESS')&lt;br /&gt;{&lt;br /&gt;    // Update Database and return to main page&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;   // Error msg&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// Replace $auth_token with your appropriate token&lt;br /&gt;function check_paypal($paypal_tx)&lt;br /&gt;{&lt;br /&gt;        $status = "FAIL";&lt;br /&gt;       &lt;br /&gt;        $req = 'cmd=_notify-synch';&lt;br /&gt;       &lt;br /&gt;        $tx_token = $paypal_tx;&lt;br /&gt;       &lt;br /&gt;        $auth_token = "03suYLK9KVmKHZMETOKW4Ad0g2uDM7R2mS0-IUd4B2tFr6E0SlDZRUVSX-G";&lt;br /&gt;       &lt;br /&gt;        $req .= "&amp;amp;tx=$tx_token&amp;amp;at=$auth_token";&lt;br /&gt;       &lt;br /&gt;        $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";&lt;br /&gt;        $header .= "Content-Type: application/x-www-form-urlencoded\r\n";&lt;br /&gt;        $header .= "Content-Length: " . strlen($req) . "\r\n\r\n";&lt;br /&gt;        $fp = fsockopen ('www.sandbox.paypal.com', 80, $errno, $errstr, 30);&lt;br /&gt;       &lt;br /&gt;        if (!$fp)&lt;br /&gt;        {&lt;br /&gt;            $status = "FAIL";&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            fputs ($fp, $header . $req);&lt;br /&gt;           &lt;br /&gt;            $res = '';&lt;br /&gt;            $headerdone = false;&lt;br /&gt;            while (!feof($fp))&lt;br /&gt;            {&lt;br /&gt;                $line = fgets ($fp, 1024);&lt;br /&gt;               &lt;br /&gt;                if (strcmp($line, "\r\n") == 0)&lt;br /&gt;                {&lt;br /&gt;                    $headerdone = true;&lt;br /&gt;                }&lt;br /&gt;                else if ($headerdone)&lt;br /&gt;                {&lt;br /&gt;                    $res .= $line;&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            $lines = explode("\n", $res);&lt;br /&gt;           &lt;br /&gt;            $keyarray = array();&lt;br /&gt;           &lt;br /&gt;            if (strcmp ($lines[0], "SUCCESS") == 0)&lt;br /&gt;            {&lt;br /&gt;                $status = "SUCCESS";&lt;br /&gt;            }&lt;br /&gt;            else if (strcmp ($lines[0], "FAIL") == 0)&lt;br /&gt;            {&lt;br /&gt;                $status = "FAIL";&lt;br /&gt;               &lt;br /&gt;            }&lt;br /&gt;           &lt;br /&gt;        }&lt;br /&gt;       &lt;br /&gt;        fclose ($fp);&lt;br /&gt;       &lt;br /&gt;        return $status;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-3855114884739496475?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/3855114884739496475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/free-sandbox-paypal-script-in-php.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3855114884739496475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3855114884739496475'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/free-sandbox-paypal-script-in-php.html' title='Free sandbox paypal script in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-4558937829328661073</id><published>2009-06-08T02:22:00.000-07:00</published><updated>2009-06-08T03:00:08.834-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PEAR'/><category scheme='http://www.blogger.com/atom/ns#' term='SMTP'/><category scheme='http://www.blogger.com/atom/ns#' term='MAIL'/><title type='text'>How to setup a SMTP authentication in php</title><content type='html'>&lt;h3&gt;Send email using PHP SMTP mail Pear functions&lt;/h3&gt;//How to set SMTP authentication in php&lt;br /&gt;// Mail.php is located in &lt;strong&gt;/usr/share/pear/&lt;/strong&gt; directory.&lt;br /&gt;// you can install it from &lt;a style="font-weight: bold;" href="http://pear.php.net/package/Mail" rel="nofollow"&gt;http://pear.php.net/package/Mail&lt;/a&gt;&lt;h3&gt;&lt;span style="font-size:85%;"&gt;Sample source code&lt;/span&gt;&lt;/h3&gt;echo send_mail($to,$subject,$body);  // return true/false&lt;br /&gt;&lt;br /&gt;function send_mail($to,$subject,$body)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;   require_once "Mail.php";&lt;br /&gt; &lt;br /&gt;   $from = "admin@domain.com";&lt;br /&gt;   $host = "mail.domain.com";&lt;br /&gt;   $port = "25";&lt;br /&gt;   $username = "usernam";&lt;br /&gt;   $password = "password";&lt;br /&gt; &lt;br /&gt;   $headers = array ('From' =&gt; $from,&lt;br /&gt;                     'To' =&gt; $to,&lt;br /&gt;                     'Reply-To' =&gt; $from,&lt;br /&gt;                     'Return-Path' =&gt; $from,&lt;br /&gt;                     'Message-ID' =&gt; time()."-".$from,&lt;br /&gt;                     'Subject' =&gt; $subject,&lt;br /&gt;                     'MIME-Version' =&gt; '1.0',&lt;br /&gt;                     'Content-type' =&gt; 'text/html',&lt;br /&gt;                     'X-Mailer' =&gt; 'PHP v'.phpversion(),&lt;br /&gt;                     'Date' =&gt; date("r"));&lt;br /&gt;   &lt;br /&gt;   $smtp = Mail::factory('smtp',&lt;br /&gt;     array ('host' =&gt; $host,&lt;br /&gt;            'auth' =&gt; true,&lt;br /&gt;            'username' =&gt; $username,&lt;br /&gt;            'password' =&gt; $password));&lt;br /&gt; &lt;br /&gt;   $mail = $smtp-&gt;send($to, $headers, $body);&lt;br /&gt; &lt;br /&gt;   if (PEAR::isError($mail))&lt;br /&gt;   {&lt;br /&gt;     $output = false;&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;     $output = true;      &lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   return $output;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-4558937829328661073?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/4558937829328661073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-setup-smtp-authentication-in-php.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4558937829328661073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4558937829328661073'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-setup-smtp-authentication-in-php.html' title='How to setup a SMTP authentication in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-788419300990608872</id><published>2009-06-05T23:43:00.000-07:00</published><updated>2009-06-05T23:45:07.883-07:00</updated><title type='text'>how to use if condition with ? and : in php script</title><content type='html'>// This example also checks the url is with http:// or not&lt;br /&gt;&lt;br /&gt;$flag_url = checkURL_ForHTTP($_POST['siteurl']);&lt;br /&gt;&lt;br /&gt;$siteurl = ($flag_url==true) ? $_POST['siteurl'] : "http://".$_POST['siteurl'];&lt;br /&gt;&lt;br /&gt;function checkURL_ForHTTP($raw_url)&lt;br /&gt;{&lt;br /&gt;        if(substr($raw_url,0,7)!="http://")&lt;br /&gt;        {&lt;br /&gt;                return false;&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;                return true;&lt;br /&gt;        }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-788419300990608872?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/788419300990608872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-use-if-condition-with-and-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/788419300990608872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/788419300990608872'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-use-if-condition-with-and-in-php.html' title='how to use if condition with ? and : in php script'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-6306552519887786052</id><published>2009-06-05T05:57:00.000-07:00</published><updated>2009-06-05T06:04:57.918-07:00</updated><title type='text'>How to convert From Number to Euro in php</title><content type='html'>function NumberToEuro($num)&lt;br /&gt;{&lt;br /&gt;    $count=0;&lt;br /&gt;    $start = -3;&lt;br /&gt;    $rem=strlen($num)%3;&lt;br /&gt;    $rem=strlen($num)-$rem;&lt;br /&gt;    for($i=0; $i&lt;=strlen($num); $i=$i+3)&lt;br /&gt;    {           &lt;br /&gt;        if($i==$rem)&lt;br /&gt;        { $len=strlen($num)%3; } else { $len = 3; }&lt;br /&gt;        $array[$count] = $array[$count].substr($num,$start,$len).".";&lt;br /&gt;        $count++;&lt;br /&gt;         $start=$start - 3;&lt;br /&gt;    }&lt;br /&gt;    for($i=count($array)-1; $i&gt;=0; $i--)&lt;br /&gt;    {&lt;br /&gt;       $str = $str . $array[$i];   &lt;br /&gt;    }   &lt;br /&gt;    return $str;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-6306552519887786052?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/6306552519887786052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-convert-from-number-to-euro-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6306552519887786052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6306552519887786052'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-convert-from-number-to-euro-in.html' title='How to convert From Number to Euro in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-3675210907971164768</id><published>2009-06-05T05:42:00.001-07:00</published><updated>2009-06-05T05:42:44.196-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FCKeditor'/><title type='text'>How to put FCKeditor in php</title><content type='html'>Just Follow the steps below&lt;br /&gt;&lt;br /&gt;1. Download FCKeditor_2.6.3.zip and compress it.&lt;br /&gt;2. You will get FCKeditor_2.6.3 folder, rename it to FCKeditor and put in root of your site.&lt;br /&gt;3. include file by using : include("FCKeditor/fckeditor.php") ;&lt;br /&gt;4. specify path of FCKeditor folder : $editor_path = "FCKeditor/";&lt;br /&gt;5. To Display editor put following codes&lt;br /&gt;    $oFCKeditor = new FCKeditor('description') ;&lt;br /&gt;    $oFCKeditor-&gt;BasePath    = 'FCKeditor/' ;&lt;br /&gt;    $oFCKeditor-&gt;Width    = 550 ;&lt;br /&gt;    $oFCKeditor-&gt;Height    = 280 ;&lt;br /&gt;    $oFCKeditor-&gt;Value = $description;&lt;br /&gt;    $oFCKeditor-&gt;Create() ;&lt;br /&gt;6. Now you can get the value of FCKeditor as POST/GET as  $_REQUEST['description']&lt;br /&gt;7. finish.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-3675210907971164768?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/3675210907971164768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-put-fckeditor-in-php.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3675210907971164768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3675210907971164768'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-put-fckeditor-in-php.html' title='How to put FCKeditor in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-682026668736001599</id><published>2009-06-05T02:50:00.000-07:00</published><updated>2009-06-05T02:53:28.243-07:00</updated><title type='text'>how to format text of textarea in paragraph</title><content type='html'>// use nl2br() function&lt;br /&gt;&lt;br /&gt;// example&lt;br /&gt;//&lt;span class="l"&gt;&lt;em&gt;How to format&lt;/em&gt; the &lt;em&gt;text&lt;/em&gt; inside of &lt;em&gt;textarea&lt;/em&gt; box&lt;/span&gt;&lt;br /&gt;$string = "This is Demo.&lt;br /&gt;This is new line.&lt;br /&gt;This is another line. ";&lt;br /&gt;&lt;br /&gt;echo nl2br($string);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-682026668736001599?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/682026668736001599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-format-text-of-textarea-in.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/682026668736001599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/682026668736001599'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-format-text-of-textarea-in.html' title='how to format text of textarea in paragraph'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-734292601182759433</id><published>2009-06-05T00:07:00.000-07:00</published><updated>2009-06-05T00:17:45.410-07:00</updated><title type='text'>how to use captcha</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold; font-family: lucida grande;"&gt;CAPTCHA&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: lucida grande;"&gt;stands for "Completely Automated Public Turing test to tell Computers and Humans Apart".&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: lucida grande;"&gt;Requirments&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: lucida grande;"&gt;The library requires PHP 4 compiled with GD 1 or 2 (Image Generation) and FreeType text support. It should work fine with Linux, Mac OS X or Windows based systems although you will need to change the default temporary file storage directory specified when using with Windows. PHP session support is also required. The audio CAPTCHA requires the  Flite text to speech synthesis engine - more details on set up below.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/vasimpadhiyar/download/captcha-v1.0.zip?attredirects=0"&gt;&lt;span style="font-weight: bold; font-family: lucida grande;"&gt;Download Now&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: lucida grande;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-734292601182759433?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/734292601182759433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-use-captcha.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/734292601182759433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/734292601182759433'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-use-captcha.html' title='how to use captcha'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-3359407416736768673</id><published>2009-06-04T23:23:00.000-07:00</published><updated>2009-06-04T23:24:14.251-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL'/><title type='text'>how to use like keyword in mysql</title><content type='html'>&lt;div class="post-text"&gt;&lt;pre class="prettyprint"&gt;&lt;code&gt;&lt;span class="pln"&gt;SELECT&lt;br /&gt;    &lt;/span&gt;&lt;span class="pun"&gt;*&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;FROM&lt;br /&gt;    yourtable&lt;br /&gt;WHERE&lt;br /&gt;    id LIKE &lt;/span&gt;&lt;span class="str"&gt;'%keyword%'&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;    OR position LIKE &lt;/span&gt;&lt;span class="str"&gt;'%keyword%'&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;    OR category LIKE &lt;/span&gt;&lt;span class="str"&gt;'%keyword%'&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;    OR location LIKE &lt;/span&gt;&lt;span class="str"&gt;'%keyword%'&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;    OR description LIKE &lt;/span&gt;&lt;span class="str"&gt;'%keyword%'&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;    OR refno LIKE &lt;/span&gt;&lt;span class="str"&gt;'%keyword%'&lt;/span&gt;&lt;span class="pun"&gt;;&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-3359407416736768673?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/3359407416736768673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-use-like-keyword-in-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3359407416736768673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3359407416736768673'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-use-like-keyword-in-mysql.html' title='how to use like keyword in mysql'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-4778740684922869963</id><published>2009-06-04T04:26:00.000-07:00</published><updated>2009-06-04T04:31:32.963-07:00</updated><title type='text'>POST vs GET</title><content type='html'>Get Method&lt;br /&gt;[1] Get method display all the paremeter in Browser URL that you pass in form.&lt;br /&gt;[2] It also display hidden variable in URL. no security of hidden variable.&lt;br /&gt;[3] you can pass Limited number of paremeter in url&lt;br /&gt;&lt;br /&gt;Post Method&lt;br /&gt;[1] Post Method does not display any parameter in URL&lt;br /&gt;[2] Hidden variable will remain hidden.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-4778740684922869963?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/4778740684922869963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/post-vs-get.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4778740684922869963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4778740684922869963'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/post-vs-get.html' title='POST vs GET'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-7042457485538206697</id><published>2009-06-04T01:02:00.000-07:00</published><updated>2009-06-04T01:06:45.397-07:00</updated><title type='text'>How to get meta information from page url in php</title><content type='html'>&lt;span style="font-family: georgia;"&gt;// php provides following function to &lt;span style="font-weight: bold;"&gt;extract meta tag&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$array = get_meta_tags("http://scriptforphp.blogspot.com");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;&lt;br /&gt;print_r($array);&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-7042457485538206697?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/7042457485538206697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-get-meta-information-from-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7042457485538206697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7042457485538206697'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/how-to-get-meta-information-from-page.html' title='How to get meta information from page url in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-1715561897868610672</id><published>2009-06-02T22:45:00.000-07:00</published><updated>2009-06-02T23:02:15.924-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='spinner'/><title type='text'>Free article spinner script</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;//  This is Only Demo Script, To get Full Script Contact me :&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;iamvasim@gmail.com&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$string = "The {Banana|Apple} is {Good|Best} for all {boys|girls|man|woman|child}.";&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;$start_pos = strpos($string,'{');&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;$end_pos = strpos($string,'}');&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;                    &lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt; $position = strposall($string,"{");&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;                    &lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;  for($i=0; $i&amp;lt;($position); $i++)&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;  {&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;       $start = $position[$i];&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;       $end = strpos($string,'}',$start);&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;       $spin_string[] = trim(substr($string,$start,($end-$start)+1));&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;  }&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;&lt;br /&gt;                  &lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;   for($i=0; $i&amp;lt;count($spin_string); $i++)&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;   {&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;         $temp = $spin_string[$i];&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;         $temp = remove_first($temp);&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;         $temp = remove_last($temp);&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;         $explode[$i] = explode('|',$temp);&lt;/span&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:lucida grande;font-size:100%;"  &gt;    }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;// PLEASE CONTACT ME TO GET REST OF CODE&lt;br /&gt;&lt;br /&gt;// Output&lt;br /&gt;&lt;br /&gt;print_r(&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:lucida grande;"&gt;$spin_string);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;Array&lt;br /&gt;(&lt;br /&gt; [0] =&gt; {Banana|Apple}&lt;br /&gt; [1] =&gt; {Good|Best}&lt;br /&gt; [2] =&gt; {boys|girls|man|woman|child}&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;print_r(&lt;span style="font-family:lucida grande;"&gt;$explode&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;/span&gt;&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;Array&lt;br /&gt;(&lt;br /&gt; [0] =&gt; Array&lt;br /&gt;     (&lt;br /&gt;         [0] =&gt; Banana&lt;br /&gt;         [1] =&gt; Apple&lt;br /&gt;     )&lt;br /&gt;&lt;br /&gt; [1] =&gt; Array&lt;br /&gt;     (&lt;br /&gt;         [0] =&gt; Good&lt;br /&gt;         [1] =&gt; Best&lt;br /&gt;     )&lt;br /&gt;&lt;br /&gt; [2] =&gt; Array&lt;br /&gt;     (&lt;br /&gt;         [0] =&gt; boys&lt;br /&gt;         [1] =&gt; girls&lt;br /&gt;         [2] =&gt; man&lt;br /&gt;         [3] =&gt; woman&lt;br /&gt;         [4] =&gt; child&lt;br /&gt;     )&lt;br /&gt;&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;// AND THE FINAL ARRAY WILL HAVE FOLLOWING&lt;br /&gt;&lt;pre&gt;Array&lt;br /&gt;(&lt;br /&gt; [0] =&gt; The Banana is Good for all boys.&lt;br /&gt; [1] =&gt; The Banana is Good for all girls.&lt;br /&gt; [2] =&gt; The Banana is Good for all man.&lt;br /&gt; [3] =&gt; The Banana is Good for all woman.&lt;br /&gt; [4] =&gt; The Banana is Good for all child.&lt;br /&gt; [5] =&gt; The Banana is Best for all boys.&lt;br /&gt; [6] =&gt; The Banana is Best for all girls.&lt;br /&gt; [7] =&gt; The Banana is Best for all man.&lt;br /&gt; [8] =&gt; The Banana is Best for all woman.&lt;br /&gt; [9] =&gt; The Banana is Best for all child.&lt;br /&gt; [10] =&gt; The Apple is Good for all boys.&lt;br /&gt; [11] =&gt; The Apple is Good for all girls.&lt;br /&gt; [12] =&gt; The Apple is Good for all man.&lt;br /&gt; [13] =&gt; The Apple is Good for all woman.&lt;br /&gt; [14] =&gt; The Apple is Good for all child.&lt;br /&gt; [15] =&gt; The Apple is Best for all boys.&lt;br /&gt; [16] =&gt; The Apple is Best for all girls.&lt;br /&gt; [17] =&gt; The Apple is Best for all man.&lt;br /&gt; [18] =&gt; The Apple is Best for all woman.&lt;br /&gt; [19] =&gt; The Apple is Best for all child.&lt;br /&gt;)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-1715561897868610672?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/1715561897868610672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/free-article-spinner-script.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1715561897868610672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1715561897868610672'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/06/free-article-spinner-script.html' title='Free article spinner script'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-3663536534277448724</id><published>2009-05-28T06:44:00.000-07:00</published><updated>2009-05-28T06:51:20.732-07:00</updated><title type='text'>Auto expanding textarea</title><content type='html'>&amp;lt;script src="jquery.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt; &lt;br /&gt;  &amp;lt;script&amp;gt;&lt;br /&gt;  $(document).ready(function(){&lt;br /&gt;    $('#wer').scroll(function () {&lt;br /&gt;        old_height = document.getElementById("wer").style.height;&lt;br /&gt;        document.getElementById("wer").style.height = parseInt(old_height)+10+"px";&lt;br /&gt;    });&lt;br /&gt;&lt;br /&gt;  });&lt;br /&gt;  &amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;textarea style="widows:15px; height:50px;" id="wer"&amp;gt;asda sd&amp;lt;/textarea&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-3663536534277448724?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/3663536534277448724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/expand-textarea.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3663536534277448724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3663536534277448724'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/expand-textarea.html' title='Auto expanding textarea'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-7821952487251587912</id><published>2009-05-26T06:25:00.000-07:00</published><updated>2011-02-17T01:50:52.389-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BLOG'/><category scheme='http://www.blogger.com/atom/ns#' term='CURL'/><category scheme='http://www.blogger.com/atom/ns#' term='BLOGGER'/><title type='text'>Publishing a blog post using Blogger Data API</title><content type='html'>// OUTPUT you will get 201 CREATED massege.&lt;br /&gt;// For More HELP please contact me : iamvasim@gmail.com&lt;br /&gt;&lt;br /&gt;session_start();&lt;br /&gt;$email = "username@gmail.com";&lt;br /&gt;$pass = "password for blogspot you use";&lt;br /&gt;$blogID= urlencode("your blog id"); // like 6304924319904337556&lt;br /&gt;&lt;br /&gt;// Do Not Modify Below Code&lt;br /&gt;if(!isset($_SESSION['sessionToken'])) {&lt;br /&gt;&lt;br /&gt;$ch = curl_init("https://www.google.com/accounts/ClientLogin?Email=$email&amp;amp;Passwd=$pass&amp;amp;service=blogger&amp;amp;accountType=GOOGLE");&lt;br /&gt;curl_setopt($ch, CURLOPT_POST,1);&lt;br /&gt;curl_setopt($ch, CURLOPT_FOLLOWLOCATION  ,1);&lt;br /&gt;curl_setopt($ch, CURLOPT_HEADER,0); &lt;br /&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER  ,1); &lt;br /&gt;$result = curl_exec($ch);&lt;br /&gt;$resultArray = curl_getinfo($ch);&lt;br /&gt;curl_close($ch);&lt;br /&gt;$arr = explode("=",$result);&lt;br /&gt;$token = $arr[3];&lt;br /&gt;$_SESSION['sessionToken'] = $token;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$entry =  "&amp;lt;entry xmlns='http://www.w3.org/2005/Atom'&amp;gt;&amp;lt;title type='text'&amp;gt;My &amp;lt;/title&amp;gt;&amp;lt;content type='xhtml'&amp;gt; This is my testing contnet &amp;lt;/content&amp;gt;&amp;lt;/entry&amp;gt;";&lt;br /&gt;&lt;br /&gt;$len = strlen($entry);&lt;br /&gt;&lt;br /&gt;$headers = array("Content-type: application/atom+xml","Content-Length: {$len}","Authorization: GoogleLogin auth={$_SESSION['sessionToken']}","$entry");&lt;br /&gt;&lt;br /&gt;$ch = curl_init();&lt;br /&gt;curl_setopt($ch, CURLOPT_URL, "https://www.blogger.com/feeds/$blogID/posts/default");&lt;br /&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;curl_setopt($ch, CURLOPT_TIMEOUT, 4);&lt;br /&gt;curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);&lt;br /&gt;curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);&lt;br /&gt;curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, 1);&lt;br /&gt;curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;$result = curl_exec($ch);&lt;br /&gt;$ERROR_CODE = curl_getinfo($ch);&lt;br /&gt;curl_close($ch);&lt;br /&gt;&lt;br /&gt;echo '&amp;lt;pre&amp;gt;';&lt;br /&gt;print_r($headers);&lt;br /&gt;var_dump($result);&lt;br /&gt;print_r($ERROR_CODE);  &lt;br /&gt;exit;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-7821952487251587912?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/7821952487251587912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/publishing-blog-post-using-blogger-data.html#comment-form' title='23 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7821952487251587912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7821952487251587912'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/publishing-blog-post-using-blogger-data.html' title='Publishing a blog post using Blogger Data API'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>23</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-3993010181769808688</id><published>2009-05-22T23:25:00.000-07:00</published><updated>2009-05-22T23:32:50.554-07:00</updated><title type='text'>substr</title><content type='html'>// Examples Of substr function&lt;br /&gt;$string = "123456789"; // our main string&lt;br /&gt;&lt;br /&gt;echo substr($string,0,3);  // print : 123&lt;br /&gt;// Above example shows starting from 0 (First) position to total 3 characters&lt;br /&gt;&lt;br /&gt;echo substr($string,1,3);  // print : 234&lt;br /&gt;// Above example shows starting from 1(Second) position to total 3 characters&lt;br /&gt;&lt;br /&gt;echo substr($string,-1);  // print : 9&lt;br /&gt;// It Will give last character of string&lt;br /&gt;&lt;br /&gt;echo substr($string,-4);  // print : 6789&lt;br /&gt;// It Will give last 4 characters of string&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-3993010181769808688?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/3993010181769808688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/substr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3993010181769808688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/3993010181769808688'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/substr.html' title='substr'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-5321854924295005645</id><published>2009-05-21T08:11:00.000-07:00</published><updated>2009-05-21T08:13:25.050-07:00</updated><title type='text'>How To Remove Array Element</title><content type='html'>$array = array('hi','how','are','you');&lt;br /&gt;unset($array[1]);&lt;br /&gt;&lt;br /&gt;// Now Array will Have&lt;br /&gt;&lt;br /&gt;$array = array('hi','are','you');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-5321854924295005645?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/5321854924295005645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/how-to-remove-array-element.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5321854924295005645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5321854924295005645'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/how-to-remove-array-element.html' title='How To Remove Array Element'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-1970996789966667428</id><published>2009-05-21T03:23:00.000-07:00</published><updated>2009-05-21T03:28:03.879-07:00</updated><title type='text'>How To Get All Links From Page Content</title><content type='html'>$site_url = "http://scriptforphp.blogspot.com"&lt;br /&gt;$string = file_get_contents($site_url);&lt;br /&gt;&lt;br /&gt;preg_match_all("|\&amp;lt;a\ href=\"(.*)\"|U",$string, $results);  // Get Only URL&lt;br /&gt;preg_match_all("|\&amp;lt;a\ (.*)\&amp;lt;\/a\&amp;gt;|U",$string, $results);    // Get Whole Link&lt;br /&gt;&lt;br /&gt;$url = $results[1];&lt;br /&gt;&lt;br /&gt; foreach($urls as $url)&lt;br /&gt; {&lt;br /&gt;    echo htmlentities($url).'&amp;lt;br /&amp;gt;';&lt;br /&gt; }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-1970996789966667428?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/1970996789966667428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/how-to-get-all-links-from-page-content.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1970996789966667428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1970996789966667428'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/how-to-get-all-links-from-page-content.html' title='How To Get All Links From Page Content'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-5642874686206021494</id><published>2009-05-20T06:16:00.000-07:00</published><updated>2009-05-20T06:20:45.104-07:00</updated><title type='text'>Zend Framework for Google Api</title><content type='html'>&lt;a href="http://framework.zend.com/releases/ZendGdata-1.8.1/ZendGdata-1.8.1.zip"&gt;&lt;br /&gt;Download Now From http://framework.zend.com/&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://framework.zend.com/manual/en/zend.gdata.html"&gt;&lt;br /&gt;Documentation Here&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-5642874686206021494?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/5642874686206021494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/zend-framework-for-google-api.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5642874686206021494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5642874686206021494'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/zend-framework-for-google-api.html' title='Zend Framework for Google Api'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-884346889524049885</id><published>2009-05-18T04:08:00.000-07:00</published><updated>2009-05-18T04:09:58.038-07:00</updated><title type='text'>Automatic Post Creation with Wordpress, PHP, and XML-RPC</title><content type='html'>&lt;a href="http://life.mysiteonline.org/archives/161-Automatic-Post-Creation-with-Wordpress,-PHP,-and-XML-RPC.html"&gt;VISIT THIS SITE&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-884346889524049885?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/884346889524049885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/automatic-post-creation-with-wordpress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/884346889524049885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/884346889524049885'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/automatic-post-creation-with-wordpress.html' title='Automatic Post Creation with Wordpress, PHP, and XML-RPC'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-996198154423043956</id><published>2009-05-12T07:40:00.000-07:00</published><updated>2009-05-12T07:41:26.851-07:00</updated><title type='text'>Remove HTML Tags From Comment</title><content type='html'>function strip_tags_attributes($string,$allowtags=NULL,$allowattributes=NULL)&lt;br /&gt;{&lt;br /&gt;    if($allowattributes){&lt;br /&gt;        if(!is_array($allowattributes))&lt;br /&gt;            $allowattributes = explode(",",$allowattributes);&lt;br /&gt;        if(is_array($allowattributes))&lt;br /&gt;            $allowattributes = implode("|",$allowattributes);&lt;br /&gt;        $rep = '/([^&gt;]*) ('.$allowattributes.')(=)(\'.*\'|".*")/i';&lt;br /&gt;        $string = preg_replace($rep, '$1 $2_-_-$4', $string);&lt;br /&gt;    }&lt;br /&gt;    if(preg_match('/([^&gt;]*) (.*)(=\'.*\'|=".*")(.*)/i',$string) &gt; 0){&lt;br /&gt;        $string = preg_replace('/([^&gt;]*) (.*)(=\'.*\'|=".*")(.*)/i', '$1$4', $string);&lt;br /&gt;    }&lt;br /&gt;    $rep = '/([^&gt;]*) ('.$allowattributes.')(_-_-)(\'.*\'|".*")/i';&lt;br /&gt;    if($allowattributes)&lt;br /&gt;        $string = preg_replace($rep, '$1 $2=$4', $string);&lt;br /&gt;    return strip_tags($string,$allowtags);&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-996198154423043956?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/996198154423043956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/remove-html-tags-from-comment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/996198154423043956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/996198154423043956'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/remove-html-tags-from-comment.html' title='Remove HTML Tags From Comment'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-6137148295781730344</id><published>2009-05-08T02:36:00.000-07:00</published><updated>2009-05-08T02:40:10.453-07:00</updated><title type='text'>check URL is exist or not</title><content type='html'>$flag = url_exists("http://www.example.com/somepage.html");&lt;br /&gt;&lt;br /&gt;function url_exists($url)&lt;br /&gt;{&lt;br /&gt;    $handle = @fopen($url, "r");&lt;br /&gt;    if ($handle === false)&lt;br /&gt;        {&lt;br /&gt;             return false;&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;            return true;&lt;br /&gt;        }&lt;br /&gt;        fclose($handle);&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-6137148295781730344?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/6137148295781730344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/check-url-is-exist-or-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6137148295781730344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/6137148295781730344'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/check-url-is-exist-or-not.html' title='check URL is exist or not'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-939256997969765886</id><published>2009-05-05T02:29:00.000-07:00</published><updated>2009-05-07T01:09:36.476-07:00</updated><title type='text'>Send Mail using mail function in php</title><content type='html'>&lt;?&lt;br /&gt;   $to = "iamvasim@hotmail.com";&lt;br /&gt;   $subject = "Php Developer Blog";&lt;br /&gt;   $body = "Body of your message here you can use HTML too. e.g. &amp;lt;br&amp;gt; &amp;lt;b&amp;gt; Bold &amp;lt;/b&amp;gt;";&lt;br /&gt;   $headers  = "From: Linknami&lt;info@linknami.com&gt;\r\n";&lt;br /&gt;   $headers .= "Reply-To: info@yoursite.com\r\n";&lt;br /&gt;   $headers .= "Return-Path: info@yoursite.com\r\n";&lt;br /&gt;   $headers .= "X-Mailer: PHP5\n";&lt;br /&gt;   $headers .= 'MIME-Version: 1.0' . "\n";&lt;br /&gt;   $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";&lt;br /&gt;   mail($to,$subject,$body,$headers);&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-939256997969765886?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/939256997969765886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/send-mail-using-mail-function-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/939256997969765886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/939256997969765886'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/send-mail-using-mail-function-in-php.html' title='Send Mail using mail function in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-4241928788856310714</id><published>2009-05-04T07:32:00.000-07:00</published><updated>2009-05-07T01:09:36.565-07:00</updated><title type='text'>Prevent listing files by htaccess</title><content type='html'>Put below line to prevent listing&lt;br /&gt;Options -Indexes&lt;br /&gt;&lt;br /&gt;To prevent zip files&lt;br /&gt;IndexIgnore *.zip &lt;br /&gt;&lt;br /&gt;To prevent zip,jpg,gif files&lt;br /&gt;IndexIgnore *.zip *.jpg *.gif&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-4241928788856310714?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/4241928788856310714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/prevent-listing-files-by-htaccess.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4241928788856310714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4241928788856310714'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/prevent-listing-files-by-htaccess.html' title='Prevent listing files by htaccess'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-258337695760406359</id><published>2009-05-04T07:23:00.000-07:00</published><updated>2009-05-07T01:09:36.573-07:00</updated><title type='text'>How To Process MySQL Timestamp in PHP</title><content type='html'>$sql = "select UNIX_TIMESTAMP(date_field) as mydate from mytable where 1=1";&lt;br /&gt;$rs = mysql_query($sql) or die(mysql_error());&lt;br /&gt;while($row = mysql_fetch_array($rs))&lt;br /&gt;{&lt;br /&gt;  echo $row;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-258337695760406359?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/258337695760406359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/how-to-process-mysql-timestamp-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/258337695760406359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/258337695760406359'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/how-to-process-mysql-timestamp-in-php.html' title='How To Process MySQL Timestamp in PHP'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-8826089771924266636</id><published>2009-05-04T05:40:00.000-07:00</published><updated>2009-05-07T01:09:36.581-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='CONVERT'/><category scheme='http://www.blogger.com/atom/ns#' term='BMP'/><category scheme='http://www.blogger.com/atom/ns#' term='FUNCTION FOR'/><category scheme='http://www.blogger.com/atom/ns#' term='JPG'/><title type='text'>how to convert image from BMP to JPG type in php</title><content type='html'>Step - 1 &lt;br /&gt;$upload_path = "your full upload path where image will store";&lt;br /&gt;if($_FILES['file']['type']=='image/bmp')&lt;br /&gt;{&lt;br /&gt;  $name=explode('.',$_FILES['file']['name']);&lt;br /&gt;  $name=$name[0].".jpg";&lt;br /&gt;  $img = ImageCreateFromBmp($upload_path.$_FILES['file']['name']); &lt;br /&gt;  imagejpeg($img,$upload_path.$name);   // Convert to jpg file&lt;br /&gt;  unlink($upload_path.$_FILES['file']['name']); // Delete BMP File &lt;br /&gt;  &lt;br /&gt;  // Your Databse operation here&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Step - 2 &lt;br /&gt;// Now  Define function &lt;br /&gt;function ImageCreateFromBmp($filename)&lt;br /&gt;{&lt;br /&gt;   &lt;br /&gt;    $tmp_name = tempnam("/tmp", "GD");&lt;br /&gt;   &lt;br /&gt;    if(bmp2gd($filename, $tmp_name))&lt;br /&gt;    {&lt;br /&gt;   &lt;br /&gt;        $img = imagecreatefromgd($tmp_name);&lt;br /&gt;   &lt;br /&gt;        unlink($tmp_name);&lt;br /&gt;   &lt;br /&gt;        return $img;&lt;br /&gt;    }&lt;br /&gt;    return false;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function bmp2gd($src, $dest = false)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;    if(!($src_f = fopen($src, "rb")))&lt;br /&gt;    {&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if(!($dest_f = fopen($dest, "wb")))&lt;br /&gt;    {&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$header = unpack("vtype/Vsize/v2reserved/Voffset", fread( $src_f, 14));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$info = unpack("Vsize/Vwidth/Vheight/vplanes/vbits/Vcompression/Vimagesize/Vxres/Vyres/Vncolor/Vimportant",&lt;br /&gt;fread($src_f, 40));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;extract($info);&lt;br /&gt;extract($header);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if($type != 0x4D42)&lt;br /&gt;{&lt;br /&gt;    return false;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$palette_size = $offset - 54;&lt;br /&gt;$ncolor = $palette_size / 4;&lt;br /&gt;$gd_header = "";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$gd_header .= ($palette_size == 0) ? "\xFF\xFE" : "\xFF\xFF";&lt;br /&gt;$gd_header .= pack("n2", $width, $height);&lt;br /&gt;$gd_header .= ($palette_size == 0) ? "\x01" : "\x00";&lt;br /&gt;if($palette_size) {&lt;br /&gt;$gd_header .= pack("n", $ncolor);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$gd_header .= "\xFF\xFF\xFF\xFF";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;fwrite($dest_f, $gd_header);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if($palette_size)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;    $palette = fread($src_f, $palette_size);&lt;br /&gt;&lt;br /&gt;    $gd_palette = "";&lt;br /&gt;    $j = 0;&lt;br /&gt;&lt;br /&gt;    while($j &lt; $palette_size)&lt;br /&gt;    {&lt;br /&gt;        $b = $palette{$j++};&lt;br /&gt;        $g = $palette{$j++};&lt;br /&gt;        $r = $palette{$j++};&lt;br /&gt;        $a = $palette{$j++};&lt;br /&gt;&lt;br /&gt;        $gd_palette .= "$r$g$b$a";&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    $gd_palette .= str_repeat("\x00\x00\x00\x00", 256 - $ncolor);&lt;br /&gt;&lt;br /&gt;    fwrite($dest_f, $gd_palette);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$scan_line_size = (($bits * $width) + 7) &gt;&gt; 3;&lt;br /&gt;$scan_line_align = ($scan_line_size &amp; 0x03) ? 4 - ($scan_line_size &amp; 0x03) : 0;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for($i = 0, $l = $height - 1; $i &lt; $height; $i++, $l--)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;    fseek($src_f, $offset + (($scan_line_size + $scan_line_align) * $l));&lt;br /&gt;    $scan_line = fread($src_f, $scan_line_size);&lt;br /&gt;    if($bits == 24)&lt;br /&gt;    {&lt;br /&gt;        $gd_scan_line = "";&lt;br /&gt;        $j = 0;&lt;br /&gt;        while($j &lt; $scan_line_size)&lt;br /&gt;        {&lt;br /&gt;            $b = $scan_line{$j++};&lt;br /&gt;            $g = $scan_line{$j++};&lt;br /&gt;            $r = $scan_line{$j++};&lt;br /&gt;            $gd_scan_line .= "\x00$r$g$b";&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    elseif($bits == 8)&lt;br /&gt;    {&lt;br /&gt;        $gd_scan_line = $scan_line;&lt;br /&gt;    }&lt;br /&gt;    elseif($bits == 4)&lt;br /&gt;    {&lt;br /&gt;        $gd_scan_line = "";&lt;br /&gt;        $j = 0;&lt;br /&gt;        while($j &lt; $scan_line_size)&lt;br /&gt;        {&lt;br /&gt;            $byte = ord($scan_line{$j++});&lt;br /&gt;            $p1 = chr($byte &gt;&gt; 4);&lt;br /&gt;            $p2 = chr($byte &amp; 0x0F);&lt;br /&gt;            $gd_scan_line .= "$p1$p2";&lt;br /&gt;        }&lt;br /&gt;        $gd_scan_line = substr($gd_scan_line, 0, $width);&lt;br /&gt;    }&lt;br /&gt;    elseif($bits == 1)&lt;br /&gt;    {&lt;br /&gt;        $gd_scan_line = "";&lt;br /&gt;        $j = 0;&lt;br /&gt;        while($j &lt; $scan_line_size)&lt;br /&gt;        {&lt;br /&gt;            $byte = ord($scan_line{$j++});&lt;br /&gt;            $p1 = chr((int) (($byte &amp; 0x80) != 0));&lt;br /&gt;            $p2 = chr((int) (($byte &amp; 0x40) != 0));&lt;br /&gt;            $p3 = chr((int) (($byte &amp; 0x20) != 0));&lt;br /&gt;            $p4 = chr((int) (($byte &amp; 0x10) != 0));&lt;br /&gt;            $p5 = chr((int) (($byte &amp; 0x08) != 0));&lt;br /&gt;            $p6 = chr((int) (($byte &amp; 0x04) != 0));&lt;br /&gt;            $p7 = chr((int) (($byte &amp; 0x02) != 0));&lt;br /&gt;            $p8 = chr((int) (($byte &amp; 0x01) != 0));&lt;br /&gt;            $gd_scan_line .= "$p1$p2$p3$p4$p5$p6$p7$p8";&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    $gd_scan_line = substr($gd_scan_line, 0, $width);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    fwrite($dest_f, $gd_scan_line);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;fclose($src_f);&lt;br /&gt;&lt;br /&gt;fclose($dest_f);&lt;br /&gt;&lt;br /&gt;return true;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-8826089771924266636?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/8826089771924266636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/how-to-convert-image-from-bmp-to-jpg.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/8826089771924266636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/8826089771924266636'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/05/how-to-convert-image-from-bmp-to-jpg.html' title='how to convert image from BMP to JPG type in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-9177874380969805817</id><published>2009-04-30T06:59:00.000-07:00</published><updated>2009-05-07T01:09:36.589-07:00</updated><title type='text'>how to put flv player in php</title><content type='html'>Demo Here&lt;br /&gt;&lt;br /&gt;&lt;embed height="250" width="280" flashvars="file=http://content.longtailvideo.com/videos/flvplayer.flv&amp;amp;stretching=fill&amp;amp;duration=27&amp;amp;image=http://content.longtailvideo.com/videos/flvplayer.jpg&amp;amp;" wmode="opaque" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#ffffff" name="bannerswf" id="bannerswf" style="" src="http://player.longtailvideo.com/player.swf" type="application/x-shockwave-flash"/&gt;&lt;/embed&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;embed height="250" width="280" flashvars="file=http://content.longtailvideo.com/videos/flvplayer.flv&amp;amp;stretching=fill&amp;amp;duration=27&amp;amp;image=http://content.longtailvideo.com/videos/flvplayer.jpg&amp;amp;" wmode="opaque" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#ffffff" name="bannerswf" id="bannerswf" style="" src="http://player.longtailvideo.com/player.swf" type="application/x-shockwave-flash"/&amp;gt;&lt;br /&gt;&lt;br /&gt;you can find more info on &lt;a href="http://www.longtailvideo.com/players/jw-flv-player/"&gt;http://www.longtailvideo.com/players/jw-flv-player/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-9177874380969805817?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/9177874380969805817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-put-flv-player-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/9177874380969805817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/9177874380969805817'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-put-flv-player-in-php.html' title='how to put flv player in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-4234206832519195258</id><published>2009-04-28T07:40:00.000-07:00</published><updated>2009-05-07T01:09:36.595-07:00</updated><title type='text'>Javascript</title><content type='html'>Coming soon&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-4234206832519195258?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/4234206832519195258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4234206832519195258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4234206832519195258'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/javascript.html' title='Javascript'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-7510407080306171841</id><published>2009-04-28T05:13:00.000-07:00</published><updated>2009-05-07T01:09:36.602-07:00</updated><title type='text'>how to disable button using javascript</title><content type='html'>Here is a small example of disable button after clicking on it.&lt;br /&gt;&lt;br /&gt;&lt;form name="form1" method="post"&gt;&lt;br /&gt;&lt;input type="text" value="Enter value" name="txt1" /&gt;&lt;br /&gt;&lt;input type="button" onclick="this.disabled=true" value="CLICK ME" /&gt;&lt;br /&gt;&lt;/form&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt; SOURCE CODE &lt;/h3&gt;&lt;br /&gt;&amp;lt;form name="form1" method="post"&amp;gt;&lt;br /&gt;&amp;lt;input type="text" value="Enter value" name="txt1" /&amp;gt;&lt;br /&gt;&amp;lt;input type="button" onclick="this.disabled=true" value="CLICK ME" /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-7510407080306171841?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/7510407080306171841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-disable-button-using-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7510407080306171841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7510407080306171841'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-disable-button-using-javascript.html' title='how to disable button using javascript'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-5887752422342163479</id><published>2009-04-11T07:00:00.000-07:00</published><updated>2009-05-07T01:09:36.615-07:00</updated><title type='text'>maximum word limit for textarea</title><content type='html'>&amp;lt;textarea rows="8" cols="28" onKeyUp="checkWordLen(this,200);"&amp;gt;&amp;lt;/textarea&amp;gt; &lt;br /&gt;TOTAL WORDS : &amp;lt;span id="word_counter" style="color:#FF0000;"&amp;gt;0/200&amp;lt;/span&amp;gt;&lt;br /&gt;&lt;br /&gt;function checkWordLen(obj,MaxLen)&lt;br /&gt;{&lt;br /&gt;  &lt;br /&gt;  var len = obj.value.split(/[\s]+/);&lt;br /&gt;  &lt;br /&gt;  counter = len.length-1;&lt;br /&gt;&lt;br /&gt;  document.getElementById('word_counter').innerHTML = counter+"/"+MaxLen;&lt;br /&gt;  &lt;br /&gt;  if(len.length &gt; MaxLen)&lt;br /&gt;  {&lt;br /&gt;   objvalue = obj.value.split(/[\s]+/);&lt;br /&gt;&lt;br /&gt;   var newval = '';&lt;br /&gt;&lt;br /&gt;   for(var m=0; m&amp;lt;MaxLen; m++)&lt;br /&gt;   {&lt;br /&gt;    newval+=objvalue[m]+' ';&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   obj.value='';&lt;br /&gt;   obj.value=newval;&lt;br /&gt;&lt;br /&gt;   return false;&lt;br /&gt;  }&lt;br /&gt;   &lt;br /&gt;  return true;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-5887752422342163479?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/5887752422342163479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/maximum-word-limit-for-textarea.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5887752422342163479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/5887752422342163479'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/maximum-word-limit-for-textarea.html' title='maximum word limit for textarea'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6304924319904337556.post-4150210418269279156</id><published>2009-04-10T07:54:00.000-07:00</published><updated>2009-05-07T01:09:36.624-07:00</updated><title type='text'>how to encode and decode string in php</title><content type='html'>function base64url_encode($plainText) {&lt;br /&gt;   &lt;br /&gt;    $base64 = base64_encode($plainText);&lt;br /&gt;    $base64url = strtr($base64, '+/=', '-_,');&lt;br /&gt;    return $base64url;  &lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; function base64url_decode($plainText) {&lt;br /&gt;   &lt;br /&gt;    $base64url = strtr($plainText, '-_,', '+/=');&lt;br /&gt;    $base64 = base64_decode($base64url);&lt;br /&gt;    return $base64;  &lt;br /&gt; }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-4150210418269279156?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/4150210418269279156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-encode-and-decode-string-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4150210418269279156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4150210418269279156'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-encode-and-decode-string-in-php.html' title='how to encode and decode string in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-1188704321532811687</id><published>2009-04-10T06:45:00.000-07:00</published><updated>2009-05-07T01:09:36.608-07:00</updated><title type='text'>large size file upload problem in php</title><content type='html'>If you find such problem just follow the below step :&lt;br /&gt;&lt;br /&gt;1) make a file phpinfo.php and put this code &amp;lt;? echo phpinfo(); ?&amp;gt; save it. and run to see the out put.&lt;br /&gt;&lt;br /&gt;2) you will see your install php version information. check your php.ini file path. normally this will find at top&lt;br /&gt;&lt;br /&gt;3) open php.ini and modify 2 lines&lt;br /&gt;&lt;br /&gt;4) post_max_size = 8M to 100M or you want to upload max size&lt;br /&gt;&lt;br /&gt;5) upload_max_filesize = 8M to 100M or you want to upload max size&lt;br /&gt;&lt;br /&gt;6) save it. restart wamp and that you have done&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-1188704321532811687?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/1188704321532811687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/large-size-file-upload-problem-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1188704321532811687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1188704321532811687'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/large-size-file-upload-problem-in-php.html' title='large size file upload problem in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-8783859640073249197</id><published>2009-04-10T04:33:00.000-07:00</published><updated>2009-05-07T01:09:36.631-07:00</updated><title type='text'>Add dynamic element in javascript</title><content type='html'>function appendElement()&lt;br /&gt;{&lt;br /&gt;   node = document.getElementById('main_div'); // Parent element&lt;br /&gt;   tag = "div"; // Your element type&lt;br /&gt;   id = "div1"; // element id &lt;br /&gt;   html = "&amp;lt;table&amp;gt; &amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; DATA &amp;lt;td&amp;gt; &amp;lt;tr&amp;gt; &amp;lt;table&amp;gt;";&lt;br /&gt;   var ne = document.createElement(tag);&lt;br /&gt;   if(id) ne.id = id;&lt;br /&gt;   if(html) ne.innerHTML = html;&lt;br /&gt;   node.appendChild(ne);&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-8783859640073249197?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/8783859640073249197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/add-dynamic-element-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/8783859640073249197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/8783859640073249197'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/add-dynamic-element-in-javascript.html' title='Add dynamic element in javascript'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-7624578976693338305</id><published>2009-04-09T00:05:00.000-07:00</published><updated>2009-05-07T01:09:36.646-07:00</updated><title type='text'>find and replace in php</title><content type='html'>$text = "Google and Yahoo is popular website";&lt;br /&gt;&lt;br /&gt;$trans = array("Google" =&gt; "REPLACE_GOOGLE", "Yahoo" =&gt; "REPLACE_YAHOO");&lt;br /&gt;$output = strtr($text, $trans);&lt;br /&gt;&lt;br /&gt;echo $output;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-7624578976693338305?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/7624578976693338305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/find-and-replace-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7624578976693338305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7624578976693338305'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/find-and-replace-in-php.html' title='find and replace in php'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-7761323051697134205</id><published>2009-04-06T07:18:00.000-07:00</published><updated>2009-05-07T01:09:36.653-07:00</updated><title type='text'>how to allowed only limited tags in textarea or filtering tags</title><content type='html'>In this example only 'paragraph' and 'div' tag will be allowed rest of tags will be removed by function&lt;br /&gt;&lt;br /&gt;echo strip_tags_attributes($content,'&amp;lt;p&amp;gt;&amp;lt;div&amp;gt;','class');&lt;br /&gt;&lt;br /&gt;// More details found on www.php.net&lt;br /&gt;function strip_tags_attributes($string,$allowtags=NULL,$allowattributes=NULL)&lt;br /&gt;{&lt;br /&gt;    if($allowattributes){&lt;br /&gt;        if(!is_array($allowattributes))&lt;br /&gt;            $allowattributes = explode(",",$allowattributes);&lt;br /&gt;        if(is_array($allowattributes))&lt;br /&gt;            $allowattributes = implode("|",$allowattributes);&lt;br /&gt;        $rep = '/([^&gt;]*) ('.$allowattributes.')(=)(\'.*\'|".*")/i';&lt;br /&gt;        $string = preg_replace($rep, '$1 $2_-_-$4', $string);&lt;br /&gt;    }&lt;br /&gt;    if(preg_match('/([^&gt;]*) (.*)(=\'.*\'|=".*")(.*)/i',$string) &gt; 0){&lt;br /&gt;        $string = preg_replace('/([^&gt;]*) (.*)(=\'.*\'|=".*")(.*)/i', '$1$4', $string);&lt;br /&gt;    }&lt;br /&gt;    $rep = '/([^&gt;]*) ('.$allowattributes.')(_-_-)(\'.*\'|".*")/i';&lt;br /&gt;    if($allowattributes)&lt;br /&gt;        $string = preg_replace($rep, '$1 $2=$4', $string);&lt;br /&gt;    return strip_tags($string,$allowtags);&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-7761323051697134205?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/7761323051697134205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-allowed-only-limited-tags-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7761323051697134205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/7761323051697134205'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-allowed-only-limited-tags-in.html' title='how to allowed only limited tags in textarea or filtering tags'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-4707779096714590623</id><published>2009-04-06T07:16:00.000-07:00</published><updated>2009-05-07T01:09:36.660-07:00</updated><title type='text'>How to get Google Page Rank</title><content type='html'>echo GetGoogleRank("http://www.yoursitename.com");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function GetGoogleRank($uri) {&lt;br /&gt;&lt;br /&gt;// check Google - some systems workaround&lt;br /&gt;&lt;br /&gt;$uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri));&lt;br /&gt;&lt;br /&gt;$url = 'http://pagerank.4free.pl/pr.php?url=' . urlencode($uri);&lt;br /&gt;&lt;br /&gt;$v = file_get_contents($url);&lt;br /&gt;&lt;br /&gt;preg_match('/wynosi (.*?) z 10/si',$v,$r);&lt;br /&gt;&lt;br /&gt;$value = $r[1];&lt;br /&gt;&lt;br /&gt;return $value;&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-4707779096714590623?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/4707779096714590623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-get-google-page-rank.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4707779096714590623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/4707779096714590623'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-get-google-page-rank.html' title='How to get Google Page Rank'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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-6304924319904337556.post-1534736453355396086</id><published>2009-04-06T04:10:00.000-07:00</published><updated>2009-05-07T01:09:36.668-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='html table'/><title type='text'>How to divide table in dynamic colom</title><content type='html'>Here is code to solve the problem :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;$list = 100; // Total listing data here you can get it as count($your_array)&lt;br /&gt;$max_td = 4; // Set this for maximum colomn you want in table&lt;br /&gt;$table_width = "650"; // set table width in pixel&lt;br /&gt;$td_width = $table_width/$max_td;  // do not modify&lt;br /&gt;&lt;br /&gt;if($list&gt;0)&lt;br /&gt;{              &lt;br /&gt;      echo '&amp;lt;table width="'.$table_width.'" border="1" cellpadding="3" cellspacing="3"&amp;gt;';&lt;br /&gt;     echo '&amp;lt;tr&amp;gt;';&lt;br /&gt; for($i=1; $i&lt;=count($list); $i++)&lt;br /&gt; {&lt;br /&gt;    echo '&amp;lt;td width="'.$td_width.'"&amp;gt; '.$i.' &amp;lt;/td&amp;gt;';&lt;br /&gt;  if($i%$max_td==0)&lt;br /&gt;  {&lt;br /&gt;      echo '&amp;lt;/tr&amp;gt; &amp;lt;tr&amp;gt;';&lt;br /&gt;  }&lt;br /&gt;    &lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    echo '&amp;lt;/table&amp;gt;';&lt;br /&gt;} // end of IF&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6304924319904337556-1534736453355396086?l=scriptforphp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://scriptforphp.blogspot.com/feeds/1534736453355396086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-divide-table-in-dynamic-colom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1534736453355396086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6304924319904337556/posts/default/1534736453355396086'/><link rel='alternate' type='text/html' href='http://scriptforphp.blogspot.com/2009/04/how-to-divide-table-in-dynamic-colom.html' title='How to divide table in dynamic colom'/><author><name>Vasim Padhiyar</name><uri>http://www.blogger.com/profile/09116885579054484124</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>
