<?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:blogger='http://schemas.google.com/blogger/2008' 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-7459518636202848120</id><updated>2024-09-12T20:57:46.272-07:00</updated><category term="calendar using PHP"/><title type='text'>php form | learn php | php tutorial | php script | php upload</title><subtitle type='html'>php script, hosting, cheap hosting, web host, php hosting, web hosting,</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://saleemphp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://saleemphp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7459518636202848120.post-4121012173195835544</id><published>2011-07-07T06:54:00.000-07:00</published><updated>2011-07-07T06:54:15.984-07:00</updated><title type='text'>How To Get YouTube Thumbnail Images</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuaSeP62uK6IJUb0ZMuWHq8GMufZkPcbwwtIfmLwKtm36VcAUejTf7ceIYLycgywBy8s1ysukE8dHFgFjJOKMwMND28rj_3YQULFBGLILiHlsP1jwqWHB745ZymiVI6LBdnYh7LwRBK38/s1600/youtube-thumbnail-image.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuaSeP62uK6IJUb0ZMuWHq8GMufZkPcbwwtIfmLwKtm36VcAUejTf7ceIYLycgywBy8s1ysukE8dHFgFjJOKMwMND28rj_3YQULFBGLILiHlsP1jwqWHB745ZymiVI6LBdnYh7LwRBK38/s1600/youtube-thumbnail-image.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The other day, when I was editing Jeremy’s weekly viral video roundup post, it occurred to me that it would be nice to display a thumbnail image for the post, taken from one of the videos in his review.  I thought I’d write a short post to show you how to easily pull thumbnail images for a YouTube video.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;How To Download A Thumbnail Image From YouTube&lt;/h2&gt;&lt;div&gt;There are a few different ways that you can get thumbnails from a YouTube video, one of which is to use YouTube’s Video API to extract the thumbnail. YouTube API responses may contain multiple thumbnail images for a video, each of which is identified by a &lt;media:thumbnail&gt; tag. &amp;nbsp;Creating a call to YouTube to get the video and thumbnail information can take some time and when you are like me and don’t know a think about writing code, then the API is relatively useless. &amp;nbsp;For me, I needed a simple way to pull down a thumbnail and thankfully, there is a simple way to do this.&lt;/media:thumbnail&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Here is the YouTube URL format that you will need in order to view and download a thumbnail from a&amp;nbsp;YouTube video:&lt;br /&gt;
&lt;h2&gt;http://img.youtube.com/vi/VIDEO_ID/#.jpg&lt;/h2&gt;… where for the video example above, &lt;strong&gt;VIDEO_ID&lt;/strong&gt;=bQVoAWSP7k4 and &lt;strong&gt;#&lt;/strong&gt; (1,2, or 3) corresponds to one of the&amp;nbsp;3 thumbnails&amp;nbsp;that YouTube automatically generates.&lt;br /&gt;
#2, is the default thumbnail, or the one that the owner ends up choosing for their video.&lt;br /&gt;
Using  this convention, below are the URLs and the thumbnails that I was able  to pull off of YouTube for the “wedding proposal” video from Jeremy’s  post.&lt;br /&gt;
&lt;h2&gt;1st Thumbnail Image, Small&amp;nbsp;(120×90)&lt;/h2&gt;http://img.youtube.com/vi/bQVoAWSP7k4/1.jpg&lt;br /&gt;
&lt;img alt=&quot;1&quot; class=&quot;size-full wp-image-22732 alignnone&quot; height=&quot;90&quot; src=&quot;http://cdn4.reelstatic.com/wp-content/uploads/2010/06/1.jpg?5f2860&quot; title=&quot;Quick Tip: How To Get YouTube Thumbnail Images&quot; width=&quot;120&quot; /&gt;&lt;br /&gt;
&lt;h2&gt;3rd Thumbnail Image, Small (120×90)&lt;/h2&gt;http://img.youtube.com/vi/bQVoAWSP7k4/3.jpg&lt;br /&gt;
&lt;img alt=&quot;3&quot; class=&quot;size-full wp-image-22734 alignnone&quot; height=&quot;90&quot; src=&quot;http://cdn.reelstatic.com/wp-content/uploads/2010/06/3.jpg?5f2860&quot; title=&quot;Quick Tip: How To Get YouTube Thumbnail Images&quot; width=&quot;120&quot; /&gt;&lt;br /&gt;
&lt;h2&gt;2nd | Default Thumbnail Image, Small&amp;nbsp;(120×90)&lt;/h2&gt;http://img.youtube.com/vi/bQVoAWSP7k4/2.jpg&lt;br /&gt;
&lt;img alt=&quot;2&quot; class=&quot;size-full wp-image-22733 alignnone&quot; height=&quot;90&quot; src=&quot;http://cdn4.reelstatic.com/wp-content/uploads/2010/06/2.jpg?5f2860&quot; title=&quot;Quick Tip: How To Get YouTube Thumbnail Images&quot; width=&quot;120&quot; /&gt;&lt;br /&gt;
&lt;h2&gt;Default Thumbnail Image, Full-Size (480×360)&lt;/h2&gt;http://img.youtube.com/vi/bQVoAWSP7k4/0.jpg&lt;br /&gt;
&lt;img alt=&quot;0&quot; class=&quot;size-full wp-image-22731   alignnone&quot; height=&quot;360&quot; src=&quot;http://cdn.reelstatic.com/wp-content/uploads/2010/06/0.jpg?5f2860&quot; title=&quot;Quick Tip: How To Get YouTube Thumbnail Images&quot; width=&quot;480&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saleemphp.blogspot.com/feeds/4121012173195835544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7459518636202848120/4121012173195835544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/4121012173195835544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/4121012173195835544'/><link rel='alternate' type='text/html' href='http://saleemphp.blogspot.com/2011/07/how-to-get-youtube-thumbnail-images.html' title='How To Get YouTube Thumbnail Images'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuaSeP62uK6IJUb0ZMuWHq8GMufZkPcbwwtIfmLwKtm36VcAUejTf7ceIYLycgywBy8s1ysukE8dHFgFjJOKMwMND28rj_3YQULFBGLILiHlsP1jwqWHB745ZymiVI6LBdnYh7LwRBK38/s72-c/youtube-thumbnail-image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7459518636202848120.post-6269887856935541127</id><published>2011-01-22T01:51:00.000-08:00</published><updated>2011-01-22T01:54:59.027-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="calendar using PHP"/><title type='text'>How to create a calendar using PHP</title><content type='html'>&lt;iframe title=&quot;YouTube video player&quot; class=&quot;youtube-player&quot; type=&quot;text/html&quot; width=&quot;480&quot; height=&quot;390&quot; src=&quot;http://www.youtube.com/embed/KS2S3WQYE18&quot; frameborder=&quot;0&quot; allowFullScreen&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://saleemphp.blogspot.com/feeds/6269887856935541127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7459518636202848120/6269887856935541127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6269887856935541127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6269887856935541127'/><link rel='alternate' type='text/html' href='http://saleemphp.blogspot.com/2011/01/how-to-create-calendar-using-php.html' title='How to create a calendar using PHP'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/KS2S3WQYE18/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7459518636202848120.post-6555691925122713798</id><published>2010-07-29T09:42:00.001-07:00</published><updated>2010-08-02T08:16:49.539-07:00</updated><title type='text'>Php Interview Questions and Answers</title><content type='html'>&lt;div class=&quot;answers&quot;&gt;&lt;b&gt; &lt;span class=&quot;for_questions_blue&quot;&gt;What&#39;s PHP ?&lt;/span&gt;&lt;br /&gt;
&lt;/b&gt;The PHP Hypertext Preprocessor is a programming language that allows  web  developers to create dynamic content that interacts with databases. PHP  is basically used for developing web based software applications.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;What Is a Session? &lt;/b&gt; &lt;br /&gt;
A session is a logical object created by the PHP engine to allow you to  preserve data across subsequent HTTP requests.&lt;br /&gt;
&lt;br /&gt;
There is only one session object available to your PHP scripts at any  time. Data saved to the session by a script can be retrieved by the same   script or another script when requested from the same visitor.&lt;br /&gt;
&lt;br /&gt;
Sessions are commonly used to store temporary data to allow multiple PHP   pages to offer a complete functional transaction for the same visitor.&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;What is meant by PEAR  in php?   &lt;/b&gt; &lt;br /&gt;
Answer1:&lt;br /&gt;
PEAR is the next revolution in PHP. This repository is bringing higher  level programming to PHP. PEAR is a framework and distribution system  for reusable PHP components. It eases installation by bringing an  automated wizard, and packing the strength and experience of PHP users  into a nicely organised OOP library. PEAR also provides a command-line  interface that can be used to automatically install &quot;packages&quot; &lt;br /&gt;
&lt;br /&gt;
Answer2:&lt;br /&gt;
PEAR is short for &quot;PHP Extension and Application Repository&quot; and is  pronounced just like the fruit. The purpose of PEAR is to provide: &lt;br /&gt;
A structured library of open-sourced code for PHP users &lt;br /&gt;
A system for code distribution and package maintenance &lt;br /&gt;
A standard style for code written in PHP &lt;br /&gt;
The PHP Foundation Classes (PFC), &lt;br /&gt;
The PHP Extension Community Library (PECL), &lt;br /&gt;
A web site, mailing lists and download mirrors to support the PHP/PEAR  community &lt;br /&gt;
PEAR is a community-driven project with the PEAR Group as the governing  body. The project has been founded by Stig S. Bakken in 1999 and quite a   lot of people have joined the project since then.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;How can we know the  number of days between two given dates using PHP?  &lt;/b&gt; &lt;br /&gt;
Simple arithmetic:&lt;br /&gt;
&lt;br /&gt;
$date1 = date(&#39;Y-m-d&#39;);&lt;br /&gt;
$date2 = &#39;2006-07-01&#39;;&lt;br /&gt;
$days = (strtotime() - strtotime()) / (60 * 60 * 24);&lt;br /&gt;
echo &quot;Number of days since &#39;2006-07-01&#39;: $days&quot;;&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;How can we repair a  MySQL table? &lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;The  syntex for repairing a mysql table is:&lt;br /&gt;
&lt;br /&gt;
REPAIR TABLE tablename&lt;br /&gt;
REPAIR TABLE tablename QUICK&lt;br /&gt;
REPAIR TABLE tablename EXTENDED&lt;br /&gt;
&lt;br /&gt;
This command will repair the table specified.&lt;br /&gt;
If QUICK is given, MySQL will do a repair of only the index tree.&lt;br /&gt;
If EXTENDED is given, it will create index row by row.&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;What is the difference  between $message and $$message? &lt;/b&gt; &lt;br /&gt;
Anwser 1:&lt;br /&gt;
$message is a simple variable whereas $$message is a reference variable.   Example:&lt;br /&gt;
$user = &#39;bob&#39;&lt;br /&gt;
&lt;br /&gt;
is equivalent to&lt;br /&gt;
&lt;br /&gt;
$holder = &#39;user&#39;;&lt;br /&gt;
$$holder = &#39;bob&#39;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Anwser 2:&lt;br /&gt;
They are both variables. But $message is a variable with a fixed name.  $$message is a variable who&#39;s name is stored in $message. For example,  if $message contains &quot;var&quot;, $$message is the same as $var. &lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;What Is a Persistent  Cookie?   &lt;/b&gt; &lt;br /&gt;
A persistent cookie is a cookie which is stored in a cookie file  permanently on the browser&#39;s computer. By default, cookies are created  as temporary cookies which stored only in the browser&#39;s memory. When the   browser is closed, temporary cookies will be erased. You should decide  when to use temporary cookies and when to use persistent cookies based  on their differences:&lt;br /&gt;
*Temporary cookies can not be used for tracking long-term information.&lt;br /&gt;
*Persistent cookies can be used for tracking long-term information.&lt;br /&gt;
*Temporary cookies are safer because no programs other than the browser  can access them.&lt;br /&gt;
*Persistent cookies are less secure because users can open cookie files  see the cookie values.&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;What does a special set  of tags  do in PHP?   &lt;/b&gt; &lt;br /&gt;
The output is displayed directly to the browser.&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;answers&quot;&gt; &lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;How do you define a constant?&lt;/span&gt;&lt;span class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;Via define() directive, like define (&quot;MYCONSTANT&quot;, 100);&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;What are the  differences between require and include, include_once? &lt;/b&gt; &lt;br /&gt;
Anwser 1:&lt;br /&gt;
require_once() and include_once() are both the functions to include and  evaluate the specified file only once. If the specified file is included   previous to the present call occurrence, it will not be done again.&lt;br /&gt;
&lt;br /&gt;
But require() and include() will do it as many times they are asked to  do. &lt;br /&gt;
&lt;br /&gt;
Anwser 2:&lt;br /&gt;
The include_once() statement includes and evaluates the specified file  during the execution of the script. This is a behavior similar to the  include() statement, with the only difference being that if the code  from a file has already been included, it will not be included again.  The major difference between include() and require() is that in failure  include() produces a warning message whereas require() produces a fatal  errors. &lt;br /&gt;
&lt;br /&gt;
Anwser 3:&lt;br /&gt;
All three are used to an include file into the current page.&lt;br /&gt;
If the file is not present, require(), calls a fatal error, while in  include() does not.&lt;br /&gt;
The include_once() statement includes and evaluates the specified file  during the execution of the script. This is a behavior similar to the  include() statement, with the only difference being that if the code  from a file has already been included, it will not be included again. It   des not call a fatal error if file not exists. require_once() does the  same as include_once(), but it calls a fatal error if file not exists. &lt;br /&gt;
&lt;br /&gt;
Anwser 4:&lt;br /&gt;
File will not be included more than once. If we want to include a file  once only and further calling of the file will be ignored then we have  to use the PHP function include_once(). This will prevent problems with  function redefinitions, variable value reassignments, etc.&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;What is meant by  urlencode and urldecode?&lt;/b&gt;&lt;br /&gt;
Anwser 1:&lt;br /&gt;
urlencode() returns the URL encoded version of the given string. URL  coding converts special characters into % signs followed by two hex  digits. For example: urlencode(&quot;10.00%&quot;) will return &quot;10%2E00%25&quot;. URL  encoded strings are safe to be used as part of URLs. &lt;br /&gt;
urldecode() returns the URL decoded version of the given string.&lt;/div&gt;&lt;!--webbot bot=&quot;Include&quot; U-Include=&quot;../_private/tbl_gglapck.htm&quot; TAG=&quot;BODY&quot; startspan --&gt;   &lt;!--webbot bot=&quot;Include&quot; i-checksum=&quot;224&quot; endspan --&gt;&lt;div class=&quot;answers&quot;&gt;Anwser  2:&lt;br /&gt;
string urlencode(str) - Returns the URL encoded version of the input  string. String values to be used in URL query string need to be URL  encoded. In the URL encoded version:&lt;br /&gt;
&lt;br /&gt;
Alphanumeric characters are maintained as is.&lt;br /&gt;
Space characters are converted to &quot;+&quot; characters.&lt;br /&gt;
Other non-alphanumeric characters are converted &quot;%&quot; followed by two hex  digits representing the converted character.&lt;br /&gt;
&lt;br /&gt;
string urldecode(str) - Returns the original string of the input URL  encoded string.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
$discount =&quot;10.00%&quot;;&lt;br /&gt;
$url = &quot;http://domain.com/submit.php?disc=&quot;.urlencode($discount);&lt;br /&gt;
echo $url;&lt;br /&gt;
&lt;br /&gt;
You will get &quot;http://domain.com/submit.php?disc=10%2E00%25&quot;.&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;How To Get the Uploaded  File Information in the Receiving Script? &lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
Once the Web server received the uploaded file, it will call the PHP  script specified in the form action attribute to process them. This  receiving PHP script can get the uploaded file information through the  predefined array called $_FILES. Uploaded file information is organized  in $_FILES as a two-dimensional array as:&lt;br /&gt;
$_FILES[$fieldName][&#39;name&#39;] - The Original file name on the browser  system.&lt;br /&gt;
$_FILES[$fieldName][&#39;type&#39;] - The file type determined by the browser.&lt;br /&gt;
$_FILES[$fieldName][&#39;size&#39;] - The Number of bytes of the file content.&lt;br /&gt;
$_FILES[$fieldName][&#39;tmp_name&#39;] - The temporary filename of the file in  which the uploaded file was stored on the server.&lt;br /&gt;
$_FILES[$fieldName][&#39;error&#39;] - The error code associated with this file  upload.&lt;br /&gt;
&lt;br /&gt;
The $fieldName is the name used in the &lt;input name=&quot;fieldName&quot; type=&quot;FILE,&quot; /&gt;.&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;What is the difference  between mysql_fetch_object and mysql_fetch_array? &lt;/b&gt; &lt;br /&gt;
MySQL fetch object will collect first single matching record where  mysql_fetch_array will collect all matching records from the table in an   array&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b class=&quot;for_questions_blue&quot;&gt;How can I execute a PHP  script using command line? &lt;/b&gt; &lt;br /&gt;
Just run the PHP CLI (Command Line Interface) program and provide the  PHP script file name as the command line argument. For example, &quot;php  myScript.php&quot;, assuming &quot;php&quot; is the command to invoke the CLI program. &lt;br /&gt;
Be aware that if your PHP script was written for the Web CGI interface,  it may not execute properly in command line environment.&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;answers&quot;&gt;&lt;b&gt;&lt;span class=&quot;for_questions_blue&quot;&gt;I am trying to  assign a variable the value of 0123, but it keeps coming  up with a different number, what’s the problem? &lt;/span&gt; &lt;/b&gt;&lt;br /&gt;
PHP Interpreter treats numbers beginning with 0 as octal. Look at the  similar PHP interview questions for more numeric problems.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saleemphp.blogspot.com/feeds/6555691925122713798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7459518636202848120/6555691925122713798' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6555691925122713798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6555691925122713798'/><link rel='alternate' type='text/html' href='http://saleemphp.blogspot.com/2010/07/php-interview-questions-and-answers.html' title='Php Interview Questions and Answers'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7459518636202848120.post-4416960810921712950</id><published>2009-08-31T02:06:00.000-07:00</published><updated>2009-08-31T02:08:03.511-07:00</updated><title type='text'></title><content type='html'>&lt;p class=&quot;intro&quot;&gt;PHP is a server-side scripting language.&lt;/p&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;What You Should Already Know&lt;/h2&gt;&lt;p&gt;Before you continue you should have a basic understanding of the following:&lt;/p&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;HTML/XHTML&lt;/li&gt;&lt;br /&gt; &lt;li&gt;JavaScript&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;If you want to study these subjects first, find the tutorials on our&lt;br /&gt;.&lt;/p&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;What is PHP?&lt;/h2&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;PHP stands for &lt;b&gt;P&lt;/b&gt;HP: &lt;b&gt;H&lt;/b&gt;ypertext &lt;b&gt;P&lt;/b&gt;reprocessor&lt;/li&gt;&lt;br /&gt;&lt;li&gt;PHP is a server-side scripting language, like ASP&lt;/li&gt;&lt;br /&gt;&lt;li&gt;PHP scripts are executed on the server&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid,&lt;br /&gt;PostgreSQL, Generic ODBC, etc.)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;PHP is an open source software&lt;/li&gt;&lt;br /&gt;&lt;li&gt;PHP is free to download and use&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;What is a PHP File?&lt;/h2&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;PHP files can contain text, HTML tags and scripts&lt;/li&gt;&lt;br /&gt;&lt;li&gt;PHP files are returned to the browser as plain HTML &lt;/li&gt;&lt;br /&gt;&lt;li&gt;PHP files have a file extension of &quot;.php&quot;, &quot;.php3&quot;, or &quot;.phtml&quot;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;What is MySQL?&lt;/h2&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;MySQL is a database server&lt;/li&gt;&lt;br /&gt;&lt;li&gt;MySQL is ideal for both small and large applications&lt;/li&gt;&lt;br /&gt;&lt;li&gt;MySQL supports standard SQL&lt;/li&gt;&lt;br /&gt;&lt;li&gt;MySQL compiles on a number of platforms&lt;/li&gt;&lt;br /&gt;&lt;li&gt;MySQL is free to download and use&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;h2&gt;PHP + MySQL&lt;/h2&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PHP combined with MySQL are cross-platform (you can develop in&lt;br /&gt;Windows and serve on a Unix platform)&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Why PHP?&lt;/h2&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;PHP runs on different platforms (Windows, Linux, Unix, etc.)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;PHP is compatible with almost all servers used today (Apache, IIS, etc.)&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;PHP is FREE to download from the official PHP resource: www.php.net&lt;/li&gt;&lt;br /&gt;&lt;li&gt;PHP is easy to learn and runs efficiently on the server side&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Where to Start?&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;To get access to a web server with PHP support, you can:&lt;/p&gt;&lt;br /&gt; &lt;ul&gt;&lt;li&gt;Install Apache (or IIS) on your own server, install PHP, and MySQL&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Or find a web hosting plan with PHP and MySQL support&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://saleemphp.blogspot.com/feeds/4416960810921712950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7459518636202848120/4416960810921712950' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/4416960810921712950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/4416960810921712950'/><link rel='alternate' type='text/html' href='http://saleemphp.blogspot.com/2009/08/php-is-server-side-scripting-language.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7459518636202848120.post-6502608962430079783</id><published>2009-08-31T01:55:00.000-07:00</published><updated>2009-08-31T02:03:52.784-07:00</updated><title type='text'></title><content type='html'>&lt;h2 class=&quot;tutheader&quot;&gt;PHP References&lt;/h2&gt;&lt;br /&gt;&lt;p&gt;At W3Schools you will find complete references of all PHP functions:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Array functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Calendar functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Date functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Directory functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Error functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Filesystem functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Filter functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;FTP functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;HTTP functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;LibXML functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Mail functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Math functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Misc functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;MySQL functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;SimpleXML functions&lt;br /&gt; &lt;/li&gt;&lt;br /&gt; &lt;li&gt;String functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;XML Parser functions&lt;/li&gt;&lt;br /&gt; &lt;li&gt;Zip functions&lt;/li&gt;&lt;/ul&gt;&lt;h2 class=&quot;tutheader&quot;&gt;PHP Exam - Get Your Diploma!&lt;/h2&gt;&lt;table&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;td valign=&quot;middle&quot;&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;W3Schools&#39; Online Certification Program&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The perfect solution for professionals who need to balance work, family, and career building.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;More than 3500 certificates already issued!&lt;/p&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.&lt;/p&gt;&lt;p&gt;The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.&lt;/p&gt;&lt;p&gt;The XML Certificate documents your knowledge of XML, XML DOM and XSLT.&lt;/p&gt;&lt;p&gt;The ASP Certificate documents your knowledge of ASP, SQL, and ADO.&lt;/p&gt;&lt;p&gt;The PHP Certificate documents your knowledge of PHP and SQL (MySQL).&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://saleemphp.blogspot.com/feeds/6502608962430079783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7459518636202848120/6502608962430079783' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6502608962430079783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6502608962430079783'/><link rel='alternate' type='text/html' href='http://saleemphp.blogspot.com/2009/08/php-references-at-w3schools-you-will.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7459518636202848120.post-6696642163134489608</id><published>2008-08-09T07:38:00.000-07:00</published><updated>2008-08-09T07:39:12.842-07:00</updated><title type='text'></title><content type='html'>http://w3schools.com/php/php_ref_array.asp</content><link rel='replies' type='application/atom+xml' href='http://saleemphp.blogspot.com/feeds/6696642163134489608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7459518636202848120/6696642163134489608' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6696642163134489608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6696642163134489608'/><link rel='alternate' type='text/html' href='http://saleemphp.blogspot.com/2008/08/httpw3schools.html' title=''/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7459518636202848120.post-6758298546813641278</id><published>2008-08-09T07:33:00.000-07:00</published><updated>2008-08-09T07:38:38.675-07:00</updated><title type='text'>learn php</title><content type='html'>&lt;p&gt;&lt;b&gt;PHP is a powerful server-side scripting language for creating dynamic and interactive websites.&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;PHP is the widely-used, free, and efficient alternative to competitors  such as Microsoft&#39;s ASP. PHP is perfectly suited for Web development and can be  embedded directly into the HTML code.&lt;/b&gt;&lt;/p&gt; &lt;p&gt;&lt;b&gt;The PHP syntax is very similar to Perl and C. PHP is often used together  with Apache (web server) on various operating systems. It also supports ISAPI  and can be used with Microsoft&#39;s IIS on Windows.&lt;/b&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://saleemphp.blogspot.com/feeds/6758298546813641278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7459518636202848120/6758298546813641278' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6758298546813641278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7459518636202848120/posts/default/6758298546813641278'/><link rel='alternate' type='text/html' href='http://saleemphp.blogspot.com/2008/08/learn-php.html' title='learn php'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>