top_outer_strip
 
logo slogan  
contactus
 
top_outer_strip
top_outer_strip
 
Knowledge Base:
PHP (HyperText PreProcessor):
PHP: hypertext preprocessor (the name being a recursive acronym) is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. As a general-purpose programming language, PHP code is processed by an interpreter application in command-line mode performing desired operating system operations and producing program output on its standard output channel.
Syntax:
PHP only parses code within its delimiters. Anything outside its delimiters is sent directly to the output and is not processed by PHP, however, non-PHP text is still subject to control structures described within PHP code. The most common delimiters are<?php to open and ?> to close PHP sections.<script language="php"> and </script> delimiters are also available.
php hypertext preprocessor
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '
Hello World
'; ?>
</body>
</html>
Data Types:
PHP stores whole numbers in a platform-dependent range. This range is typically that of 32-bit signed integers. Unsigned integers are converted to signed values in certain situations, this behavior is different from other programming languages. Integer variables can be assigned using decimal(positive and negative), octal, and hexadecimal notations. Floating point numbers are also stored in a platform-specific range. They can be specified using floating point notation, or two forms of scientific notation. PHP has a native Boolean type that is similar to the native Boolean types in Java and C++. Using the Boolean type conversion rules, non-zero values are interpreted as true and zero as false, as in Perl and C++. The null data type represents a variable that has no value.
Functions:
PHP has hundreds of base functions and thousands more via extensions. These functions are well documented on the PHP site; however, the built-in library has a wide variety of naming conventions and inconsistencies. PHP currently has no functions for thread programming, although it does support multiprocess programming on POSIX systems. Functions are not first-class functions and can only be referenced by their name, directly or dynamically by a variable containing the name of the function. User-defined functions can be created at any time without being prototyped. Functions can be defined inside code blocks, permitting a run-time decision as to whether or not a function should be defined. Function calls must use parentheses, with the exception of zero argument class constructor functions called with the PHP new operator, where parentheses are optional. PHP supports quasi-anonymous functions through the create_function() function, although they are not true anonymous functions because anonymous functions are nameless, but functions can only be referenced by name, or indirectly through a variable $function_name();, in PHP.
Objects:
Basic object-oriented programming functionality was added in PHP 3 and improved in PHP 4. Object handling was completely rewritten for PHP 5, expanding the feature set and enhancing performance. In previous versions of PHP, objects were handled like primitive types. The drawback of this method was that the whole object was copied when a variable was assigned or passed as a parameter to a method. In the new approach, objects are referenced by handle, and not by value. PHP 5 introduced private and protected member variables and methods, along with abstract classes and final classes as well as abstract methods and final methods. It also introduced a standard way of declaring constructors and destructors, similar to that of other object-oriented languages such as C++, and a standard exception handling model. Furthermore, PHP 5 added interfaces and allowed for multiple interfaces to be implemented. There are special interfaces that allow objects to interact with the runtime system.
Speed Optimization:
As with any interpreted language, PHP scripts are stored as human-readable source code and are compiled on-the-fly by the PHP engine. In order to speed up execution time and not have to compile the PHP source code every time the webpage is accessed, PHP scripts can also be stored in binary format using PHP compilers such as phc and roadsend.
Code optimizers aim to reduce the runtime of the compiled code by reducing its size and making other changes that can reduce the execution time with the goal of improving performance. The nature of the PHP compiler is such that there are often opportunities for code optimization, and an example of a code optimizer is the eAccelerator PHP extension.
Resources:
PHP includes free and open source libraries with the core build. PHP is a fundamentally Internet-aware system with modules built in for accessing FTP servers, many database servers, embedded SQL libraries such as embedded PostgreSQL, MySQL and SQLite, LDAP servers, and others. Many functions familiar to C programmers such as those in the stdio family are available in the standard PHP build. PHP allows developers to write extensions in C to add functionality to the PHP language. These can then be compiled into PHP or loaded dynamically at runtime. Extensions have been written to add support for the Windows API, process management on Unix-like operating systems .
 
software
software
software
software

Website Visitor

 
top_outer_strip
top_outer_strip
 
Software house in Pakistan Go to Home
Company Profile
Who We Are..?
Business Exposure
Vision & Mission
Client Portfolio
Contact Us
Software house in Pakistan Downloads Free Software
Software Products
Website Portfolio
Domain & Hosting - Small Business Plan
Domain & Hosting - Enterprises Business Plan
Online Jobs
Software Development Course
Website Development Course
Short Courses
Software house in Pakistan
Software Development
Website Development
Desktop Application Development
Network Application Development
Inertnet Application Development
E-Commerce Solution
Graphics Designing
Hardware Interfacing
 
top_outer_strip
© 2002 - 2012 Experts Soft. All Rights Reserved.