Basic PHP Programming

Your guide to basic PHP Programming

PHP Installation

without comments

php.jpg

The PHP Windows installer works great on Windows XP Professional running IS. What the installer does is to install the CGI version of PHP for IIS, PWS, and Xitami. It also configures the web server. Don’t forget to select the appropriate build.

For Linux/Unix users, there is a PHP Source code available on the official PHP site. Compile it and voila! Make sure that you check first your web-server since most of the Linux/Unix versions already have PHP installed in them (neat huh?). Another option is to install it with an installer CD that comes with the Operating System.

Some PHP installer downloads are just add on’s. You would probably need a web server to install PHP. But before you install PHP, check if your web server is working properly.

PHP also allows you to build your site using PHP on Windows but you can still install and run the same code on Linux/Unix servers.

Written by Bart

July 10th, 2010 at 11:18 am

Posted in Info

PHP Ver.4

without comments

読者ã®çš†ã•ã‚“ã¯ã€ã•ã‚‰ã«æ–°ã—ã„ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãŒã‚ã‚‹ã“ã¨ã«ãŠæ°—付ãã§ã—ょã†ã€‚ ã“ã®æŠ•ç¨¿ã§ã¯æ—§ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã‚る「PHP Ver.4ã€ã‚’å–り上ã’ãŸã„ã¨æ€ã„ã¾ã™ã€‚

PHPã®Ver. 4.1.0ã§ã¯ã‚¹ãƒ¼ãƒ‘ーグローãƒãƒ«ãƒ»ã‚¢ãƒ¬ã‚¤ã‚’採用ã—ã¾ã—ãŸã€‚ãã®ãŸã‚ã€4.1.0以å‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã¯ã‚¹ãƒ¼ãƒ‘ーグローãƒãƒ«ã§æ›¸ã‹ã‚ŒãŸã‚¹ã‚¯ãƒªãƒ—トã¯å®Ÿè¡Œã§ãã¾ã›ã‚“。4.1.0以å‰ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’使用ã—ã¦ã„ã‚‹å ´åˆã¯ã€Œ$HTTP_POST_VARSã€ãªã©æ—§åž‹ã®ã‚¢ãƒ¬ã‚¤ã‚’使用ã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚

Ver. 4.2.0ã¯ã‚‚ã†å°‘ã—複雑ã§ã™ã€‚ PHPã®ã“ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã¯ã€Œregister_globalsã€ã®ãƒ‡ãƒ•ォルト設定ãŒã€ŒOffã€ã«å¤‰ã‚りã¾ã—ãŸã€‚「register_globalsã€è¨­å®šãŒã€ŒOnã€ã§ã‚ã‚‹ã“ã¨ã‚’剿ã¨ã—ã¦æ—§ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§é–‹ç™ºã•れãŸã‚¹ã‚¯ãƒªãƒ—トãŒã‚りã¾ã™ã€‚ã“れらã®ã‚¹ã‚¯ãƒªãƒ—トã¯Ver. 4.2.0ã§ã¯å®Ÿè¡Œã§ããªã„å ´åˆãŒã‚りã¾ã™ã€‚ã“ã®å•題を解決ã™ã‚‹ã«ã¯ã€ã“ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§å®Ÿè¡Œã§ãるよã†ã«ã‚¹ã‚¯ãƒªãƒ—トã®ã‚³ãƒ¼ãƒ‡ã‚£ãƒ³ã‚°ã‚’変ãˆã¦ãã ã•ã„。

Ver. 4.3.0ã§ã¯PHPã®CUãƒãƒ¼ã‚¸ãƒ§ãƒ³ã«é‡è¦ãªæ”¹è‰¯ãŒæ–½ã•れã¾ã—ãŸã€‚CUã¯ã€PHPãŒã‚½ãƒ¼ã‚¹ã‚³ãƒ¼ãƒ‰ã‹ã‚‰ã‚³ãƒ³ãƒ‘イルã•れるã¨ãƒ‡ãƒ•ォルトã§è‡ªå‹•çš„ã«ãƒ“ルドã•れã¾ã™ã€‚ビルドã•れãªã„よã†ã«ã™ã‚‹ã«ã¯ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã‚ªãƒ—ションã§ã“ã®æ©Ÿèƒ½ã‚’無効ã«ã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚

Ver. 4.3.1ã¯4.3.0ã«ãŠã‘るセキュリティ上ã®å•題点を修正ã—ãŸã‚‚ã®ã§ã™ã€‚

