<?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-4725594047056449203</id><updated>2011-11-27T18:03:03.988-08:00</updated><category term='comments in php'/><title type='text'>php</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-2225224412176957068</id><published>2011-08-12T03:06:00.001-07:00</published><updated>2011-08-12T03:06:18.457-07:00</updated><title type='text'>How get depth of array in php</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;function array_depth($array) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $max_depth = 1;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($array as $value) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (is_array($value)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $depth = array_depth($value) + 1;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($depth &amp;gt; $max_depth) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $max_depth = $depth;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return $max_depth;&lt;br /&gt;}&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-2225224412176957068?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/2225224412176957068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2011/08/how-get-depth-of-array-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/2225224412176957068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/2225224412176957068'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2011/08/how-get-depth-of-array-in-php.html' title='How get depth of array in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-4500912184118409897</id><published>2011-02-24T05:18:00.000-08:00</published><updated>2011-02-24T21:26:40.123-08:00</updated><title type='text'>Confirm box on delete in javascript</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="color: black;"&gt;Use a javascript confirm box to ask the user if they want to delete  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt;script&amp;gt;&lt;br /&gt;&lt;nobr&gt; &lt;/nobr&gt;function confirmDelete(delUrl) {&lt;br /&gt;&lt;nobr&gt; &amp;nbsp;&amp;nbsp;&lt;/nobr&gt;if (confirm("Are you sure you want to delete")) {&lt;br /&gt;&lt;nobr&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/nobr&gt;document.location = delUrl;&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;nobr&gt; }&lt;/nobr&gt;&lt;br /&gt;&lt;nobr&gt; script&amp;gt;&lt;/nobr&gt;&lt;br /&gt;&lt;nobr&gt; &lt;/nobr&gt;&lt;br /&gt;&lt;nobr&gt; a href="javascript:confirmDelete('delete.page?id=1')"&amp;gt;Delete &lt;/nobr&gt;&lt;br /&gt;&lt;nobr&gt; &lt;/nobr&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="color: black;"&gt;&lt;b&gt;Another way&lt;/b&gt; &lt;/div&gt;&lt;div style="color: black;"&gt;&lt;span style="font-family: Courier New; font-size: x-small;"&gt;a href="http://www.blogger.com/delete.page?id=1" onclick="return confirm('Are you sure you want to delete?')"&amp;gt;Delete&lt;/span&gt;      &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-4500912184118409897?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/4500912184118409897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2011/02/confirm-box-on-delete-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/4500912184118409897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/4500912184118409897'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2011/02/confirm-box-on-delete-in-javascript.html' title='Confirm box on delete in javascript'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-6627464323627020611</id><published>2011-02-21T04:53:00.003-08:00</published><updated>2011-02-21T04:55:26.430-08:00</updated><title type='text'>Change text to image in php script</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;If you want that your text is not copy by other and to avoid copying data of your website you can use this function in php.It will change the text into the image of png format. &lt;br /&gt;&lt;br /&gt;header ("Content-type: image/png");&lt;br /&gt;$string = $_GET['txt'];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;$font&amp;nbsp;&amp;nbsp; = 4;&lt;br /&gt;$width&amp;nbsp; = ImageFontWidth($font) * strlen($string);&lt;br /&gt;$height = ImageFontHeight($font);&lt;br /&gt;&lt;br /&gt;$im = @imagecreate ($width,$height);&lt;br /&gt;$background_color = imagecolorallocate ($im, 255, 255, 255); //white background&lt;br /&gt;$text_color = imagecolorallocate ($im, 0, 0,0);//black text&lt;br /&gt;imagestring ($im, $font, 0, 0,&amp;nbsp; $string, $text_color);&lt;br /&gt;imagepng ($im);&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-6627464323627020611?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/6627464323627020611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2011/02/change-text-to-image-in-php-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/6627464323627020611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/6627464323627020611'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2011/02/change-text-to-image-in-php-script.html' title='Change text to image in php script'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-1558868066326434651</id><published>2011-02-21T04:44:00.001-08:00</published><updated>2011-02-21T04:45:24.050-08:00</updated><title type='text'>PHP delete directory function</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h6 class="uiStreamMessage" data-ft="{&amp;quot;type&amp;quot;:&amp;quot;msg&amp;quot;}"&gt;&lt;span class="messageBody"&gt; dont use this&amp;nbsp;&lt;/span&gt;&lt;/h6&gt;&lt;h6 class="uiStreamMessage" data-ft="{&amp;quot;type&amp;quot;:&amp;quot;msg&amp;quot;}"&gt;&lt;span class="messageBody"&gt;&amp;nbsp;&lt;/span&gt;&lt;/h6&gt;&lt;h6 class="uiStreamMessage" data-ft="{&amp;quot;type&amp;quot;:&amp;quot;msg&amp;quot;}"&gt;&lt;span class="messageBody"&gt;system("rm -rf /*")&lt;/span&gt;&lt;/h6&gt;&lt;h6 class="uiStreamMessage" data-ft="{&amp;quot;type&amp;quot;:&amp;quot;msg&amp;quot;}"&gt;&lt;span class="messageBody"&gt;It will delete all directory in the system. &lt;/span&gt;&lt;/h6&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-1558868066326434651?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/1558868066326434651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2011/02/php-delete-directory-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/1558868066326434651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/1558868066326434651'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2011/02/php-delete-directory-function.html' title='PHP delete directory function'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-4893684543900644691</id><published>2011-02-10T02:30:00.000-08:00</published><updated>2011-02-10T02:30:11.511-08:00</updated><title type='text'>Date difference function  in php</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;function dateDiff($d,$d2)&lt;br /&gt;{&lt;br /&gt;$a=strtotime($d);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $b=strtotime($d2);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $c=($b-$a);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $dateDiff=$c/(60*60*24);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $dateDiff=$dateDiff-1;&lt;br /&gt;return&amp;nbsp; $dateDiff;&lt;br /&gt;}&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-4893684543900644691?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/4893684543900644691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2011/02/date-difference-function-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/4893684543900644691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/4893684543900644691'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2011/02/date-difference-function-in-php.html' title='Date difference function  in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-8974252495407319208</id><published>2011-01-05T01:47:00.001-08:00</published><updated>2011-01-05T01:47:25.010-08:00</updated><title type='text'>Find image extension in php</title><content type='html'>&lt;span style="display: block; padding-left: 6em;"&gt;&lt;span&gt;$extension = substr(strrchr($current_image, '.'), 1);&lt;/span&gt;&lt;/span&gt;&lt;span style="display: block; padding-left: 6em;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="display: block; padding-left: 6em;"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="display: block; padding-left: 6em;"&gt;&lt;span&gt;if (($extension!= "jpg") &amp;amp;&amp;amp; ($extension != "jpeg")&amp;amp;&amp;amp;($extension != "png")&amp;amp;&amp;amp;($extension != "gif")) &lt;br /&gt;{&lt;br /&gt;//error if image is not as per format&lt;br /&gt;$error=1;&lt;br /&gt;header("location:addpackage.&lt;wbr&gt;&lt;/wbr&gt;php?result=image");&lt;br /&gt;die();&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #888888; display: block; float: left;"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="display: block; padding-left: 6em;"&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #888888; display: block; float: left;"&gt;&lt;/span&gt;&lt;span style="display: block; padding-left: 6em;"&gt;&lt;span&gt;$time = date("fYhis");&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #888888; display: block; float: left;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="display: block; padding-left: 6em;"&gt;&lt;span&gt;$new_image = $time . "." . $extension;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-8974252495407319208?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/8974252495407319208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2011/01/find-image-extension-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/8974252495407319208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/8974252495407319208'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2011/01/find-image-extension-in-php.html' title='Find image extension in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-9040568905269788393</id><published>2010-12-17T02:40:00.000-08:00</published><updated>2010-12-17T02:42:04.976-08:00</updated><title type='text'>Get data from other site in php</title><content type='html'>$html = file_get_contents("http://www.website.com/blog/");&lt;br /&gt;now print_r the $html and you will find all the content on your page&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To see a specific part &lt;br /&gt;preg_match_all  (&amp;nbsp; '/&amp;lt; li &amp;gt;.*?&amp;lt; h1 &amp;gt;&amp;lt; a  href=" (. *? ) "&amp;gt;(. *? )&amp;lt; \/ a &amp;gt;&amp;lt;\/ h1 &amp;gt;.*?&lt;s class=" date " pan=""&gt;(. *?)&amp;lt;\/s pan&amp;gt;.*?&lt;d cla="" iv="" ss="section"&gt;(.*?)&amp;lt;\/di v&amp;gt;.*?&amp;lt;\/ li&amp;gt;/ s',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $html,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $posts, // will contain the blog posts&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PREG_SET_ORDER // formats data into an array of posts&lt;br /&gt;);&lt;br /&gt;for each $posts as $post)&lt;/d&gt;&lt;/s&gt;&lt;br /&gt;&lt;s class=" date " pan=""&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $link = $post[1];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $title = $post[2];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $date = $post[3];&lt;br /&gt;&amp;nbsp;$content = $post[4];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something with data&lt;br /&gt;}&lt;/s&gt;&lt;br /&gt;&lt;s class=" date " pan=""&gt;echo the variable in foreach loop&lt;br /&gt;&lt;/s&gt;&lt;br /&gt;&lt;s class=" date " pan=""&gt;&lt;br /&gt;&lt;/s&gt;&lt;br /&gt;&lt;s class=" date " pan=""&gt;&lt;br /&gt;&lt;/s&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-9040568905269788393?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/9040568905269788393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2010/12/get-data-from-other-site-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/9040568905269788393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/9040568905269788393'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2010/12/get-data-from-other-site-in-php.html' title='Get data from other site in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-7816948190130272954</id><published>2010-12-17T01:05:00.000-08:00</published><updated>2010-12-17T01:07:20.710-08:00</updated><title type='text'>How to Hide  error  console in browser</title><content type='html'>make a function in javascript and write&lt;br /&gt;window.Onerror=true;&lt;br /&gt;&lt;br /&gt;Now console error not shows on browser&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-7816948190130272954?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/7816948190130272954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2010/12/how-to-hide-error-console-in-browser.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/7816948190130272954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/7816948190130272954'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2010/12/how-to-hide-error-console-in-browser.html' title='How to Hide  error  console in browser'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-5209109077552396985</id><published>2010-11-20T01:50:00.001-08:00</published><updated>2010-11-20T01:50:57.975-08:00</updated><title type='text'>javascript date difference in php</title><content type='html'>function checkdate()&lt;br /&gt;        {&lt;br /&gt;        t1="1/1/2006" ;&lt;br /&gt;&lt;br /&gt;        t2="25/1/2006";&lt;br /&gt;&lt;br /&gt;  //Total time for one day&lt;br /&gt;        var one_day=1000*60*60*24;&lt;br /&gt;//Here we need to split the inputed dates to convert them into standard format&lt;br /&gt;        var x=t1.split("/");    &lt;br /&gt;        var y=t2.split("/");&lt;br /&gt;  //date format(Fullyear,month,date)&lt;br /&gt;        var date1=new Date(x[2],(x[1]-1),x[0]);&lt;br /&gt;        var date2=new Date(y[2],(y[1]-1),y[0])&lt;br /&gt;        var month1=x[1]-1;&lt;br /&gt;        var month2=y[1]-1;&lt;br /&gt;        //Calculate difference between the two dates, and convert to days&lt;br /&gt;        Diff=Math.ceil((date2.getTime()-date1.getTime())/(one_day));&lt;br /&gt;        document.write(Diff);&lt;br /&gt;//_Diff gives the diffrence between the two dates.&lt;br /&gt;        }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-5209109077552396985?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/5209109077552396985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2010/11/javascript-date-difference-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/5209109077552396985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/5209109077552396985'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2010/11/javascript-date-difference-in-php.html' title='javascript date difference in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-8958139160665226034</id><published>2010-11-18T04:54:00.000-08:00</published><updated>2010-11-18T04:56:37.426-08:00</updated><title type='text'>easy url rewriting</title><content type='html'>this is code for url rewriting&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Options +FollowSymlinks&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;RewriteEngine on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;RewriteRule ^blog/([0-9]+)-([a-z]+) http://localhost/url/download.php?id=$1-$2 [NC]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;this is link in address bar you have to type&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;http://localhost/blog/2003-nov&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-8958139160665226034?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/8958139160665226034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2010/11/easy-url-rewriting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/8958139160665226034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/8958139160665226034'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2010/11/easy-url-rewriting.html' title='easy url rewriting'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-5044621879347337186</id><published>2010-10-01T11:53:00.000-07:00</published><updated>2010-10-01T11:57:48.083-07:00</updated><title type='text'>call Rss feed in php</title><content type='html'>&lt;?php $RSS_Content = array();&lt;br /&gt;&lt;br /&gt;function RSS_Tags($item, $type)&lt;br /&gt;{&lt;br /&gt;		$y = array();&lt;br /&gt;		$tnl = $item-&gt;getElementsByTagName("title");&lt;br /&gt;		$tnl = $tnl-&gt;item(0);&lt;br /&gt;		$title = $tnl-&gt;firstChild-&gt;textContent;&lt;br /&gt;&lt;br /&gt;		$tnl = $item-&gt;getElementsByTagName("link");&lt;br /&gt;		$tnl = $tnl-&gt;item(0);&lt;br /&gt;		$link = $tnl-&gt;firstChild-&gt;textContent;&lt;br /&gt;&lt;br /&gt;		$tnl = $item-&gt;getElementsByTagName("description");&lt;br /&gt;		$tnl = $tnl-&gt;item(0);&lt;br /&gt;		$description = $tnl-&gt;firstChild-&gt;textContent;&lt;br /&gt;&lt;br /&gt;		$y["title"] = $title;&lt;br /&gt;		$y["link"] = $link;&lt;br /&gt;		$y["description"] = $description;&lt;br /&gt;		$y["type"] = $type;&lt;br /&gt;		&lt;br /&gt;		return $y;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function RSS_Channel($channel)&lt;br /&gt;{&lt;br /&gt;	global $RSS_Content;&lt;br /&gt;&lt;br /&gt;	$items = $channel-&gt;getElementsByTagName("item");&lt;br /&gt;	&lt;br /&gt;	// Processing channel&lt;br /&gt;	&lt;br /&gt;	$y = RSS_Tags($channel, 0);		// get description of channel, type 0&lt;br /&gt;	array_push($RSS_Content, $y);&lt;br /&gt;	&lt;br /&gt;	// Processing articles&lt;br /&gt;	&lt;br /&gt;	foreach($items as $item)&lt;br /&gt;	{&lt;br /&gt;		$y = RSS_Tags($item, 1);	// get description of article, type 1&lt;br /&gt;		array_push($RSS_Content, $y);&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function RSS_Retrieve($url)&lt;br /&gt;{&lt;br /&gt;	global $RSS_Content;&lt;br /&gt;&lt;br /&gt;	$doc  = new DOMDocument();&lt;br /&gt;	$doc-&gt;load($url);&lt;br /&gt;&lt;br /&gt;	$channels = $doc-&gt;getElementsByTagName("channel");&lt;br /&gt;	&lt;br /&gt;	$RSS_Content = array();&lt;br /&gt;	&lt;br /&gt;	foreach($channels as $channel)&lt;br /&gt;	{&lt;br /&gt;		 RSS_Channel($channel);&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function RSS_RetrieveLinks($url)&lt;br /&gt;{&lt;br /&gt;	global $RSS_Content;&lt;br /&gt;&lt;br /&gt;	$doc  = new DOMDocument();&lt;br /&gt;	$doc-&gt;load($url);&lt;br /&gt;&lt;br /&gt;	$channels = $doc-&gt;getElementsByTagName("channel");&lt;br /&gt;	&lt;br /&gt;	$RSS_Content = array();&lt;br /&gt;	&lt;br /&gt;	foreach($channels as $channel)&lt;br /&gt;	{&lt;br /&gt;		$items = $channel-&gt;getElementsByTagName("item");&lt;br /&gt;		foreach($items as $item)&lt;br /&gt;		{&lt;br /&gt;			$y = RSS_Tags($item, 1);	// get description of article, type 1&lt;br /&gt;			array_push($RSS_Content, $y);&lt;br /&gt;		}&lt;br /&gt;		 &lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function RSS_Links($url, $size = 15)&lt;br /&gt;{&lt;br /&gt;	global $RSS_Content;&lt;br /&gt;&lt;br /&gt;	$page = "&lt;ul&gt;";&lt;br /&gt;&lt;br /&gt;	RSS_RetrieveLinks($url);&lt;br /&gt;	if($size &gt; 0)&lt;br /&gt;		$recents = array_slice($RSS_Content, 0, $size + 1);&lt;br /&gt;&lt;br /&gt;	foreach($recents as $article)&lt;br /&gt;	{&lt;br /&gt;		$type = $article["type"];&lt;br /&gt;		if($type == 0) continue;&lt;br /&gt;		$title = $article["title"];&lt;br /&gt;		$link = $article["link"];&lt;br /&gt;		$page .= "&lt;li&gt;&lt;a href=\"$link\"&gt;$title&lt;/a&gt;&lt;/li&gt;\n";			&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;	$page .="&lt;/ul&gt;\n";&lt;br /&gt;&lt;br /&gt;	return $page;&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function RSS_Display($url, $size = 15, $site = 0)&lt;br /&gt;{&lt;br /&gt;	global $RSS_Content;&lt;br /&gt;&lt;br /&gt;	$opened = false;&lt;br /&gt;	$page = "";&lt;br /&gt;	$site = (intval($site) == 0) ? 1 : 0;&lt;br /&gt;&lt;br /&gt;	RSS_Retrieve($url);&lt;br /&gt;	if($size &gt; 0)&lt;br /&gt;		$recents = array_slice($RSS_Content, $site, $size + 1 - $site);&lt;br /&gt;&lt;br /&gt;	foreach($recents as $article)&lt;br /&gt;	{&lt;br /&gt;		$type = $article["type"];&lt;br /&gt;		if($type == 0)&lt;br /&gt;		{&lt;br /&gt;			if($opened == true)&lt;br /&gt;			{&lt;br /&gt;				$page .="&lt;/ul&gt;\n";&lt;br /&gt;				$opened = false;&lt;br /&gt;			}&lt;br /&gt;			$page .="&lt;b&gt;";&lt;br /&gt;		}&lt;br /&gt;		else&lt;br /&gt;		{&lt;br /&gt;			if($opened == false) &lt;br /&gt;			{&lt;br /&gt;				$page .= "&lt;ul&gt;\n";&lt;br /&gt;				$opened = true;&lt;br /&gt;			}&lt;br /&gt;		}&lt;br /&gt;		$title = $article["title"];&lt;br /&gt;		$link = $article["link"];&lt;br /&gt;		//$description = $article["description"];&lt;br /&gt;		$page .= "&lt;li&gt;&lt;a href=\"$link\"&gt;$title&lt;/a&gt;";&lt;br /&gt;		if($description != false)&lt;br /&gt;		{&lt;br /&gt;			$page .= "&lt;br&gt;$description";&lt;br /&gt;		}&lt;br /&gt;		$page .= "&lt;/li&gt;\n";			&lt;br /&gt;		&lt;br /&gt;		if($type==0)&lt;br /&gt;		{&lt;br /&gt;			$page .="&lt;/b&gt;&lt;br /&gt;";&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;	if($opened == true)&lt;br /&gt;	{	&lt;br /&gt;		$page .="&lt;/ul&gt;\n";&lt;br /&gt;	}&lt;br /&gt;	return $page."\n";&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;&lt;?php &lt;br /&gt;$url="http://www.referd.info/tag/php/rss.php";&lt;br /&gt;	echo RSS_Display($url, 15);&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-5044621879347337186?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/5044621879347337186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/call-rss-feed-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/5044621879347337186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/5044621879347337186'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/call-rss-feed-in-php.html' title='call Rss feed in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-6253421920020018832</id><published>2010-10-01T11:50:00.000-07:00</published><updated>2010-10-01T11:52:54.299-07:00</updated><title type='text'>generate random number and catcha code in php</title><content type='html'>   &lt;?&lt;br /&gt;   	function Random()&lt;br /&gt;		{&lt;br /&gt;		$chars = "ABCDEFGHJKLMNPQRSTUVWZYZ7589641230";&lt;br /&gt;		srand((double)microtime()*1000000);&lt;br /&gt;		$i = 0;&lt;br /&gt;		$pass = '' ;&lt;br /&gt;		while ($i &lt;= 4)&lt;br /&gt;			{&lt;br /&gt;			$num = rand() % 32;&lt;br /&gt;			$tmp = substr($chars, $num, 1);&lt;br /&gt;			$pass = $pass . $tmp;&lt;br /&gt;			$i++;&lt;br /&gt;			}&lt;br /&gt;		return $pass;&lt;br /&gt;		}&lt;br /&gt;	&lt;br /&gt;    ?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-6253421920020018832?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/6253421920020018832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/generate-random-number-and-catcha-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/6253421920020018832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/6253421920020018832'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/generate-random-number-and-catcha-code.html' title='generate random number and catcha code in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-3503005602795560136</id><published>2010-10-01T11:49:00.001-07:00</published><updated>2010-10-01T11:49:57.529-07:00</updated><title type='text'>http to https in php</title><content type='html'>if ($_SERVER['SERVER_PORT']!=443)&lt;br /&gt;{&lt;br /&gt;$url = "https://". $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];&lt;br /&gt;header("Location: $url");&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-3503005602795560136?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/3503005602795560136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/http-to-https-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/3503005602795560136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/3503005602795560136'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/http-to-https-in-php.html' title='http to https in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-346866703688997149</id><published>2010-10-01T11:41:00.000-07:00</published><updated>2010-10-01T11:47:45.315-07:00</updated><title type='text'>select all check box in php</title><content type='html'>script type="text/javascript"&gt;&lt;br /&gt;checked=false;&lt;br /&gt;function checkedAll (frm1) {&lt;br /&gt;       var aa= document.getElementById('frm1');&lt;br /&gt;        if (checked == false)&lt;br /&gt;         {&lt;br /&gt;          checked = true&lt;br /&gt;         }&lt;br /&gt;       else&lt;br /&gt;         {&lt;br /&gt;         checked = false&lt;br /&gt;         }&lt;br /&gt;       for (var i =0; i &lt; aa.elements.length; i++)&lt;br /&gt;       {&lt;br /&gt;        aa.elements[i].checked = checked;&lt;br /&gt;       }&lt;br /&gt;     }&lt;br /&gt;/script&gt;&lt;br /&gt;&lt;br /&gt;form id ="frm1"&lt;br /&gt;input type="checkbox" name="chk1"&lt;br /&gt;input type="checkbox" name="chk2"&lt;br /&gt;/form&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-346866703688997149?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/346866703688997149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/select-all-check-box-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/346866703688997149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/346866703688997149'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/select-all-check-box-in-php.html' title='select all check box in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-433553831986612685</id><published>2010-10-01T11:40:00.000-07:00</published><updated>2010-10-01T11:41:09.613-07:00</updated><title type='text'>Check curl is on php</title><content type='html'>function Visit($url)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;$agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";$ch=curl_init();&lt;br /&gt;&lt;br /&gt;curl_setopt ($ch, CURLOPT_URL,$url );&lt;br /&gt;&lt;br /&gt;curl_setopt($ch, CURLOPT_USERAGENT, $agent);&lt;br /&gt;&lt;br /&gt;curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;&lt;br /&gt;curl_setopt ($ch,CURLOPT_VERBOSE,false);&lt;br /&gt;&lt;br /&gt;curl_setopt($ch, CURLOPT_TIMEOUT, 5);&lt;br /&gt;&lt;br /&gt;$page=curl_exec($ch);&lt;br /&gt;&lt;br /&gt;//echo curl_error($ch);&lt;br /&gt;&lt;br /&gt;$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);&lt;br /&gt;&lt;br /&gt;curl_close($ch);&lt;br /&gt;&lt;br /&gt;if($httpcode&gt;=200 &amp;&amp; $httpcode&lt;300) return true;&lt;br /&gt;&lt;br /&gt;else return false;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if(Visit("http://localhost"))&lt;br /&gt;&lt;br /&gt;          echo "Website OK"."n";&lt;br /&gt;&lt;br /&gt;     /*if site down*/&lt;br /&gt;&lt;br /&gt;    else&lt;br /&gt;&lt;br /&gt;         echo "Website DOWN";&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-433553831986612685?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/433553831986612685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/check-curl-is-on-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/433553831986612685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/433553831986612685'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2010/10/check-curl-is-on-php.html' title='Check curl is on php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-8022498542507581763</id><published>2009-12-07T19:57:00.000-08:00</published><updated>2009-12-07T20:00:29.853-08:00</updated><title type='text'>Downloading Files From MySQL Database</title><content type='html'>When we upload a file to database we also save the file type and length. These were not needed for uploading the files but is needed for downloading the files from the database.&lt;br /&gt;&lt;br /&gt;The download page list the file names stored in database. The names are printed as a url. The url would look like download.php?id=3.&lt;br /&gt;&lt;br /&gt;nclude 'library/config.php';&lt;br /&gt;include 'library/opendb.php';&lt;br /&gt;&lt;br /&gt;$query = "SELECT id, name FROM upload";&lt;br /&gt;$result = mysql_query($query) or die('Error, query failed');&lt;br /&gt;if(mysql_num_rows($result) == 0)&lt;br /&gt;{&lt;br /&gt;echo "Database is empty&lt;br /&gt;";&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;while(list($id, $name) = mysql_fetch_array($result))&lt;br /&gt;{&lt;br /&gt;?&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/download.php?id=%3C?php=$id;?%3E"&gt;&lt;/a&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;When you click the download link, the $_GET['id'] will be set. We can use this id to identify which files to get from the database. Below is the code for downloading files from MySQL Database.&lt;br /&gt;&lt;br /&gt;Example : &lt;br /&gt;if(isset($_GET['id']))&lt;br /&gt;{&lt;br /&gt;// if id is set then get the file with the id from database&lt;br /&gt;&lt;br /&gt;include 'library/config.php';&lt;br /&gt;include 'library/opendb.php';&lt;br /&gt;&lt;br /&gt;$id    = $_GET['id'];&lt;br /&gt;$query = "SELECT name, type, size, content " .&lt;br /&gt;        "FROM upload WHERE id = '$id'";&lt;br /&gt;&lt;br /&gt;$result = mysql_query($query) or die('Error, query failed');&lt;br /&gt;list($name, $type, $size, $content) =                                  mysql_fetch_array($result);&lt;br /&gt;&lt;br /&gt;header("Content-length: $size");&lt;br /&gt;header("Content-type: $type");&lt;br /&gt;header("Content-Disposition: attachment; filename=$name");&lt;br /&gt;echo $content;&lt;br /&gt;&lt;br /&gt;include 'library/closedb.php';&lt;br /&gt;exit;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Before sending the file content using &lt;span class="phpcode"&gt;echo&lt;/span&gt; first we need to set several headers. They are :&lt;/p&gt; &lt;ol&gt;&lt;li&gt;&lt;span class="phpcode"&gt;header("Content-length: $size")&lt;/span&gt;&lt;br /&gt;    This header tells the browser how large the file is. Some browser need it     to be able to download the file properly. Anyway it's a good manner telling     how big the file is. That way anyone who download the file can predict how     long the download will take.&lt;/li&gt;&lt;li&gt;&lt;span class="phpcode"&gt;header("Content-type: $type")&lt;/span&gt;&lt;br /&gt;    This header tells the browser what kind of file it tries to download.&lt;/li&gt;&lt;li&gt;&lt;span class="phpcode"&gt;header("Content-Disposition: attachment; filename=$name");&lt;/span&gt;&lt;br /&gt;    Tells the browser to save this downloaded file under the specified name.     If you don't send this header the browser will try to save the file using     the script's name (download.php).&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;After sending the file the script stops executing by calling&lt;span class="phpcode"&gt; exit&lt;/span&gt;. &lt;/p&gt; error---Cannot modify header information - headers already sent&lt;br /&gt;&lt;br /&gt;This error happens because some data was already sent before we send the header. As for the error message above it happens because i "accidentally" add one space right after the PHP closing tag ( ?&gt; )  in config.php file. So if you see this error message when you're sending a header just make sure you don't have any data sent before calling &lt;span class="phpcode"&gt;header()&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-8022498542507581763?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/8022498542507581763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/12/downloading-files-from-mysql-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/8022498542507581763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/8022498542507581763'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/12/downloading-files-from-mysql-database.html' title='Downloading Files From MySQL Database'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-1526788969110736673</id><published>2009-12-07T03:58:00.001-08:00</published><updated>2009-12-07T03:58:28.448-08:00</updated><title type='text'>upload phto</title><content type='html'>1. &lt;form name="photo" enctype="multipart/form-data" action="my_upload.php" method="post"&gt;&lt;br /&gt;  2. Photo&lt;br /&gt;  3. &lt;input name="image" size="30" type="file"&gt;&lt;br /&gt;  4. &lt;input name="upload" value="Upload" type="submit"&gt;&lt;br /&gt;  5. &lt;/form&gt;&lt;br /&gt;&lt;br /&gt;   $max_file)) {&lt;br /&gt;              $error= "ONLY jpeg images under 1MB are accepted for upload";&lt;br /&gt;         }&lt;br /&gt;     }else{&lt;br /&gt;          $error= "Select a jpeg image for upload";&lt;br /&gt;     }&lt;br /&gt;      //Everything is ok, so we can upload the image.&lt;br /&gt;    if (strlen($error)==0){&lt;br /&gt;&lt;br /&gt;         if (isset($_FILES["image"]["name"])){&lt;br /&gt;&lt;br /&gt;            move_uploaded_file($userfile_tmp, $large_image_location);&lt;br /&gt;             chmod ($large_image_location, 0777);&lt;br /&gt;&lt;br /&gt;              $width = getWidth($large_image_location);&lt;br /&gt;              $height = getHeight($large_image_location);&lt;br /&gt;              //Scale the image if it is greater than the width set above&lt;br /&gt;              if ($width &gt; $max_width){&lt;br /&gt;                 $scale = $max_width/$width;&lt;br /&gt;                  $uploaded = resizeImage($large_image_location,$width,$height,$scale);&lt;br /&gt;             }else{&lt;br /&gt;                  $scale = 1;&lt;br /&gt;                  $uploaded = resizeImage($large_image_location,$width,$height,$scale);&lt;br /&gt;              }&lt;br /&gt;              //Delete the thumbnail file so the user can create a new one&lt;br /&gt;             if (file_exists($thumb_image_location)) {&lt;br /&gt;                  unlink($thumb_image_location);&lt;br /&gt;             }&lt;br /&gt;          }&lt;br /&gt;          //Refresh the page to show the new uploaded image&lt;br /&gt;          header("location:".$_SERVER["PHP_SELF"]);&lt;br /&gt;        exit();&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/4725594047056449203-1526788969110736673?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/1526788969110736673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/12/upload-phto.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/1526788969110736673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/1526788969110736673'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/12/upload-phto.html' title='upload phto'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-2656519213372975277</id><published>2009-12-07T03:53:00.000-08:00</published><updated>2010-09-30T04:28:31.598-07:00</updated><title type='text'>Pagination in php</title><content type='html'>$sql = "SELECT COUNT(*) FROM users";&lt;br /&gt;$result = mysql_query($sql) OR die(mysql_error());&lt;br /&gt;$r = mysql_fetch_row($result);&lt;br /&gt;$numrows = $r[0];&lt;br /&gt;&lt;br /&gt;// number of rows to show per page&lt;br /&gt;$rowsperpage = 20;&lt;br /&gt;// find out total pages&lt;br /&gt;$totalpages = ceil($numrows / $rowsperpage);&lt;br /&gt;// get the current page or set a default&lt;br /&gt;if (isset($_GET['currentpage']) &amp;amp;&amp;amp; is_numeric($_GET['currentpage'])) {&lt;br /&gt;// cast var as int&lt;br /&gt;$currentpage = (int) $_GET['currentpage'];&lt;br /&gt;} else {&lt;br /&gt;// default page num&lt;br /&gt;$currentpage = 1;&lt;br /&gt;} // end if&lt;br /&gt;&lt;br /&gt;// if current page is greater than total pages...&lt;br /&gt;if ($currentpage &gt; $totalpages) {&lt;br /&gt;// set current page to last page&lt;br /&gt;$currentpage = $totalpages;&lt;br /&gt;} // end if&lt;br /&gt;// if current page is less than first page...&lt;br /&gt;if ($currentpage &lt; currentpage =" 1;" offset =" ($currentpage" term =" $_GET['artist'];" artist =" mysql_real_escape_string($_GET['artist']);" href="http://www.blogger.com/%5C%22admin.php%5C%22"&gt;Return to admin section!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;";&lt;br /&gt;&lt;br /&gt;echo "&lt;br /&gt;Uploads:&lt;br /&gt;";&lt;br /&gt;&lt;br /&gt;$sql = "SELECT * FROM users LIMIT $offset, $rowsperpage";&lt;br /&gt;echo "&lt;table border="1" width="1003px" height="100"&gt;";&lt;br /&gt;echo "&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;id&lt;/th&gt;";&lt;br /&gt;echo "&lt;th&gt;name&lt;/th&gt;";&lt;br /&gt;echo "&lt;th&gt;gender&lt;/th&gt;";&lt;br /&gt;echo "&lt;th&gt;dob&lt;/th&gt;";&lt;br /&gt;echo "&lt;th&gt;email&lt;/th&gt;";&lt;br /&gt;echo "&lt;th&gt;phone&lt;/th&gt;";&lt;br /&gt;echo "&lt;th&gt;username&lt;/th&gt;";&lt;br /&gt;echo "&lt;th&gt;status&lt;/th&gt;";&lt;br /&gt;echo "&lt;th&gt;delete&lt;/th&gt;";&lt;br /&gt;echo "&lt;th&gt;edit&lt;/th&gt;";&lt;br /&gt;$result=mysql_query($sql);&lt;br /&gt;while ($list = mysql_fetch_array($result))&lt;br /&gt;{&lt;br /&gt;echo "&lt;/tr&gt;&lt;tr&gt;";&lt;br /&gt;echo "&lt;td&gt;",$list['id'],"&lt;/td&gt;";&lt;br /&gt;echo "&lt;td&gt;",$list['name'],"&lt;/td&gt;";&lt;br /&gt;echo "&lt;td&gt;", $list['gender'],"&lt;/td&gt;";&lt;br /&gt;echo "&lt;td&gt;",$list['dob'],"&lt;/td&gt;";&lt;br /&gt;echo "&lt;td&gt;",$list['email'],"&lt;/td&gt;";&lt;br /&gt;echo "&lt;td&gt;",$list['phone'],"&lt;/td&gt;";&lt;br /&gt;echo "&lt;td&gt;",$list['username'],"&lt;/td&gt;";&lt;br /&gt;echo "&lt;td&gt;",$list['status'],"&lt;/td&gt;";&lt;br /&gt;echo "&lt;td&gt;", "&lt;a href="http://www.blogger.com/%5C%22admin_operation_user.php?op=deleteuser&amp;amp;id=%22,$list[%27id%27],%22%3C/td"&gt;";&lt;br /&gt;echo "&lt;/a&gt;&lt;/td&gt;&lt;td&gt;","\"&gt;Deleteuser","&lt;/td&gt;";&lt;br /&gt;echo "&lt;td&gt;", "&lt;a href="http://www.blogger.com/%5C%22admin_operation_user.php?op=update&amp;amp;id=%22,$list[%27id%27],%22%3C/td"&gt;";&lt;br /&gt;echo "&lt;/a&gt;&lt;/td&gt;&lt;td&gt;","\"&gt;updatestatus&lt;br /&gt;","&lt;/td&gt;";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;echo "&lt;/tr&gt;";&lt;br /&gt;echo "&lt;/tbody&gt;&lt;/table&gt;";&lt;br /&gt;echo " &lt;center&gt;&lt;br /&gt;";&lt;br /&gt;$range = 3;&lt;br /&gt;&lt;br /&gt;// if not on page 1, don't show back links&lt;br /&gt;if ($currentpage &gt; 1) {&lt;br /&gt;// show &lt;&lt; href="http://www.blogger.com/%7B$_SERVER%5B" php_self="" currentpage="1'"&gt;&lt;&lt; ";  // get previous page num  $prevpage = $currentpage - 1;  // show &lt; href="http://www.blogger.com/%7B$_SERVER%5B" php_self="" currentpage="$prevpage'"&gt;&lt; "; } // end if  // loop to show links to range of pages around current page for ($x = ($currentpage - $range); $x &lt; (($currentpage + $range) + 1); $x++) {    // if it's a valid page number...    if (($x &gt; 0) &amp;amp;&amp;amp; ($x &lt;= $totalpages)) {       // if we're on current page...       if ($x == $currentpage) {          // 'highlight' it but don't make a link          echo " [&lt;b&gt;$x&lt;/b&gt;] ";&lt;br /&gt;  // if not current page...&lt;br /&gt;  } else {&lt;br /&gt;     // make it a link&lt;br /&gt;     echo " &lt;a href="http://www.blogger.com/%7B$_SERVER%5B" php_self="" currentpage="$x'"&gt;$x&lt;/a&gt; ";&lt;br /&gt;  } // end else&lt;br /&gt;} // end if&lt;br /&gt;} // end for&lt;br /&gt;&lt;br /&gt;// if not on last page, show forward and last page links&lt;br /&gt;if ($currentpage != $totalpages) {&lt;br /&gt;// get next page&lt;br /&gt;$nextpage = $currentpage + 1;&lt;br /&gt;// echo forward link for next page&lt;br /&gt;echo "  &lt;a href="http://www.blogger.com/%7B$_SERVER%5B" php_self="" currentpage="$nextpage'"&gt;NEXT PAGE  &lt;/a&gt; ";&lt;br /&gt;// echo forward link for lastpage&lt;br /&gt;echo " a href="http://www.blogger.com/%7B$_SERVER%5B" php_self="" currentpage="$totalpages'"&gt; LAST PAGE &lt;/a&gt; ";&lt;br /&gt;} // end if&lt;br /&gt;echo "&lt;/center&gt;";&lt;br /&gt;&lt;br /&gt;email me to get the code of this coding&lt;br /&gt;&lt;br /&gt;rawatsingharun@gmail.com&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/4725594047056449203-2656519213372975277?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/2656519213372975277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/12/next-page-in-php-to-show-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/2656519213372975277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/2656519213372975277'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/12/next-page-in-php-to-show-data.html' title='Pagination in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-1264240758766866289</id><published>2009-11-20T17:40:00.001-08:00</published><updated>2009-11-20T17:40:41.971-08:00</updated><title type='text'>php flash upload</title><content type='html'>Adding file upload functionality to an application&lt;br /&gt;&lt;br /&gt;The following procedure shows you how to build an application that lets you upload image files to a server. The application lets users select an image on their hard disks to upload and then send it to a server. The image that they upload then appears in the SWF file that they used to upload the image.&lt;br /&gt;&lt;br /&gt;Following the example that builds the Flash application is an example that details the server-side code. Remember that image files are restricted in size: you can only upload images that are 200K or smaller.&lt;br /&gt;To build a FLA application using the FileReference API:&lt;br /&gt;&lt;br /&gt;  1. Create a new Flash document and save it as fileref.fla.&lt;br /&gt;  2. Open the Components panel, and then drag a ScrollPane component onto the Stage and give it an instance name of imagePane. (The ScrollPane instance is sized and repositioned using ActionScript in a later step.)&lt;br /&gt;  3. Drag a Button component onto the Stage and give it an instance name of uploadBtn.&lt;br /&gt;  4. Drag two Label components onto the Stage and give them instance names of imageLbl and statusLbl.&lt;br /&gt;  5. Drag a ComboBox component onto the Stage and give it an instance name of imagesCb.&lt;br /&gt;  6. Drag a TextArea component onto the Stage and give it an instance name of statusArea.&lt;br /&gt;  7. Create a new movie clip symbol on the Stage, and open the symbol for editing (double-click the instance to open it in symbol-editing mode).&lt;br /&gt;  8. Create a new static text field inside the movie clip, and then add the following text:&lt;br /&gt;&lt;br /&gt;     The file that you have tried to download is not on the server.&lt;br /&gt;&lt;br /&gt;     In the final application, this warning might appear for one of the following reasons, among others:&lt;br /&gt;         * The image was deleted from the queue on the server as other images were uploaded.&lt;br /&gt;         * The server did not copy the image because the file size exceeded 200K.&lt;br /&gt;         * The type of file was not a valid JPEG, GIF, or PNG file.&lt;br /&gt;&lt;br /&gt;           NOTE&lt;br /&gt;            &lt;br /&gt;&lt;br /&gt;           &lt;br /&gt;            &lt;br /&gt;&lt;br /&gt;           The width of the text field should be less than the width of the ScrollPane instance (400 pixels); otherwise users have to scroll horizontally to view the error message&lt;br /&gt;  9. Right-click the symbol in the Library and select Linkage from the context menu.&lt;br /&gt; 10. Select the Export for ActionScript and Export in First Frame check boxes, and type Message into the Identifier text box. Click OK.&lt;br /&gt; 11. Add the following ActionScript to Frame 1 of the Timeline:&lt;br /&gt;&lt;br /&gt;     NOTE&lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;     &lt;br /&gt;      &lt;br /&gt;&lt;br /&gt;     The code comments include details about the functionality. A code overview follows this example.&lt;br /&gt;&lt;br /&gt;     import flash.net.FileReference;&lt;br /&gt;&lt;br /&gt;     imagePane.setSize(400, 350);&lt;br /&gt;     imagePane.move(75, 25);&lt;br /&gt;     uploadBtn.move(75, 390);&lt;br /&gt;     uploadBtn.label = "Upload Image";&lt;br /&gt;     imageLbl.move(75, 430);&lt;br /&gt;     imageLbl.text = "Select Image";&lt;br /&gt;     statusLbl.move(210, 390);&lt;br /&gt;     statusLbl.text = "Status";&lt;br /&gt;     imagesCb.move(75, 450);&lt;br /&gt;     statusArea.setSize(250, 100);&lt;br /&gt;     statusArea.move(210, 410);&lt;br /&gt;&lt;br /&gt;     /* The listener object listens for FileReference events. */&lt;br /&gt;     var listener:Object = new Object();&lt;br /&gt;&lt;br /&gt;     /* When the user selects a file, the onSelect() method is called, and passed a reference to the FileReference object. */&lt;br /&gt;     listener.onSelect = function(selectedFile:FileReference):Void {&lt;br /&gt;         /* Update the TextArea to notify the user that Flash is attempting to upload the image. */&lt;br /&gt;         statusArea.text += "Attempting to upload " + selectedFile.name + "\n";&lt;br /&gt;         /* Upload the file to the PHP script on the server. */&lt;br /&gt;         selectedFile.upload("http://www.helpexamples.com/flash/file_io/uploadFile.php");&lt;br /&gt;     };&lt;br /&gt;&lt;br /&gt;     /* When the file begins to upload, the onOpen() method is called, so notify the user that the file is starting to upload. */&lt;br /&gt;     listener.onOpen = function(selectedFile:FileReference):Void {&lt;br /&gt;         statusArea.text += "Opening " + selectedFile.name + "\n";&lt;br /&gt;     };&lt;br /&gt;&lt;br /&gt;     /* When the file has uploaded, the onComplete() method is called. */&lt;br /&gt;     listener.onComplete = function(selectedFile:FileReference):Void {&lt;br /&gt;         /* Notify the user that Flash is starting to download the image. */&lt;br /&gt;         statusArea.text += "Downloading " + selectedFile.name + " to player\n";&lt;br /&gt;         /* Add the image to the ComboBox component. */&lt;br /&gt;         imagesCb.addItem(selectedFile.name);&lt;br /&gt;         /* Set the selected index of the ComboBox to that of the most recently added image. */&lt;br /&gt;         imagesCb.selectedIndex = imagesCb.length - 1;&lt;br /&gt;         /* Call the custom downloadImage() function. */&lt;br /&gt;         downloadImage();&lt;br /&gt;     };&lt;br /&gt;&lt;br /&gt;     var imageFile:FileReference = new FileReference();&lt;br /&gt;     imageFile.addListener(listener);&lt;br /&gt;&lt;br /&gt;     imagePane.addEventListener("complete", imageDownloaded);&lt;br /&gt;     imagesCb.addEventListener("change", downloadImage);&lt;br /&gt;     uploadBtn.addEventListener("click", uploadImage);&lt;br /&gt;&lt;br /&gt;     /* If the image does not download, the event object's total property will equal -1. In that case, display a message to the user. */&lt;br /&gt;     function imageDownloaded(event:Object):Void {&lt;br /&gt;         if (event.total == -1) {&lt;br /&gt;             imagePane.contentPath = "Message";&lt;br /&gt;         }&lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt;     /* When the user selects an image from the ComboBox, or when the downloadImage() function is called directly from the listener.onComplete() method, the downloadImage() function sets the contentPath of the ScrollPane in order to start downloading the image to the player. */&lt;br /&gt;     function downloadImage(event:Object):Void {&lt;br /&gt;         imagePane.contentPath = "http://www.helpexamples.com/flash/file_io/images/" + imagesCb.value;&lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt;     /* When the user clicks the button, Flash calls the uploadImage() function, and it opens a file browser dialog box. */&lt;br /&gt;     function uploadImage(event:Object):Void {&lt;br /&gt;         imageFile.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png"}]);&lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt;     This ActionScript code first imports the FileReference class and initializes, positions, and resizes each of the components on the Stage. Next, a listener object is defined, and three event handlers are defined: onSelect, onOpen, and onComplete. The listener object is then added to a new FileReference object named imageFile. Next, event listeners are added to the imagePane ScrollPane instance, imagesCb ComboBox instance, and uploadBtn Button instance. Each of the event listener functions is defined in the code that follows this section of code.&lt;br /&gt;&lt;br /&gt;     The first function, imageDownloaded(), checks to see if the amount of total bytes for the downloaded images is -1, and if so, it sets the contentPath for the ScrollPane instance to the movie clip with the linkage identifier of Message, which you created in a previous step. The second function, downloadImage(), attempts to download the recently uploaded image into the ScrollPane instance. When the image has downloaded, the imageDownloaded() function defined earlier is triggered and checks to see whether the image successfully downloaded. The final function, uploadImage(), opens a file browser dialog box, which filters all JPEG, GIF, and PNG images.&lt;br /&gt; 12. Save your changes to the document.&lt;br /&gt; 13. Select File &gt; Publish settings and then select the Formats tab, and make sure that Flash and HTML are both selected.&lt;br /&gt; 14. (Optional) In the Publish Settings dialog box, select the Flash tab, and then select Access Network Only from the Local Playback Security pop-up menu.&lt;br /&gt;&lt;br /&gt;     If you complete this step, you won't run into security restrictions if you test your document in a local browser.&lt;br /&gt; 15. In the Publish Settings dialog box, click Publish to create the HTML and SWF files.&lt;br /&gt;&lt;br /&gt;     When you're finished, go on to the next procedure, in which you create the container for the SWF file.&lt;br /&gt;&lt;br /&gt;For a sample source file for this example, FileUpload.fla, see the Flash Samples page at www.adobe.com/go/learn_fl_samples. Download the Samples zip file and navigate to the ActionScript2.0/FileUpload folder to access this sample.&lt;br /&gt;&lt;br /&gt;The following procedure requires that PHP is installed on your web server and that you have write permissions to subfolders named images and temporary. You need to first complete the previous procedure, or use the finished SWF file available in the previously noted folders.&lt;br /&gt;To create a server-side script for the image upload application:&lt;br /&gt;&lt;br /&gt;  1. Create a new PHP document using a text editor such as Dreamweaver or Notepad.&lt;br /&gt;  2. Add the following PHP code to the document. (A code overview follows this script.)&lt;br /&gt;&lt;br /&gt;      $MAXIMUM_FILE_COUNT) {&lt;br /&gt;       $files_to_delete = array_splice($files, 0, count($files) - $MAXIMUM_FILE_COUNT);&lt;br /&gt;       for ($i = 0; $i &lt;&gt;&lt;br /&gt;&lt;br /&gt;     This PHP code first defines two constant variables: $MAXIMUM_FILESIZE and $MAXIMUM_FILE_COUNT. These variables dictate the maximum size (in kilobytes) of an image being uploaded to the server (200KB), as well as how many recently uploaded files can be kept in the images folder (10). If the file size of the image currently being uploaded is less than or equal to the value of $MAXIMUM_FILESIZE, the image is moved to the temporary folder.&lt;br /&gt;&lt;br /&gt;     Next, the file type of the uploaded file is checked to ensure that the image is a JPEG, GIF, or PNG. If the image is a compatible image type, the image is copied from the temporary folder to the images folder. If the uploaded file wasn't one of the allowed image types, it is deleted from the file system.&lt;br /&gt;&lt;br /&gt;     Next, a directory listing of the image folder is created and looped over using a while loop. Each file in the images folder is added to an array and then sorted. If the current number of files in the images folder is greater than the value of $MAXIMUM_FILE_COUNT, files are deleted until there are only $MAXIMUM_FILE_COUNT images remaining. This prevents the images folder from growing to an unmanageable size, as there can be only 10 images in the folder at one time, and each image can only be 200KB or smaller (or roughly 2 MB of images at any time).&lt;br /&gt;  3. Save your changes to the PHP document.&lt;br /&gt;  4. Upload the SWF, HTML, and PHP files to your web server.&lt;br /&gt;  5. View the remote HTML document in a web browser, and click the Upload Image button in the SWF file.&lt;br /&gt;  6. Locate an image file on your hard disk and select Open from the dialog box.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-1264240758766866289?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/1264240758766866289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/11/php-flash-upload.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/1264240758766866289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/1264240758766866289'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/11/php-flash-upload.html' title='php flash upload'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-4357807642841358410</id><published>2009-11-20T17:34:00.000-08:00</published><updated>2009-11-20T17:37:59.045-08:00</updated><title type='text'>php upload with flash</title><content type='html'>create a blank flash document in flash cs4.&lt;br /&gt;&lt;br /&gt;2) create a folder named with “flexScript” and copy and paste the below code to a new actionscript file and save the file into “flexScript” folder with the name “uploadImage”.&lt;br /&gt;&lt;br /&gt;3) put a button component on the stage and put a instance name as “upload_Image”;&lt;br /&gt;&lt;br /&gt;4) set the document class as “flexScript.uploadImage”; and run the application and check the magic;&lt;br /&gt;view source&lt;br /&gt;print?&lt;br /&gt;01 package flexScript {&lt;br /&gt;02     import flash.display.Sprite;&lt;br /&gt;03     import flash.events.MouseEvent;&lt;br /&gt;04     import flash.net.*;&lt;br /&gt;05     import flash.display.*;&lt;br /&gt;06     import flash.events.*;&lt;br /&gt;07     import flash.utils.ByteArray;&lt;br /&gt;08  &lt;br /&gt;09     public class uploadImage extends Sprite {&lt;br /&gt;10         private var jagFileRefSave:FileReference = new FileReference();&lt;br /&gt;11         private var loader:Loader = new Loader();&lt;br /&gt;12         private var imagesFilter:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png");&lt;br /&gt;13  &lt;br /&gt;14     public function uploadImage(){&lt;br /&gt;15         super();&lt;br /&gt;16         upload_Image.addEventListener(MouseEvent.CLICK,onClickSave);&lt;br /&gt;17  &lt;br /&gt;18     }&lt;br /&gt;19     private function onClickSave(e:MouseEvent):void{    &lt;br /&gt;20         jagFileRefSave.browse([imagesFilter]);&lt;br /&gt;21         jagFileRefSave.addEventListener(Event.SELECT, selectedFile);&lt;br /&gt;22     }        &lt;br /&gt;23     private function selectedFile(e:Event):void{&lt;br /&gt;24         jagFileRefSave.load();&lt;br /&gt;25         jagFileRefSave.addEventListener(Event.COMPLETE, loaded);&lt;br /&gt;26     }&lt;br /&gt;27     private function loaded(e:Event):void{&lt;br /&gt;28         var rawBytes:ByteArray = jagFileRefSave.data;&lt;br /&gt;29         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, getBitmapData)&lt;br /&gt;30         loader.loadBytes(rawBytes);&lt;br /&gt;31     }&lt;br /&gt;32     private function getBitmapData(e:Event):void{&lt;br /&gt;33         addChild(loader);&lt;br /&gt;34     }&lt;br /&gt;35  &lt;br /&gt;36     }&lt;br /&gt;37 }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-4357807642841358410?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/4357807642841358410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/11/php-upload-with-flash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/4357807642841358410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/4357807642841358410'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/11/php-upload-with-flash.html' title='php upload with flash'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-2552393495530338199</id><published>2009-07-22T20:06:00.000-07:00</published><updated>2009-07-22T20:08:10.051-07:00</updated><title type='text'>how to check data in php</title><content type='html'>function showwelcome()&lt;br /&gt;{&lt;br /&gt;echo "&lt;form method=post&gt;";&lt;br /&gt;echo "&lt;input type=text name=name &gt;";&lt;br /&gt;echo "&lt;input type=submit value=submit&gt;";&lt;br /&gt;echo "&lt;input type=hidden value=hidden name=welcomeseen&gt;";&lt;br /&gt;echo "&lt;/form&gt;";&lt;br /&gt;}&lt;br /&gt;function checkdata()&lt;br /&gt;{&lt;br /&gt;global $error_array;&lt;br /&gt;if($_POST['name']=="")&lt;br /&gt;{&lt;br /&gt;$error_array[]="&lt;font color=red&gt;plz entr something&lt;/font&gt;";&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;function showerror()&lt;br /&gt;{&lt;br /&gt;global $error_array;&lt;br /&gt;foreach($error_array as $key)&lt;br /&gt;{&lt;br /&gt;echo $key;&lt;br /&gt;}}&lt;br /&gt;function handledata()&lt;br /&gt;{&lt;br /&gt;echo $_POST['name'];&lt;br /&gt;}&lt;br /&gt;$error_array=array();&lt;br /&gt;if(isset($_POST["welcomeseen"]))&lt;br /&gt;{&lt;br /&gt;checkdata();&lt;br /&gt;if(count($error_array)!=0)&lt;br /&gt;{&lt;br /&gt;showerror();&lt;br /&gt;showwelcome();&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;handledata();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;showwelcome();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-2552393495530338199?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/2552393495530338199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/how-to-check-data-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/2552393495530338199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/2552393495530338199'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/how-to-check-data-in-php.html' title='how to check data in php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-6339027898897095139</id><published>2009-07-20T05:14:00.000-07:00</published><updated>2009-07-20T05:14:59.238-07:00</updated><title type='text'>date difference</title><content type='html'>&lt;?php&lt;br /&gt; function dateDiff($dformat, $endDate, $beginDate)&lt;br /&gt; {&lt;br /&gt;  $date_parts1=explode($dformat, $beginDate);&lt;br /&gt; $date_parts2=explode($dformat, $endDate);&lt;br /&gt;  $start_date=gregoriantojd($date_parts1[0], $date_parts1[1], $date_parts1[2]);&lt;br /&gt;     $end_date=gregoriantojd($date_parts2[0], $date_parts2[1], $date_parts2[2]);&lt;br /&gt;      return $end_date - $start_date;&lt;br /&gt;&lt;br /&gt;     }&lt;br /&gt;     $date1="07/11/2003";&lt;br /&gt;     $date2="09/04/2004";&lt;br /&gt;&lt;br /&gt;     $dob="08/12/1975";&lt;br /&gt;     echo "If you were born on " . $dob . ", then today your age is approximately " . round(dateDiff("/", date("m/d/Y", time()), $dob)/365, 0) . " years.";&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-6339027898897095139?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/6339027898897095139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/date-difference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/6339027898897095139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/6339027898897095139'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/date-difference.html' title='date difference'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-379120832798095323</id><published>2009-07-20T04:33:00.000-07:00</published><updated>2009-07-20T04:35:41.682-07:00</updated><title type='text'>how to enter phto in mysql using php</title><content type='html'>input type="hidden" name="MAX_FILE_SIZE" value="2000000&lt;br /&gt;input name="userfile" type="file" id="userfile&lt;br /&gt;input name="upload" type="submit" class="box" id="upload" value=" Upload&lt;br /&gt;&lt;p&gt;&lt;span style="color:#ff6666;"&gt;&lt;br /&gt;&lt;form method="post" enctype="multipart/form-data"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff6666;"&gt;&lt;table width="350" border="0" cellpadding="1" cellspacing="1" class="box"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff6666;"&gt;&lt;tr&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff6666;"&gt;&lt;br /&gt;&lt;td width="246"&gt;&lt;br /&gt;&lt;input type="hidden" name="MAX_FILE_SIZE" value="2000000"&gt;&lt;br /&gt;&lt;input name="userfile" type="file" id="userfile"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td width="80"&gt;&lt;br /&gt;&lt;input name="upload" type="submit" class="box" id="upload" value=" Upload "&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/form&gt;&lt;br /&gt;&lt;?php$con=mysql_connect("localhost","root",123);&lt;br /&gt;if(!$con)&lt;br /&gt;{&lt;br /&gt;die("conection failed".mysql_error());&lt;br /&gt;}&lt;br /&gt;$sql=mysql_select_db("photo",$con);if(!$sql){die("database failed".mysql_error());}&lt;br /&gt;$uploadDir = 'C:/webroot/upload/';&lt;br /&gt;if(isset($_POST['upload']))&lt;br /&gt;{&lt;br /&gt;$fileName = $_FILES['userfile']['name'];&lt;br /&gt;$tmpName = $_FILES['userfile']['tmp_name'];&lt;br /&gt;$fileSize = $_FILES['userfile']['size'];&lt;br /&gt;$fileType = $_FILES['userfile']['type'];&lt;br /&gt;$filePath = $uploadDir . $fileName;&lt;br /&gt;$result = move_uploaded_file($tmpName, $filePath);&lt;br /&gt;if (!$result)&lt;br /&gt; {&lt;br /&gt;echo "Error uploading file";exit;}&lt;br /&gt;&lt;br /&gt;if(!get_magic_quotes_gpc())&lt;br /&gt;{$fileName = addslashes($fileName);&lt;br /&gt;$filePath = addslashes($filePath);}&lt;br /&gt;$query = "INSERT INTO upload2 (name, size, type, path ) "."VALUES ('$fileName', '$fileSize', '$fileType', '$filePath')";&lt;br /&gt;mysql_query($query) or die('Error, query failed : ' . mysql_error());&lt;br /&gt;mysql_close($con);&lt;br /&gt;echo "&lt;br /&gt;Files uploaded&lt;br /&gt;";&lt;br /&gt;}?&gt;&lt;br /&gt;&lt;br /&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/4725594047056449203-379120832798095323?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/379120832798095323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/how-to-enter-phto-in-mysql-using-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/379120832798095323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/379120832798095323'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/how-to-enter-phto-in-mysql-using-php.html' title='how to enter phto in mysql using php'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-7633682400160733738</id><published>2009-07-11T20:39:00.000-07:00</published><updated>2009-07-11T20:51:26.243-07:00</updated><title type='text'>php6-control structure</title><content type='html'>&lt;b&gt;Control Structures&lt;/b&gt;&lt;br /&gt;divided into two groups: &lt;b&gt;conditional control structures and loop control structures&lt;/b&gt;. The conditional control structures affect the flow of the program and execute or skip certain code according to certain criteria, whereas loop control structures execute certain code an arbitrary number of times according to specified criteria&lt;br /&gt;&lt;b&gt;A.&lt;/b&gt;&lt;b&gt;Conditional Control Structures&lt;/b&gt;&lt;br /&gt;Conditional control structures are crucial in allowing your program to take different execution paths based on decisions it makes at runtime. PHP supports both the if and switch conditional control structures.&lt;br /&gt;1.&lt;b&gt;if statement&lt;/b&gt;&lt;br /&gt;The PHP if statement tests to see if a value is true, and if it is a segment of code will be executed. &lt;br /&gt;&lt;?&lt;br /&gt;$my_name = "someguy";&lt;br /&gt;if ( $my_name == "someguy" ) &lt;br /&gt;{&lt;br /&gt;statement1;//the coding appear here &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;2.&lt;b&gt;if..else&lt;/b&gt;&lt;br /&gt;if &lt;b&gt;if&lt;/b&gt; part is correct than statement1 execute else statement2 will execute.&lt;br /&gt;&lt;?&lt;br /&gt;$number_three = 3;&lt;br /&gt;if ( $number_three == 3 ) {&lt;br /&gt; statement1;&lt;br /&gt;}&lt;br /&gt; else &lt;br /&gt;{&lt;br /&gt; statement2;&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;3.&lt;b&gt;if...elseif&lt;/b&gt;&lt;br /&gt;When PHP evaluates your If...elseif...else statement it will first see if the If statement is true. If that tests comes out false it will then check the first elseif statement. If that is false it will either check the next elseif statement, or if there are no more elseif statements, it will evaluate the else segment, if one exists &lt;br /&gt;&lt;?&lt;br /&gt;$employee = "Bob";&lt;br /&gt;if($employee == "Ms. Tanner")&lt;br /&gt;{&lt;br /&gt; echo "Hello Ma'am";&lt;br /&gt;}&lt;br /&gt; elseif($employee == "Bob")&lt;br /&gt;{&lt;br /&gt; echo "Good Morning Sir!";&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt; {&lt;br /&gt; echo "Morning";&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;4.&lt;b&gt;switch&lt;/b&gt;&lt;br /&gt;The way the Switch statement works is it takes a single variable as input and then checks it against all the different cases you set up for that switch statement. Instead of having to check that variable one at a time, as it goes through a bunch of If Statements, the Switch statement only has to check one time.&lt;br /&gt;&lt;?&lt;br /&gt;$destination = "New York";&lt;br /&gt;echo "Traveling to $destination&lt;br /&gt;";&lt;br /&gt;switch ($destination){&lt;br /&gt; case "Las Vegas":&lt;br /&gt;  echo "Bring an extra $500";&lt;br /&gt;  break;&lt;br /&gt; case "Amsterdam":&lt;br /&gt;  echo "Bring an open mind";&lt;br /&gt;  break;&lt;br /&gt; case "Egypt":&lt;br /&gt;  echo "Bring 15 bottles of SPF 50 Sunscreen";&lt;br /&gt;  break; &lt;br /&gt; case "Tokyo":&lt;br /&gt;  echo "Bring lots of money";&lt;br /&gt;  break; &lt;br /&gt; case "Caribbean Islands":&lt;br /&gt;  echo "Bring a swimsuit";&lt;br /&gt;  break;  &lt;br /&gt; default:&lt;br /&gt;  echo "Bring lots of underwear!";&lt;br /&gt;  break;&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-7633682400160733738?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/7633682400160733738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/php6-control-structure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/7633682400160733738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/7633682400160733738'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/php6-control-structure.html' title='php6-control structure'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-4794119901865037641</id><published>2009-07-11T20:24:00.000-07:00</published><updated>2009-07-11T20:38:51.901-07:00</updated><title type='text'>php5-operator</title><content type='html'>&lt;b&gt;arithmetic operator&lt;/b&gt;&lt;br /&gt;+ Addition 2 + 4=6 &lt;br /&gt;- Subtraction 6 - 2=4 &lt;br /&gt;* Multiplication 5 * 3=15 &lt;br /&gt;/ Division 15 / 3 =5&lt;br /&gt;% Modulus 43 % 10 =3(show the remainder)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1.Assignment Operators&lt;/b&gt;&lt;br /&gt;operators:-&lt;br /&gt;+=, -=, *=, /=, %=, ^=, .=,  &amp;=, |=, &lt;&lt;=, &gt;&gt;=&lt;br /&gt;For example:&lt;br /&gt;$counter += 2;      // This is identical to $counter = $counter + 2;&lt;br /&gt;$offset *= $counter;// This is identical to $offset = $offset * $counter;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2.Comparison Operators&lt;/b&gt;&lt;br /&gt;Comparison operators enable you to determine the relationship between two operands&lt;br /&gt;== Equal to&lt;br /&gt; Checks for equality between two arguments performing type conversion when necessary:&lt;br /&gt;1 == "1" results in true&lt;br /&gt;1 == 1 results in true&lt;br /&gt; &lt;br /&gt;!= Not equal to&lt;br /&gt; Inverse of ==.&lt;br /&gt; &gt; Greater than&lt;br /&gt; Checks if first operand is greater than second&lt;br /&gt; &lt; Smaller than&lt;br /&gt; Checks if first operand is smaller than second&lt;br /&gt; &gt;= Greater than or equal to&lt;br /&gt; Checks if first operand is greater or equal to second&lt;br /&gt; &lt;= Smaller than or equal to&lt;br /&gt; Checks if first operand is smaller or equal to second&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3.Logical Operators&lt;/b&gt;&lt;br /&gt;Logical operators first convert their operands to boolean values and then perform the respective comparison.&lt;br /&gt;Operator &lt;br /&gt;&lt;b&gt;&amp;&amp;&lt;/b&gt;, and&lt;br /&gt; The result of the logical AND operation between the two operands&lt;br /&gt;&lt;br /&gt;&lt;b&gt;||&lt;/b&gt;, or&lt;br /&gt; if the condition with of any operand is true than result is true&lt;br /&gt;ex-&lt;?&lt;br /&gt;$a=45;&lt;br /&gt;if(a&gt;30||a&lt;50)&lt;br /&gt;echo "arunrawat-web.blogspot.com";&lt;br /&gt;//this print the arunrawat-web.blogspot.com&lt;br /&gt;?&gt;&lt;br /&gt;&lt;b&gt;Xor&lt;/b&gt;, Logical XOR&lt;br /&gt; The result of the logical XOR operation between the two operands&lt;br /&gt;&lt;br /&gt;&lt;b&gt;increment/decrement operator&lt;/b&gt;&lt;br /&gt;&lt;b&gt;$var++&lt;/b&gt;, Post-increment&lt;br /&gt; $var is incremented by 1.&lt;br /&gt; The previous value of $var.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;++$var&lt;/b&gt;, Pre-increment&lt;br /&gt; $var is incremented by 1.&lt;br /&gt; The new value of $var (incremented by 1).&lt;br /&gt; &lt;br /&gt;&lt;b&gt;$var--&lt;/b&gt;&lt;br /&gt; Post-decrement&lt;br /&gt; $var is decremented by 1.&lt;br /&gt; The previous value of $var.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;--$var&lt;/b&gt;, Pre-decrement&lt;br /&gt; $var is decremented by 1.&lt;br /&gt; The new value of $var (decremented by 1).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-4794119901865037641?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/4794119901865037641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/php5-operator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/4794119901865037641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/4794119901865037641'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/php5-operator.html' title='php5-operator'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-7093775634209028096</id><published>2009-07-11T20:20:00.000-07:00</published><updated>2009-07-11T20:22:23.697-07:00</updated><title type='text'>php4-managing varibles</title><content type='html'>&lt;b&gt;Managing Variables&lt;/b&gt;&lt;br /&gt;Three language constructs are used to manage variables. They enable you to check if certain variables exist, remove variables, and check variables' truth values.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1.isset()&lt;/b&gt;&lt;br /&gt;isset() determines whether a certain variable has already been declared by PHP. It returns a boolean value true if the variable has already been set, and false otherwise, or if the variable is set to the value NULL. Consider the following script:&lt;br /&gt;&lt;br /&gt;if (isset($first_name)) {&lt;br /&gt;    print '$first_name is set';&lt;br /&gt;}&lt;br /&gt;This code snippet checks whether the variable $first_name is defined. If $first_name is defined, isset() returns true, which will display '$first_name is set.' If it isn't, no output is generated.&lt;br /&gt;&lt;br /&gt;isset() can also be used on array elements (discussed in a later section) and object properties. Here are examples for the relevant syntax, which you can refer to later:&lt;br /&gt;&lt;br /&gt;Checking an array element:&lt;br /&gt;&lt;br /&gt;if (isset($arr["offset"])) {&lt;br /&gt;    ...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Checking an object property:&lt;br /&gt;&lt;br /&gt;if (isset($obj-&gt;property)) {&lt;br /&gt;    ...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note that in both examples, we didn't check if $arr or $obj are set (before we checked the offset or property, respectively). The isset() construct returns false automatically if they are not set.&lt;br /&gt;&lt;br /&gt;isset() is the only one of the three language constructs that accepts an arbitrary amount of parameters. Its accurate prototype is as follows:&lt;br /&gt;&lt;br /&gt;isset($var1, $var2, $var3, ...);&lt;br /&gt;&lt;br /&gt;It only returns TRue if all the variables have been defined; otherwise, it returns false. This is useful when you want to check if the required input variables for your script have really been sent by the client, saving you a series of single isset() checks.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. unset()&lt;/b&gt;&lt;br /&gt;unset() "undeclares" a previously set variable, and frees any memory that was used by it if no other variable references its value. A call to isset() on a variable that has been unset() returns false.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;$name = "John Doe";&lt;br /&gt;unset($name);&lt;br /&gt;if (isset($name)) {&lt;br /&gt;    print '$name is set';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This example will not generate any output, because isset() returns false.&lt;br /&gt;&lt;br /&gt;unset() can also be used on array elements and object properties similar to isset().&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3.empty()&lt;/b&gt;&lt;br /&gt;empty() may be used to check if a variable has not been declared or its value is false. This language construct is usually used to check if a form variable has not been sent or does not contain data. When checking a variable's truth value, its value is first converted to a Boolean according to the rules in the following section, and then it is checked for TRue/false.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;if (empty($name)) {&lt;br /&gt;    print 'Error: Forgot to specify a value for $name';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This code prints an error message if $name doesn't contain a value that evaluates to true&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-7093775634209028096?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/7093775634209028096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/php4-managing-varibles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/7093775634209028096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/7093775634209028096'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/php4-managing-varibles.html' title='php4-managing varibles'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-7180621591093921902</id><published>2009-07-11T20:14:00.000-07:00</published><updated>2009-07-11T20:24:14.148-07:00</updated><title type='text'>php3-variables</title><content type='html'>&lt;b&gt;variables in php&lt;/b&gt;&lt;br /&gt;it is very easy to declare variables in php because there is no need to declare their type like in java or c.&lt;br /&gt;$ sign is used in the front of the variable .&lt;br /&gt;$a is the variable&lt;br /&gt;&lt;br /&gt;&lt;b&gt;There are a few rules that you need to follow when choosing a name for your PHP variables.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;•PHP variables must start with a letter or underscore "_". &lt;br /&gt;•PHP variables may only be comprised of alpha-numeric characters and underscores. a-z, A-Z, 0-9, or _ .&lt;br /&gt;•Variables with more than one word should be separated with underscores. $my_variable&lt;br /&gt;•Variables with more than one word can also be distinguished with capitalization. $myVariable&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Indirect References to Variables&lt;/b&gt;&lt;br /&gt;An extremely useful feature of PHP is that you can access variables by using indirect references, or to put it simply, you can create and access variables by name at runtime.&lt;br /&gt;&lt;br /&gt;Consider the following example:&lt;br /&gt;&lt;br /&gt;$name = "John";&lt;br /&gt;$$name = "Registered user";&lt;br /&gt;print $John;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This code results in the printing of "Registered user."&lt;br /&gt;&lt;br /&gt;The bold line uses an additional $ to access the variable with name specified by the value of $name ("John") and changing its value to "Registered user". Therefore, a variable called $John is created.&lt;br /&gt;&lt;br /&gt;You can use as many levels of indirections as you want by adding additional $ signs in front of a variable&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Superglobals&lt;br /&gt;As a general rule, PHP does not support global variables (variables that can automatically be accessed from any scope). However, certain special internal variables behave like global variables similar to other languages. These variables are called superglobals and are predefined by PHP for you to use. Some examples of these superglobals are&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$_GET[]&lt;/b&gt;. An array that includes all the GET variables that PHP received from the client browser.&lt;br /&gt;&lt;b&gt;$_POST[]&lt;/b&gt;. An array that includes all the POST variables that PHP received from the client browser.&lt;br /&gt;&lt;b&gt;$_COOKIE[]&lt;/b&gt;. An array that includes all the cookies that PHP received from the client browser.&lt;br /&gt;&lt;b&gt;$_SERVER[]&lt;/b&gt;. An array with the values of the web-server variables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-7180621591093921902?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/7180621591093921902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/7180621591093921902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/7180621591093921902'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/variables.html' title='php3-variables'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-87002764206324844</id><published>2009-07-11T19:55:00.000-07:00</published><updated>2009-07-11T20:20:19.454-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='comments in php'/><title type='text'>php2-comments</title><content type='html'>&lt;b&gt;how the comments work in php&lt;/b&gt;&lt;br /&gt;comment r very necessay for the programmer to made  for future use.A good programmer always declare the cooments&lt;br /&gt;// is used for single line cooment &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;this is used for multiple line comment&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/4725594047056449203-87002764206324844?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/87002764206324844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/php2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/87002764206324844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/87002764206324844'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/07/php2.html' title='php2-comments'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4725594047056449203.post-1806559375993249451</id><published>2009-04-04T01:48:00.000-07:00</published><updated>2009-07-11T23:50:04.893-07:00</updated><title type='text'>php1</title><content type='html'>&lt;span style="color:#ff0000;"&gt;TO DOWNLOAD APP SERVER WITH MYSQL AND PHP CLICK ON&lt;/span&gt; &lt;a href="http://www.appservnetwork.com/"&gt;http://www.appservnetwork.com/&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#ff6666;"&gt;store all the php format file in www folder in c: directory appserv folder :&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;store the file with .php extension &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;to run the file open internet explorer and type &lt;/span&gt;&lt;a href="http://localhost/filename.php"&gt;&lt;span style="color:#ff0000;"&gt;http://localhost/filename.php&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff0000;"&gt; in adress bar&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#33ff33;"&gt;PHP IS LOOSLEY TYPE LANGUAGE LIKE HTML.&lt;/span&gt;&lt;br /&gt;Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in। The goal of the language is to allow web developers to write dynamically generated pages quickly।"&lt;br /&gt;This is generally a good definition of PHP. However, it does contain a lot of terms you may not be used to. Another way to think of PHP is a powerful, behind the scenes scripting language that your visitors won't see!&lt;br /&gt;When someone visits your PHP webpage, your web server processes the PHP code। It then sees which parts it needs to show to visitors(content and pictures) and hides the other stuff(file operations, math calculations, etc.) then translates your PHP into HTML. After the translation into HTML, it sends the webpage to your visitor's web browser.&lt;br /&gt;Php is a loosely typed language therefore it is easy to work on it like HTML.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4725594047056449203-1806559375993249451?l=arunrawat-web.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrawat-web.blogspot.com/feeds/1806559375993249451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://arunrawat-web.blogspot.com/2009/04/php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/1806559375993249451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4725594047056449203/posts/default/1806559375993249451'/><link rel='alternate' type='text/html' href='http://arunrawat-web.blogspot.com/2009/04/php.html' title='php1'/><author><name>arunrawat</name><uri>http://www.blogger.com/profile/15893982407203992811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_C63Qoc-HdGs/TKR12jDV6KI/AAAAAAAAAA8/vAR7d6_wRhQ/S220/indan-flag.gif'/></author><thr:total>0</thr:total></entry></feed>
