Saturday, July 26, 2008
Major Changes betwwen PHP4 and PHP5 XML support
Two extensions have changed.The XSLT extension present in PHP4 is not the XSL extension in PHP 5.Additionally, the XML-DOM extension in PHP 4 is not the DOM extensionis PHP 5. What this means is that the syntax of the functions in theseextensions have changed but the purpose of the extensions has notchanged.
PHP 5 Object Model
PHP 5 there is a new Object Model. PHP's handling of objects has been completely rewritten, allowing for better performance and more features. In previous versions of PHP, objects were handled like primitive types (for instance integers and strings). The drawback of this method was that semantically 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 (one can think of a handle as an object's identifier).Many PHP programmers aren't even aware of the copying quirks of the old object model and, therefore, the majority of PHP applications will work out of the box, or with very few modificationsThe new Object Model is documented at the http://www.php.net/manual/en/language.oop5.php
PHP 5 array types
Types of arrays:
Numerically indexed arrays
Associative arrays
Multidimensional arrays
Sorting arrays
Numerically indexed arrays
Associative arrays
Multidimensional arrays
Sorting arrays
how write javascript code into PHP code ?
You just echo / print the javascript like you would do with html, like:
echo and then start script tag here
write the code echo alert();
echo and script tag end here
echo and then start script tag here
write the code echo alert();
echo and script tag end here
Friday, July 25, 2008
include path settings , without access to php.ini
If you are hosting on a Linux server you may (Depending on your host) be able to use .htaccess this file must be in the root of the web directory.The format is along the lines of (For PHP4 Module):-php_value include_path .:/path/that/you/want/to/usephp_value magic_quotes_gpc "off"php_value track_errors "on"
Pear Package PHP Description
What is PEAR?
how install the PEAR?
Quoted from PEAR's homepage at http://pear.php.net/"PEAR is a framework and distribution system for reusable PHP components."So what can PEAR be used for?In short it's will be a full framework for building php applications, meaning there will be classes for most purposes you can use instead of writing your own code. If you are a current/former perl programmer PEAR has simalaraties to perl's CPAN framework. For more information about PEAR and how you get started look at the following articles:
http://www.onlamp.com/pub/a/php/2001/05/24/pear.html
http://www.onlamp.com/pub/a/php/2001/07/19/pear.html
The official PEAR homepage is found here
how install the PEAR?
Quoted from PEAR's homepage at http://pear.php.net/"PEAR is a framework and distribution system for reusable PHP components."So what can PEAR be used for?In short it's will be a full framework for building php applications, meaning there will be classes for most purposes you can use instead of writing your own code. If you are a current/former perl programmer PEAR has simalaraties to perl's CPAN framework. For more information about PEAR and how you get started look at the following articles:
http://www.onlamp.com/pub/a/php/2001/05/24/pear.html
http://www.onlamp.com/pub/a/php/2001/07/19/pear.html
The official PEAR homepage is found here
Labels:
Pear PDo,
PEAR PHP,
Pera packages,
PHP Pear
Subscribe to:
Posts (Atom)