<?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-4454143640288911354</id><updated>2011-12-26T03:38:45.542-08:00</updated><category term='Tutorials-planet.com'/><category term='4-Server config'/><category term='2-Getting started'/><category term='web hosting'/><category term='Sessions'/><category term='Mysql'/><category term='email'/><category term='files'/><category term='1-General'/><category term='3-Strings'/><category term='5-Best scripts'/><category term='Forms'/><category term='Loop statements'/><category term='If statements'/><category term='You need a programmer ?'/><category term='Server variables'/><title type='text'>Best PHP sources !  Free php Tutorials, Scripts, Codes ...</title><subtitle type='html'>Want to learn PHP, with us you will love PHP ! We will provide you with all tutorials and free script ready to use, everything you want: php file, php mail, php mysql and much more</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>47</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7200180395968041197</id><published>2010-12-30T11:22:00.000-08:00</published><updated>2010-12-30T11:22:53.485-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='5-Best scripts'/><title type='text'>Memory problem in PHP simple HTML DOM</title><summary type='text'>I was using PHP Simple HTML dom, a great and free library for parsing html pages and retreiving info from it. I really liked it.. But when it comes to parsing many differents pages of some website in one php script, you will get an error:

Allowed memory size of 67108864 bytes exhausted,

and this is because simple HTML dom don't free up the memory in real time, so the solution is:

