Posted in Imp @ja | January 4th, 2009 | No Comments »

イメージ提供:farm1.static.flickr.com
URLをブラウザーのアドレスバーにタイプする時、例としてhttp://www.fairgound.com とタイプし、Enterをクリックしたとしましょう。あなたがしていることは、あるウェブサーバーにリクエストを送り、そのサーバーがある場所にあるウェブページの内容を取ってくるのです。 あなたが見るブラウザーはあなたが依頼した実際のコードのページのHTMLの結果であって、実際のコードがサーバー側のスクリプトを使って見せるページのアウトプットではありません。 パーシングというのは実際のコードをHTMLに変換する過程です。ウェブサーバーのパーサーエンジンが変換の責任を持ちます。あなたのブラウザーが見せるHTMLのアウトプットの裏には長く複雑なPhpコードの迷路が存在します。あなたがURLをリクエストすると、ウェブページが解析され、サーバーがあなたのブラウザーにHTMLアウトプットを送る前にHTMLに変換されたものを送ります。
Posted in Information, News | December 13th, 2008 | No Comments »

Say goodbye to the ‘ol 5.2.7. and say hello to 5.2.8.:
Due to a security bug found in the PHP 5.2.7 release, it has been removed from distribution. The bug affects configurations where magic_quotes_gpc is enabled, because it remains off even when set to on. In the meantime, use PHP 5.2.6 until PHP 5.2.8 is later released.
The PHP Development Team would like to announce the immediate availability of PHP 5.2.8. This release addresses a regression introduced by 5.2.7 in regard to the magic_quotes functionality, which was broken by an incorrect fix to the filter extension. All users who have upgraded to 5.2.7 are encouraged to upgrade to this release. Alternatively you can apply a work-around for the bug by changing “filter.default_flags=0″ in php.ini.
Take out 5.2.7. as soon as possible and use the newest one for security’s sake!
Source
Posted in Imp @ja | November 27th, 2008 | No Comments »

画像転載元:philrandolph.com
PHPのような、新しい言語を学ぶのは少し勇気が要ります。他の言語になれていない人にとっては特にそうでしょう。 でも、実はその初めの一歩が一番大変なのです。 いったん始めてしまえば、あとは練習あるのみです。 それには、まずは忍耐強く基本を一つずつ学ぶ必要があります。 PHPの基本を学ぶヒントは、次のようなものがあります。
PHPは、HTMLに不足している機能を補足するスクリプト言語です。 PHPによって、データの収集や処理が可能になります。 この技術を使えば、さらに細分化したデータを生成することが可能になるのです。
- まずは、道具を揃えましょう。テキストエディタが必要です。
- FTPも必要です。FTPはあなたのPCとリモートサーバとの間でファイルをやり取りするためのもので、LANやインターネットに接続するのに使います。
- PHPを使ってファイルを作成する練習をしましょう。
さらに詳しいことは、インターネット上の情報やチュートリアルを参考にしてください。
Posted in Basic Programming | November 25th, 2008 | No Comments »

Image Source: img141.imageshack.us
Creating a shopping cart with PHP is, quite amazingly, very simple to do. And if you are able to do it correctly, it could spell a big difference between a very efficient system or just a badly written one. The stock’s details should be stored in the database and the only information that is left is the required information, which is the identification of the product that has been added into the cart. The shopping cart must be accessible and there must be ways to access it. One way to do is, the most popular way, having a click button that says ‘Add To Cart’ on that particular page. What it should be able to do next is to be able to update the products in the shopping cart before a new product range shows up.
Posted in Basic Programming | October 6th, 2008 | No Comments »

Image Source:farm1.static.flickr.com
When you type in, a URL in the address bar of your browser, like for example, http://www.fairgound.com and then you click Enter, what you’re actually doing is, you are sending a request to a particular web server that keeps the URL that you typed in and then it gets the contents from the specified location of that particular web page. What you are seeing in the browser is the HTML result of the actual code of the page you requested not the actual code most specially when the page uses server side scripting to show the output of the page. Parsing is the process of converting the actual code to HTML. Parser engines of the web servers are responsible for the conversion. Behind the HTML output that you are seeing in your browser is a maze of long, complex Php code. What happens is you request the URL, the web page is parsed, then server sends back the HTML generated before the server sends the HTML output to your browser.
Posted in Basics | September 29th, 2008 | No Comments »