Written by sayuri

July 10th, 2010 at 10:00 am

Posted in Imp @ja

PHP and your files

without comments

php4.jpg
PHP is like a secretary.

I’m really liking these analogies I’m using (yeah, I’m weird that way). Anyway, as I was saying… PHP has the ability to interact with your file system. It means that PHP can write and reads into any file in your directories and files that are on your local hard disk (or other computers if they’re in a network). Aside from that, if a file doesn’t exist, PHP can create that file, directories, and copy files. It can also rename and/or delete files and change their attributes. If you want to create a back-up then PHP can do it for you.

Written by Bart

June 10th, 2010 at 10:33 am

Posted in file system

Tagged with ,

PHP Tutorial

without comments

The tutorial of the PHP aimed the users who have no previous experience with programming in PHP or any other programming language. But not at all there’s no guarantee to reach this goal to be reached, its very likely that there are places where the user is assumed to know things he or she wont know at this point of learning PHP.

Written by Bart

May 10th, 2010 at 6:38 am

Posted in Info

PHP and the Web

without comments

php.jpg

PHP has many features that are designed particularly for Web site use. PHP interacts with HTML forms so that PHP can display on HTML and it also has the ability to process the information that users type in. PHP acts like a body-guard or bouncer of sorts and it secures Web pages. It allows the developer to create secure Web pages with features that requires users to enter a valid username and password before they can view the content. PHP also communicates with databases so they can both store and retrieve information from and to the users. Brilliant, isn’t it?

Written by Bart

April 10th, 2010 at 10:16 am

Posted in Web

Why PHP? 3

without comments

php2.jpg

What more benefits of using PHP? Can’t the list be longer? Okay, okay… I’m getting to it.

PHP is customizable. Again, a nod to its being open source. That fact allows programmers access to core elements of the language (to the point of letting them extend the language) to modify the PHP software as needed to suit their own needs. This way, PHP softwares are always getting improvements. Imagine, a thousand of programmers working on the PHP code making the program dynamic – just perfect for the constantly changing Web.

Whew. Is that it? The last three posts are just the base, and more of the icing on the next posts.

Written by Bart

March 10th, 2010 at 10:05 am

Posted in Benefits

Tagged with ,

Dynamic content web sites

without comments

global computer language
In learning PHP and MySQL you need to understand that one of the greatest uses of these programs is in the form of Content Management System (CMS). As you can see, CMS is the main support of a dynamic web site. In fact, successful publishing sytems like Drupal and WordPress utilize server side scripting and a database, in which the top choices are often PHP and MySQL.

But PHP and MySQL are not the only scripting languages and databases in the market. There are also others like Oracle and DB2 which sometimes offer better choice than the former. The reason why PHP and MySQL have become popular choices however is that PHP is more manageable while MySQL is a placed in a more established and secure Open Source database position.

Written by editor

February 10th, 2010 at 9:33 am

Posted in Info

Why PHP? 2

without comments

PHP programming language

without comments

PHP now known as “PHP Hypertext Preprocessor”, but originally “Personal Home Page Tools” is a widely used open-source programming language used primarily for server-side applications, to develop dynamic web content such as the MediaWiki software. It can be seen as an open source alternative to Microsoft’s Active Server Pages (ASP) system and to the CGI/Perl system.

Its ease of use and similarity with the most common structured programming languages, most notably C and Perl, allows most experienced programmers to start developing complex applications with a minimal learning curve. It also enables experienced developers to get involved with dynamic web content applications without having to learn a whole new set of functions and practices.

Written by Bart

December 1st, 2009 at 11:29 am

Posted in Info,Information

Zend PHP framework upgraded

without comments

Zend Technologies plans to announce availability of the open source Zend Framework 1.5 for building PHP (Hypertext Preprocessor) applications next week. With this release, Zend Framework is to be made available in a version of the Ubuntu Linux distribution in April.

Featuring contributions and sponsorships from such vendors as Microsoft, IBM, and Google, Zend Framework 1.5 supports OpenID and Microsoft InfoCard identity management technologies. Also supported is LDAP authentication and the Nirvanix media content storage and delivery network. PHP programmers using the framework can access Nirvanix capabilities. Zend is offering a Zend Framework subscription support service, featuring consulting and a guaranteed per-incident response time.

Written by Bart

November 25th, 2009 at 1:35 pm

Posted in Info