Saturday, May 8, 2010

PHP Syntax

PHP scripting tag always starts with <?php and ends with ?>. PHP scripting tag can be use anywhere in the document.

There are four sets of tags which can be used to denote blocks of PHP code. Of these, only two (<?php. . .?> and <script language=”php”>. . .</script>) are always available; the others can be turned on or off from the php.ini configuration file. While the short-form tags and ASP-style tags may be convenient, they are not as portable as the longer versions. Also, if you intend to embed PHP code in XML or XHTML, you will need to use the <?php. . .?> form to conform to the XML.

To activate recognition for short tags, you must make sure that the short_open_tag switch is set to On in php.ini:[Read More...]

Thursday, May 6, 2010

How PHP Is Parsed

So you have a file, and in that file you have some HTML and some   PHP code. This is how it all works, assuming a PHP document with an extension of   .php.

  1. The Web browser requests a document with a .php extension.
  2. The Web server says, “Hey! Someone wants a PHP file.   Something else needs to deal with it,” and sends the request on to the PHP   parser.
  3. The PHP parser finds the requested file and scans it for PHP   code.
  4. When the PHP parser finds PHP code, it executes that code   and places the resulting output (if any) into the place in the file formerly   occupied by the code.
  5. This new output file is sent back to the Web server.
  6. The Web server sends it along to the Web browser.
  7. The Web browser displays the output.  [Read More...]
Blog Directory
Blog Directory
BritBlog
Technology Blogs - Blog Rankings
blogarama - the blog directory
Site tools
Site tools
GetBlogs Blog Directory
Computers Blogs
Blog Listings

Saturday, May 1, 2010

PHP Installation

  • Web server software. Most sites use Apache as the web server software. Moodle should work fine under any web server that supports PHP, such as IIS on Windows platforms.
  • PHP scripting language. (Please note that there have been issues installing Moodle with PHP-Accelerator). There are currently two versions (or branches) of PHP available: PHP4 and PHP5. See the PHP Moodle version requirements here PHP settings by Moodle version. [Read More...]

    Friday, April 30, 2010

    Works with the Web Server

    The normal process a Web server goes through to deliver a page to a browser is as follows. It all begins when a browser makes a request for a Web page. Based on the URL, the browser resolves the address of the Web server, identifies the page it would like, and gives any other information the Web server may need. Some of this information is about the browser itself, like its name (Mozilla), its version (4.08), or the operating system (Linux). Other information given the Web server could include text the user typed into form fields. [ read more...]

    Thursday, April 29, 2010

    Better Th an Its Alternatives

    In previous years, skeptics may have asked, Why should I learn PHP? Today, PHP’s popularity is enough to generate interest in learning it. PHP is a standard feature offered by most Web hosting companies. However, it is interesting to understand.
    Why so many people choose PHP over alternatives. [ Read More…]

    Tuesday, April 27, 2010

    What Does PHP Do?

    PHP does anything you want, except sit on its head and spin. Actually, with a little on-the-fly image manipulation and Dynamic HTML, it could probably do that, too.
    According to the PHP manual, "The goal of the language is to allow Web developers to write dynamically generated pages quickly."
    [ Read More… ]

    Monday, April 26, 2010

    A Brief History of PHP

    In 1994, an incredibly forward-thinking man named Rasmus Lerdorf developed a set of tools that used a parsing engine to interpret a few macros here and there. They were not extravagant: a guest book, a counter, and some other “home page” elements that were cool when the Web was in its infancy. He eventually combined these tools with a form interpretation (FI) package he had written, added some database support, and released what was known as PHP/FI. [ Read More ]

    Friday, April 23, 2010

    Why PHP?

    You may be wondering why you should choose PHP over other languages such as Perl or even why you should learn a scripting language at all. I will deal with learning scripting languages first. Learning a scripting language, or even understanding one, can open up huge new possibilities for your website. Although you can download pre-made scripts from sites like Hotscripts, these will often contain advertising for the author or will not do exactly what you want. With an understanding of a scripting language you can easily edit these scripts to do what you want, or even create your own scripts…. [ Read More ]

    PHP and MySQL Web Development (4th Edition)

    Wednesday, April 21, 2010

    What is PHP?

    PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. PHP is relatively new (compared to languages such as Perl (CGI) and Java) but is quickly becomming one of the most popular scripting languages on the internet.

    Tips:-
    PHP stands for PHP: Hypertext Preprocessor. Read More...

    PHP Introduction

    Up until recently, scripting on the internet was something which very few people even attempted, let alone mastered. Recently though, more and more people have been building their own websites and scripting languages have become more important. Because of this, scripting languages are becomming easier to learn and PHP is one of the easiest and most powerful yet.