Image Source:philrandolph.com
Trying to learn a new programming language like PHP can get a bit intimidating, especially if you have never had experience with other programming languages before. But the toughest part is really the starting point. Once you get past that, it is really just a matter of practicing. Being patient and learning the basics one at a time will help you get there. Here are some tips to help you learn simple PHP:
PHP is a language that uses scripting to supplement functions that HTML lacks. With PHP, you can collect and process data. Using this skill, you can create other functions to produce data that is more specialized.
- Get the tools. You will need a text editor.
- Get an FTP. FTP is used to exchange files from your computer to a remote server. We use to this to connect to a LAN or to an Internet site.
- Practice creating files using PHP.
Use online resources and tutorials for added reference.
Posted in Advanced Programming, Basic Programming, Basics, Debugging, Information, News, Sample Code, Template | August 11th, 2008 | No Comments »

Image source: www.basicphpprogramming.com
A programmer’s job requires him to keep his eyes focused on the glowing computer screen and keying in data by constantly pounding the keys of the keyboard. Programmers love what they do that it even makes them glued on their seats in front of their PCs which even they admit to be obsessive. But the consequence of their love affair with the computer is the painful overuse injuries that can keep them from doing their fist love—programming— and even simple tasks such as opening a mineral water bottle and turning the doorknob.
Repetitive Strain Injuries are acquired by the overuse of muscles and/or holding them in an unnatural position for a long time.
There are two common repetitive strain injury or RSIs are carpal tunnel syndrome and forearm tendonitis. If untreated, carpal tunnel syndrome can sometimes cause permanent nerve damage, and forearm tendonitis can harm muscles, tendons and ligaments that are essential for repetitive motion.
Standard keyboards require programmers to hold their hand in a fixed and unnatural position that can strain the forearms. Some computer tables may also be too high for them that when they key in data, their wrists are flexed which puts too much pressure on the median nerve. Constant pounding on the keys can cause tiny tears in the muscles and ligaments. In case no adjustments are made, this minor strain and discomfort can eventually lead into disabling injuries that can take months to heal. In some cases, even turning a doorknob produces extreme pain that is cause by hypersensinized nerves on the wrists.
Good news: RSIs are preventable and treatable. Regular breaks from typing, exercises concentrating on the hands, wrists and fingers, maintaining good posture in sitting and proper arm placement at the keyboard and a healthy workplace will go a long way towards preventing them.
Posted in Basic Programming, Sample Code | July 1st, 2008 | No Comments »
Arrays are what tables are to C-based programming languages and what databases are for SQL-based languages. Arrays or tables as they are sometimes called can be used to store the contents of several variables and to create one, you use the following syntax:
Array(key=>value)
The array in the syntax refers to the name of the array being created, the key is the index which is set automatically to a numeric character or string if none is specified. Value is the assigned value or content of the said array which can be seen easily in the following array creation example:
$b=array('z'=>‘Comedy”,’y'=>”Horror”,’x;’=>”Action”);
print_r($b);
?>
This piece of code would produce an output of :
Array ([0] => Comedy [1] => Horror [2] => Action)
More on array functions in the next posts.
Posted in Basic Programming | June 1st, 2008 | No Comments »
The first step to get us on our way to programming in PHP would be to set up an ideal development environment. You need a Web Server software like Apache (which would be what we are going to use) which is only one of many out there. Most of these web servers are open-source meaning that they are free. Now, being free doesn�t mean that they are not up to standards for there are standards that are set by independent groups that are comprised of the many developers who together formulate or give a loosely defined set of standards for others to follow. Apache has versions for Linux but there are also for the Windows, Unix and Mac OS. The installer can be downloaded along with the detailed manual from PHP.net
Posted in News | May 28th, 2008 | No Comments »
Many web designers and programmers are in the look out for the latest PHP6. But there is no need to torture yourself for waiting that long. Everything that is expected to come out in PHP 6 can also be expected from PHP 5.3.
This will be such a good news for those programmers who want to use the new features, but their hosting providers are not yet ready for an upgrade to PHP 6 soon. Many companies will probably wait for 6.1 to be released before upgrading.
The new features offered by PHP 5.3 are namespaces, late static binding mysqlnd.