PHP Comments

PHP supports ‘C‘, ‘C++‘ and Unix shell-style comments.

PHP Example:-

<?php

echo “This is a test”; // This is a one-line c++ style comment

/* This is a multi line comment

yet another line of comment */

echo “This is yet another test”;

echo “One Final Test”; # This is shell-style style comment

?>

The “one-line” comment styles actually only comment to the end of the line or the current block of PHP code, whichever comes first.[Read More...]

The Blog Resource Blog Blog Directory Vault Blogs Directory topblogging Blog Directory Chefsblogs.comOnline Marketing ToplistBlog Flux DirectoryBlogs by CountryBloghints.com Directory

Instruction Separation

Instructions are separated the same as in C or Perl – terminate each statement with a semicolon.

The closing tag (?>) also implies the end of the statement, so the following are equivalent:

[Read More...]

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...]Blog DirectoryBlog DirectoryBritBlogTechnology Blogs - Blog Rankingsblogarama - the blog directorySite toolsSite toolsGetBlogs Blog DirectoryComputers Blogs
Blog Listings

Posted in PHP. 1 Comment »

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...]
Posted in Uncategorized. Leave a Comment »

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...]

Web Hosting Blogs - BlogCatalog Blog DirectoryWeb Design blogs & blog postsWeb Designmobiltbredband.net

Follow

Get every new post delivered to your Inbox.