Each time you</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7200180395968041197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7200180395968041197&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7200180395968041197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7200180395968041197'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/12/memory-problem-in-php-simple-html-dom.html' title='Memory problem in PHP simple HTML DOM'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-5528324411308480733</id><published>2010-03-19T08:36:00.000-07:00</published><updated>2010-03-19T08:48:12.688-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='5-Best scripts'/><title type='text'>“Who Is Online” Widget With PHP, MySQL &amp; jQuery</title><summary type='text'>Do you see in some website a nice list of online users ? Do you want to have one in your website ? That should be easy now thanks to this very helpful and easy-to-install widget: “Who Is Online” Widget With PHP, MySQL &amp; jQuery I hope you will like it :)</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/5528324411308480733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=5528324411308480733&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5528324411308480733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5528324411308480733'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/03/who-is-online-widget-with-php-mysql.html' title='“Who Is Online” Widget With PHP, MySQL &amp; jQuery'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7474156599584893672</id><published>2010-01-20T08:32:00.000-08:00</published><updated>2010-01-20T11:48:20.114-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>String Capitalization Functions: strtoupper-strtolower-ucwords.</title><summary type='text'>In php you can easily manipulate the capitalization of your PHP strings, there are ready to use functions that help you to convert yout text to upper case, lower case, or just the first letter of every word to upper case.&lt;?php$originalString = "Testing string Capitalization AbCDe"; $upperCase = strtoupper($originalString); // Result: TESTING STRING CAPITALIZATION ABCDE$lowerCase = strtolower($</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7474156599584893672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7474156599584893672&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7474156599584893672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7474156599584893672'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/string-capitalization-functions.html' title='String Capitalization Functions: strtoupper-strtolower-ucwords.'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-5588370834442712648</id><published>2010-01-10T04:10:00.000-08:00</published><updated>2010-01-10T04:30:45.531-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Loop statements'/><title type='text'>PHP For Loop</title><summary type='text'>When you need to do the same script many times, for exemple you want to send emails to all your users, you don't need to write a php code for each user, you just need to use for Loop which will do it for each one.This is how:&lt;?phpfor ($userid=1;$userid&lt;=10;$userid++){send_email($userid);}?&gt;Where send_email() is your own function that send the email to the user with the id as parameter.Another </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/5588370834442712648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=5588370834442712648&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5588370834442712648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5588370834442712648'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/php-for-loop.html' title='PHP For Loop'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-5916795687878005091</id><published>2010-01-05T05:18:00.000-08:00</published><updated>2010-01-05T07:09:33.329-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><category scheme='http://www.blogger.com/atom/ns#' term='email'/><category scheme='http://www.blogger.com/atom/ns#' term='5-Best scripts'/><title type='text'>PHP Validate Email Address: Email Validator</title><summary type='text'>When working with forms and interacting with your visitors, you may want to verify if your visitor entered an email address in the right field, and if it is valide or not.Most of people who are new to php world, just verify if the text box of the email address is filled or not, without verifying the syntax of the email address...Something like this they use:if (isset($_POST['email'])) {// do </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/5916795687878005091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=5916795687878005091&amp;isPopup=true' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5916795687878005091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5916795687878005091'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/php-validate-email-address-email.html' title='PHP Validate Email Address: Email Validator'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-5616639299275622489</id><published>2010-01-04T07:41:00.000-08:00</published><updated>2010-01-04T08:01:55.081-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>PHP Random code Generator</title><summary type='text'>This is a very simple-to-use php function that help you generate random codes in very easy way, you will need this function to generate random passwords, confirmation links,...So, this is it:&lt;?phpfunction createRandomPassword() {    $chars = "abcdefghijkmnopqrstuvwxyz023456789";    srand((double)microtime()*1000000);    $i = 0;    $pass = '' ;    while ($i &lt;= 9) {        $num = rand() % 33;</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/5616639299275622489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=5616639299275622489&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5616639299275622489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5616639299275622489'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/php-random-code-generator.html' title='PHP Random code Generator'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-37564787675085127</id><published>2010-01-03T03:42:00.000-08:00</published><updated>2010-01-03T03:51:06.768-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Server variables'/><title type='text'>PHP Get browser Language</title><summary type='text'>In php you can get the language of your visitor, this is very helpful if you have many versions of your website for different languages.You can get the language of your visitor in this way:&lt;?php$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);?&gt;This will give you the 2letter language code, ie: en for english and fr for french .In fact $_SERVER['HTTP_ACCEPT_LANGUAGE'] will get all language </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/37564787675085127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=37564787675085127&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/37564787675085127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/37564787675085127'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/php-get-browser-language.html' title='PHP Get browser Language'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7623709014448740395</id><published>2010-01-02T10:01:00.000-08:00</published><updated>2010-01-02T10:24:12.349-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><title type='text'>PHP $_REQUEST</title><summary type='text'>You probably already know that you can get variable from a html form in php using $_GET and $_POST, you use $_GET if the html form is like: &lt;form name="name" action="form.php" method="get"&gt; and use $_POST if it is &lt;form name="name" action="form.php" method="post"&gt;.But what if you want your php to work for both post and get datas in the same time, to precess the form whatever it was in post method</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7623709014448740395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7623709014448740395&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7623709014448740395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7623709014448740395'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/php-request.html' title='PHP $_REQUEST'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-6023633973296809517</id><published>2010-01-02T01:45:00.000-08:00</published><updated>2010-01-02T02:23:33.041-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='email'/><category scheme='http://www.blogger.com/atom/ns#' term='5-Best scripts'/><title type='text'>PHP send mail SMTP authentification</title><summary type='text'>this is a very complete php send mail script, with authentification ofcourse.You can choose the smtp server, use your username and password, and can send a html email.This script does not use php mail() function, it's all from scrach.&lt;?php function authSendEmail($from, $namefrom, $to, $nameto, $subject, $message){$smtpServer = "smtpout.europe.secureserver.net"; $port = "25"; $timeout = "30"; $</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/6023633973296809517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=6023633973296809517&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/6023633973296809517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/6023633973296809517'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/php-send-mail-smtp-authentification.html' title='PHP send mail SMTP authentification'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-8290723341318093762</id><published>2010-01-01T08:29:00.000-08:00</published><updated>2010-01-01T08:40:42.919-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='5-Best scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>ob_start - save php output to a string - The PHP output buffering</title><summary type='text'>I want to share this great php utility: the output buffering, it is sometimes very usefull. So what it does ?The PHP output buffering will save all the server outputs ( html and php prints) to a string variable.So to start buffering, use ob_start(); this will keep saved any output.Then you use $variable = ob_get_clean(); to stop buffering, and copy the buffer content to the variable.Here are few </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/8290723341318093762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=8290723341318093762&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8290723341318093762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8290723341318093762'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/obstart-save-php-output-to-string-php.html' title='ob_start - save php output to a string - The PHP output buffering'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7934690462599572261</id><published>2010-01-01T07:04:00.000-08:00</published><updated>2010-01-01T07:11:22.958-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='email'/><title type='text'>PHP send HTML email, The complete php mail sending script</title><summary type='text'>The last post by me was about a very easy way to send an email with php. But as it is simple, it will only send text email, not html.

If you want a complete mail sending script, that send in html, this is what you have to use:

&lt;?php
//here the receiver of the email
$to = 'receiver@example.com';
//here the subject of the email
$subject = 'Test HTML email';
//create a boundary string. It must be </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7934690462599572261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7934690462599572261&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7934690462599572261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7934690462599572261'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/php-send-html-email-complete-php-mail.html' title='PHP send HTML email, The complete php mail sending script'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7572191272516190784</id><published>2010-01-01T03:41:00.000-08:00</published><updated>2010-01-01T03:41:47.304-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='email'/><title type='text'>PHP mail() - send email with php</title><summary type='text'>Sending email with php is very simple, few lines of code and it works.
You need to send email using php when you have a comment or contact us form, where your visitors contact you via a web page form, and you get the message to your email address, or when you have a signup / registration form and you want to send automatically a confirmation link or a welcome message to your new users.

This is </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7572191272516190784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7572191272516190784&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7572191272516190784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7572191272516190784'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2010/01/php-mail-send-email-with-php.html' title='PHP mail() - send email with php'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-14874190944964295</id><published>2009-12-31T13:38:00.000-08:00</published><updated>2009-12-31T13:47:40.258-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='5-Best scripts'/><title type='text'>PHP Post data to url with curl</title><summary type='text'>I know you will need sometimes to use a php code to send data (text) to an url using POST method, just like it was sent by a form.
So all you have to do now, is to copy this function and use it, you have to specify the url and the data to post and it goes !

&lt;?php
function post_content($url,$nfields,$fields_string)  
{
    $ch = curl_init();  
    curl_setopt($ch, CURLOPT_URL, $url);  
    </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/14874190944964295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=14874190944964295&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/14874190944964295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/14874190944964295'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2009/12/php-post-data-to-url-with-curl.html' title='PHP Post data to url with curl'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-678495906565358375</id><published>2009-12-31T09:25:00.000-08:00</published><updated>2009-12-31T09:35:35.567-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='If statements'/><title type='text'>HTML code directly in IF Conditions</title><summary type='text'>This is the most amazing thing in php conditions, and exactly the if statement.
In a php condition, you can put directly a html code without the echo function :)

This is what I'm talking about, with echo function, then without.:



if ($condition == 'something') {
echo ' My Website...';
} else {
echo ' My Website...';
}
?&gt;

With the new way I'm talking about, the script will be like this:




 </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/678495906565358375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=678495906565358375&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/678495906565358375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/678495906565358375'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2009/12/html-code-directly-in-if-conditions.html' title='HTML code directly in IF Conditions'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-4808908305039426272</id><published>2009-12-29T03:52:00.000-08:00</published><updated>2009-12-29T03:54:05.367-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forms'/><title type='text'>PHP forms</title><summary type='text'>Using PHP With HTML FormsWe use forms to interact with the website visitor, we can get and save his name, email address, comments, and even his purchased item, color of the item, his street address.The form is made in two steps: creating a html form to be visible in the browser of the visitor, and creating a php script that will process the form, such as sending email, saving name and email in </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/4808908305039426272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=4808908305039426272&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4808908305039426272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4808908305039426272'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2009/12/php-forms.html' title='PHP forms'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-8255320426094521137</id><published>2009-12-29T01:34:00.000-08:00</published><updated>2009-12-29T01:39:28.592-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorials-planet.com'/><title type='text'>Tutorials-Planet.com</title><summary type='text'>I'm moving to Tutorials-planet.com, you can find there all php articles, tutorials and script you need to be a successfull php programmer.All php sources should be herePHP tutorials include strings, variables, functions, arrays and form tutorials, other tutorials are coming !</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/8255320426094521137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=8255320426094521137&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8255320426094521137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8255320426094521137'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2009/12/tutorials-planetcom.html' title='Tutorials-Planet.com'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-2530149276803848722</id><published>2009-05-03T05:57:00.000-07:00</published><updated>2009-05-03T06:57:05.225-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web hosting'/><title type='text'>Free web hosting services</title><summary type='text'>Every one who want to start online business, need a very cheap or free web hosting to start with.Many companies online provide a good free web hosting services, and they may differ by their:Disk SpaceData Transfer / bandwidthdatabasesemail servicesusable languages: php/asp/perl ...All are free, but only the file hosting is free, and surely not the domain name. In every web hosting plan, you need </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/2530149276803848722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=2530149276803848722&amp;isPopup=true' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/2530149276803848722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/2530149276803848722'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2009/05/free-web-hosting-services.html' title='Free web hosting services'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-1581295907123665651</id><published>2009-04-10T05:56:00.000-07:00</published><updated>2009-04-10T06:21:35.700-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mysql'/><title type='text'>Connect to Mysql Database</title><summary type='text'>Connecting to the mysql database is done in two steps:Connecting to a mysql server, it's the most of time installed in the same server where php is, so we uselocalhost as address of mysql server.mysql_connect("localhost", "username", "password") or die(mysql_error());echo "Connected to MySQL Server";Some times, when you are running a server in your own computer and not a hosting service </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/1581295907123665651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=1581295907123665651&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/1581295907123665651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/1581295907123665651'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2009/04/connect-to-mysql-database.html' title='Connect to Mysql Database'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-2369043979183306312</id><published>2009-03-26T04:41:00.000-07:00</published><updated>2009-04-10T06:01:33.177-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mysql'/><title type='text'>About Mysql Database</title><summary type='text'>So you want to know what is mysql ? Or already now it and want to learn how to use it with php ? In all cases we are here to help you !Mysql is useful when you want to store data, infos... Yes you can save your data in a text file, but will not be easy to read details, to search, or any other task...For example, let's say you want to store details of users of your website, every user will have an</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/2369043979183306312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=2369043979183306312&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/2369043979183306312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/2369043979183306312'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2009/03/about-mysql-database.html' title='About Mysql Database'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-3999835831505609319</id><published>2009-03-20T09:49:00.000-07:00</published><updated>2009-03-20T10:18:14.722-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='You need a programmer ?'/><title type='text'>Do you need a php programmer ?</title><summary type='text'>The best solution to hire a programmer for a project you have, is to look for a freelancer.But where ?Ok, I know, there are many freelance websites and you are confused, or maybe you don't know any one, in all cases I advice you to take a look at scriptlance .Yes, I like it, and I'm already a programmer there, you can register and post your project for free, so nothing to lose to take a look at :</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/3999835831505609319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=3999835831505609319&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/3999835831505609319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/3999835831505609319'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2009/03/do-you-need-php-programmer.html' title='Do you need a php programmer ?'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-2118656015222196472</id><published>2009-03-20T08:59:00.000-07:00</published><updated>2009-03-20T09:21:06.871-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Loop statements'/><title type='text'>php Loop statements</title><summary type='text'>Loops are used in programming to do the same tasks many times, while a condition is true...That means, same script will be executed and repeated, until that condition becomes false.The loop statements used in php are:whiledo ... whileforforeachwhile and do ... while  are similar, the only difference is that, the first one will execute the script if and as long as the condition is true, but the </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/2118656015222196472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=2118656015222196472&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/2118656015222196472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/2118656015222196472'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2009/03/php-loop-statements.html' title='php Loop statements'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-8094796643357398824</id><published>2008-09-11T05:04:00.000-07:00</published><updated>2009-03-20T10:38:17.864-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='5-Best scripts'/><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>PHP eval - Execute php script in a string</title><summary type='text'>Do you want to be able to run a php script in a string ?This could be very helpful, for example if you want to use a module or a template, you may have a php script in a string, just like that:Hello &lt;?php echo $username; ?&gt; . You are wellcome ! PR: wait... I: wait... L: wait... LD: wait... I: wait...wait... C: wait... SD: wait...What if you have this in a text file ? or in a database ? What </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/8094796643357398824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=8094796643357398824&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8094796643357398824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8094796643357398824'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/09/php-eval-execute-php-script-in-string.html' title='PHP eval - Execute php script in a string'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-4504629372524596631</id><published>2008-09-06T05:08:00.000-07:00</published><updated>2008-09-06T05:41:45.129-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>PHP strings - substr() function</title><summary type='text'>substr() is an usefull function to easily manipulate strings and use them, it returns a custom segment of a whole string.substr, from position $n to end:You can extract a small segment from a string from a position $n to the end:&lt;?php$part = substr("I'm in Europe now", 7 ); // $part = "Europe now" ?&gt; PR: wait... I: wait... L: wait... LD: wait... I: wait...wait... C: wait... SD: wait...Note: </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/4504629372524596631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=4504629372524596631&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4504629372524596631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4504629372524596631'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/09/php-strings-substr-function.html' title='PHP strings - substr() function'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-1402479562372453665</id><published>2008-09-03T03:18:00.000-07:00</published><updated>2008-09-03T09:28:22.568-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><title type='text'>PHP some filesystem functions</title><summary type='text'>PHP have many functions to acces and manipulate files, the most important filesystem functions are posted here...basename() : Returns the filename component from a path.&lt;?php$path = "/directory1/index.html";echo basename($path); // display: index.htmlecho basename($path ,".html" ); // display: index?&gt;file_exists()     : Checks if a file or directory exists ot not.&lt;?phpecho file_exists("test.txt")</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/1402479562372453665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=1402479562372453665&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/1402479562372453665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/1402479562372453665'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/09/php-some-filesystem-functions.html' title='PHP some filesystem functions'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7484719735110711903</id><published>2008-09-01T07:10:00.000-07:00</published><updated>2008-09-01T08:04:29.946-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><title type='text'>Get Filename without extension</title><summary type='text'>Hello,It's sometimes usefull to pick the name of the file without its extension, and this is very easy with php !PHP Code:&lt;?php$arr = explode(".", $allname);$filename = $arr[0];?&gt;But this script will not work the file name is dotted, in that case use this:PHP Code:&lt;?php$filename = preg_replace( '/\.[a-z0-9]+$/i' , '' , 'dotted.file.Name' );?&gt;Or:&lt;?php$FileNameTokens = explode('.', $allname);$</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7484719735110711903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7484719735110711903&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7484719735110711903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7484719735110711903'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/09/get-filename-without-extension.html' title='Get Filename without extension'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-6230302845363283603</id><published>2008-08-30T06:49:00.000-07:00</published><updated>2008-08-30T09:48:33.818-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='If statements'/><title type='text'>PHP if -- else statement in conditions</title><summary type='text'>If statement enable programmer to execute a script only when a condition is true.And Else enable to quickly execute a script when the condition fails.PHP Code:&lt;?php$myname = "Smith" ;if ( $myname == "Smith" ) { echo "hello ! Your are Smith"; // wil be displayed only if condition is true} else  { echo "hello ! Your are not Smith";// wil be displayed only if condition is false }?&gt; This may also be </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/6230302845363283603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=6230302845363283603&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/6230302845363283603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/6230302845363283603'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-if-else-statement-in-conditions.html' title='PHP if -- else statement in conditions'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-4943134834957725267</id><published>2008-08-27T03:24:00.000-07:00</published><updated>2008-08-27T12:04:52.696-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='If statements'/><title type='text'>PHP simple if statement</title><summary type='text'>if statement in php is similar to almost all languages, and it necessary to make a usefull script.If statement enable you to execute a script only if a condition is true.Simple if statement:php code:  &lt;?php$age = 28; if ($age == 28) echo "hello ! Your age is 28"; ?&gt;   PR: wait... I: wait... L: wait... LD: wait... I: wait...wait... C: wait... SD: wait...Display:  hello ! Your age is 28   PR: wait.</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/4943134834957725267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=4943134834957725267&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4943134834957725267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4943134834957725267'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-simple-if-statement.html' title='PHP simple if statement'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-3361612431231733608</id><published>2008-08-24T14:05:00.000-07:00</published><updated>2008-08-24T14:52:33.197-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>PHP strpos a searching function</title><summary type='text'>strpos() is a very usefull php function that will find a string into another string.This function takes two parameters: the string your are searching in and the string you are searching for, and it returns the position of the first match, or false if not found.PHP Code:$mystring = "May 16, 1990" ;$search = "19" ;$pos = strpos( $mystring , $search ) ;echo $pos ; Display:8  Note:PHP Start from 0, </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/3361612431231733608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=3361612431231733608&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/3361612431231733608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/3361612431231733608'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-strpos-searching-function.html' title='PHP strpos a searching function'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-8911082836041294645</id><published>2008-08-23T06:27:00.000-07:00</published><updated>2008-08-23T08:50:28.524-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='4-Server config'/><title type='text'>Run php script in html pages</title><summary type='text'>Many people between us want to be able to put their php scripts in html pages without renaming them to .php extension, and here we will get the solution ...We know that php script can't be executed unless two conditions:-Must be in a php file.-Must be between the tags &lt;?php and ?&gt;But today we will talk about a great solution; you will learn how to put php script in html file.This is very helpful </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/8911082836041294645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=8911082836041294645&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8911082836041294645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8911082836041294645'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/run-php-script-in-html-pages.html' title='Run php script in html pages'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7485611601780428006</id><published>2008-08-22T08:39:00.000-07:00</published><updated>2009-03-09T06:13:59.611-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><title type='text'>PHP Force Download</title><summary type='text'>We used to just link to a file to download it, for example to let users download myfile.zip, you just link to it: domain.com/myfile.zip ...But the problem is, what if you want to let user download a html file or maybe php file without executing it ? I mean if you link to file.html it will just load it, and not download and save it, so how to do that ?the answer is very easy, for example </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7485611601780428006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7485611601780428006&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7485611601780428006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7485611601780428006'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-force-download.html' title='PHP Force Download'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-53948255895741796</id><published>2008-08-19T01:56:00.000-07:00</published><updated>2008-08-22T02:48:02.659-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Server variables'/><title type='text'>PHP Get current file name and url</title><summary type='text'>There are many ways to get the current page url or the name of the current file.How to get the current URL?To get the current url ( relative to the document root), you may use this script:  &lt;?php $URL = $_SERVER['PHP_SELF'];echo $URL;?&gt; If your page is www.domain.com/folder1/page.php, this code will display: "/folder1/page.php" .But if your page is www.domain.com/folder1/page.php?a=25&amp;b=12 , it </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/53948255895741796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=53948255895741796&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/53948255895741796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/53948255895741796'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-get-current-file-name-and-url.html' title='PHP Get current file name and url'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-4107036575170015178</id><published>2008-08-19T01:13:00.000-07:00</published><updated>2008-08-19T01:42:10.766-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Server variables'/><title type='text'>HTTP_REFERER: Find the referrer page with php</title><summary type='text'>It's very easy to get the referrer page with php, it's just one line of code:  &lt;?php $URL = $_SERVER['HTTP_REFERER'];echo $URL;?&gt; $_SERVER['HTTP_REFERER'] is a php server variable that enable you to get the url of the referrer page, from where your visitor is coming.Referer script is used for many reasons, some of them are creating web traffic statistics, or allowing only visitors from a one </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/4107036575170015178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=4107036575170015178&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4107036575170015178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4107036575170015178'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/httpreferer-find-referrer-page-with-php.html' title='HTTP_REFERER: Find the referrer page with php'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-4614758486209290749</id><published>2008-08-14T06:09:00.000-07:00</published><updated>2008-08-14T06:47:35.696-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sessions'/><title type='text'>PHP Sessions</title><summary type='text'>Sessions are a way to save visitor's informations while he is connected to your website. Session is a number of variables that contain informations about the visitor like his name, username, ID ...You may see the how sessions work when you login is some websites, and they show up your name in all pages.Start a session:Every time you want to use sessions, the first thing you should remember is to </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/4614758486209290749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=4614758486209290749&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4614758486209290749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/4614758486209290749'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-sessions.html' title='PHP Sessions'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7346693011743027782</id><published>2008-08-13T06:02:00.000-07:00</published><updated>2008-08-13T08:15:40.952-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>PHP Trim()- String functions</title><summary type='text'>Trim() is a php function that strips whitespaces from the    beginning and end of a string.For example:$mystring = trim( "   The free php sources   ") ;echo $mystring ; Display:The free php sources  //No whitespacesWhat characters do Trim() strip ?Trim function will strip the following characters:             " " (ASCII 32 ): an ordinary space.                        "\t" (ASCII 9 ): a tab.</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7346693011743027782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7346693011743027782&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7346693011743027782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7346693011743027782'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-trim-string-functions.html' title='PHP Trim()- String functions'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-8553453618952818943</id><published>2008-08-12T08:02:00.000-07:00</published><updated>2008-08-12T10:40:20.091-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><title type='text'>PHP file upload script</title><summary type='text'>Firstly, to let visitors upload a file, you must create a form so enable users to choose a file:In your html page, copy this:&lt;form enctype="multipart/form-data" action="uploader.php" method="POST"&gt;Choose a file to upload: &lt;input name="uploadedfile" type="file" /&gt;&lt;input type="submit" value="Upload File" /&gt;&lt;/form&gt;  This will enable the user to choose what file to upload and click "Upload File" </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/8553453618952818943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=8553453618952818943&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8553453618952818943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8553453618952818943'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-file-upload-script.html' title='PHP file upload script'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-9132749981445202088</id><published>2008-08-11T03:03:00.000-07:00</published><updated>2008-08-11T09:46:21.984-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><title type='text'>PHP fget: read a file line by line</title><summary type='text'>To get only one line of a text file, or get line by line, we have to use fget() php function instead of fread() .We saw in the previous lesson, that if you want to read a file, you can open it and put all it's content in some variable. But in this script we will see how to get the data from the file line by line until the end of file is reached:&lt;?php $filename = 'myfile.txt' ; $file = fopen($</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/9132749981445202088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=9132749981445202088&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/9132749981445202088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/9132749981445202088'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-fget-read-file-line-by-line.html' title='PHP fget: read a file line by line'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-2775708218323806037</id><published>2008-08-10T05:11:00.000-07:00</published><updated>2008-08-10T05:52:58.359-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>PHP String explode</title><summary type='text'>Explode is a very usefull php function to split s  string to an array of strings by the string delimiter.for example you have a sentence that you want to get its words, means to explode this sentence to an array of words, just like that:String: "I will go to USA the next week"make it an array:"I" , "will" , "go" , "to" , "USA" , "the" , "next" , "week"This is how it works:&lt;?php$string = 'I will </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/2775708218323806037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=2775708218323806037&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/2775708218323806037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/2775708218323806037'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-string-explode.html' title='PHP String explode'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-8845587515457953801</id><published>2008-08-09T05:46:00.000-07:00</published><updated>2008-08-09T05:47:37.149-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>PHP str_replace and str_ireplace</title><summary type='text'>str_replace is a php function that allow programmer to quickly replace parts of a PHP string with new values, this is used for example to replace all words in some article to a new words. So if you want to replace all words "Jack" to "Smith", this is very easy in php just with using str_replace.In this example we will try to replace "Today" to "Tomorrow" in the string: "Today is the first day of </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/8845587515457953801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=8845587515457953801&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8845587515457953801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/8845587515457953801'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-strreplace-and-strireplace.html' title='PHP str_replace and str_ireplace'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-5983014160398497679</id><published>2008-08-08T09:22:00.000-07:00</published><updated>2008-08-09T08:17:47.573-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3-Strings'/><title type='text'>PHP Strings</title><summary type='text'>Strings are a type of variable, they are used to store a text, and the most of time to be used in the echo function.creating a string variable is too easy !PHP Code:&lt;?php// creating a string with double-quotes$string1 = "Wellcome !" ; // creating a string with single quotes$string2 = 'Wellcome !' ;echo $string1 ;echo $string1 ;echo  'Wellcome !' ; ?&gt;  DisplayWellcome ! Wellcome ! Wellcome !In php</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/5983014160398497679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=5983014160398497679&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5983014160398497679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/5983014160398497679'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-strings.html' title='PHP Strings'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7712839621381235602</id><published>2008-08-07T08:23:00.000-07:00</published><updated>2008-08-08T02:32:45.343-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='2-Getting started'/><title type='text'>PHP Operators</title><summary type='text'>All programming languages use some operators to manipulate operations on variables and values such as assign, multiply, add, subtract and concatenate them, the operators may be between a variable and a value, or between two values, or between two variables.Operators have the form of symbols (such as + and -) and combinations of symbols (such as ++ and +=).Arithmetic operators:The Arithmetic </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7712839621381235602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7712839621381235602&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7712839621381235602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7712839621381235602'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-operators.html' title='PHP Operators'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-1610615746000757015</id><published>2008-08-06T05:51:00.000-07:00</published><updated>2008-08-07T12:48:41.260-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='2-Getting started'/><title type='text'>PHP Echo, the relation between php and html</title><summary type='text'>Echo is the most used php function to make php interact with html. In fact, echo is used to write some text into a html page, or may be in a text file, or any file that contain text.  &lt;?phpecho "wellcome !";?&gt;   Display:  Wellcome !  And in html:  &lt;html&gt;&lt;head&gt;&lt;title&gt;My Page Title here&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;?php  echo "Hello World ! ";?&gt;  &lt;/body&gt;&lt;/html&gt;Display:  &lt;html&gt;&lt;head&gt;&lt;title&gt;My Page Title </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/1610615746000757015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=1610615746000757015&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/1610615746000757015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/1610615746000757015'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-echo-relation-between-php-and-html.html' title='PHP Echo, the relation between php and html'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7476175453893629059</id><published>2008-08-05T12:31:00.000-07:00</published><updated>2008-08-06T10:58:19.195-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='2-Getting started'/><title type='text'>PHP Variables</title><summary type='text'>The most known difference between php and other languages, is that in php we don't need to declare variables, we just use them and they are automatically declared and with the right type !What are Variables ?Variable are some area, block or memory space to store data, a value such a text or number or array or anything else.How to use Variables in php?In our script, we can use variables over and </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7476175453893629059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7476175453893629059&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7476175453893629059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7476175453893629059'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-variables.html' title='PHP Variables'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-78241840447373401</id><published>2008-08-05T11:51:00.000-07:00</published><updated>2008-08-06T10:57:44.971-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='2-Getting started'/><title type='text'>PHP Syntax</title><summary type='text'>Statement and semicolons in php.In php, and like most languages, at the end of each php instuction, we must add a semicolon, for example:&lt;?php    echo "Hello Jack, ";   echo "You are in our member page ! ";?&gt;  Display :Hello Jack, You are in our member page ! Comments in php.To add comments to your php script, we use // for one line comments, or both /*  and  */ for multiline and large block </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/78241840447373401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=78241840447373401&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/78241840447373401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/78241840447373401'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-syntax.html' title='PHP Syntax'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-585964421289425816</id><published>2008-08-03T07:32:00.000-07:00</published><updated>2008-08-13T09:35:44.055-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='1-General'/><title type='text'>PHP Script installation, PHP and HTML</title><summary type='text'>After the introduction, we will talk few about the php script installation and the php within html.Were the php script must be ?The php script can be a whole file, all the file is a php script, or it may be some part of the page, a small part of a html page.Anywhere you put your php script, the rule you must follow is that the php script should be contained within the following &lt;?php  and ?&gt;   </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/585964421289425816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=585964421289425816&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/585964421289425816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/585964421289425816'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-script-installation.html' title='PHP Script installation, PHP and HTML'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-911328398385693979</id><published>2008-08-02T09:21:00.000-07:00</published><updated>2008-08-06T10:52:46.152-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='1-General'/><title type='text'>PHP Introduction</title><summary type='text'>PHP is the most know language available on website, and the most used by the webmasters.What is PHP?Php is a "server-side language", what this means ?  This mean that, unlike Javascript and html, the php script is executed on the server side, the client ( website visitor) will not get any php script and will not do any modification to the html page, just the server will add some modifications to </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/911328398385693979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=911328398385693979&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/911328398385693979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/911328398385693979'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-introduction.html' title='PHP Introduction'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-3808437486674010330</id><published>2008-08-02T07:59:00.000-07:00</published><updated>2008-08-07T10:53:20.964-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='files'/><title type='text'>PHP files, how to read and write to files ?</title><summary type='text'>In this lesson we will talk about using files in php: Reading, Writing and overwriting files.To open a fileThe first thing, before reading or writing to a file, we need to open it, to be ready.To open a new file in php, use this script:$filename = "myfile.txt";$handle = fopen($filename, "r");This is very easy ! Yes ?$filenam is just the name and path of the file you want to open to eighter read </summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/3808437486674010330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=3808437486674010330&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/3808437486674010330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/3808437486674010330'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/php-files-how-to-read-and-write-to.html' title='PHP files, how to read and write to files ?'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4454143640288911354.post-7507594246756495506</id><published>2008-08-01T08:56:00.000-07:00</published><updated>2008-08-06T10:52:11.604-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='1-General'/><title type='text'>learn every thing about the GREAT PHP</title><summary type='text'>learn every thing about the GREAT PHP just here, step by step.This is a top new blog, (start today, August 1st, 2008). And I will post just here every thing about PHP, scripts and free code, about Opening files, using mail(), connecting to Mysql, using servers variables, and all ...just wait few hours and you will get the best.Thank you.</summary><link rel='replies' type='application/atom+xml' href='http://myphpsource.blogspot.com/feeds/7507594246756495506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4454143640288911354&amp;postID=7507594246756495506&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7507594246756495506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4454143640288911354/posts/default/7507594246756495506'/><link rel='alternate' type='text/html' href='http://myphpsource.blogspot.com/2008/08/learn-every-thing-about-great-php.html' title='learn every thing about the GREAT PHP'/><author><name>ILyes</name><uri>http://www.blogger.com/profile/16444029276413572899</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
