Http://techbbs.zol.com.cn/1/9_2116.html
Writing extensions I-PHP and ZendOriginal article: http://devzone.zend.com/public/view/tag/ExtensionPart I: Introduction to PhP and
First, make sure that you have configured Apache and PHP in your Linux.
Then you need to download a Zend optimizer from the official website ~
Address: http://www.zend.com/en/products/guard/downloads
Here we use zendoptimizer-3.3.0a-linux-glibc21-
120) {Throw new exception ("err_01: this data is too large... ") ;}Else {echo" the input value is normal ";}}try {checknum (1234);} catch (exception $ E) {# print the error message echo $ e-> getmessage (); # print the number of lines that throw the
PHP files include, include_once, require, and require_once statements.
1. Include ()
Include (/path/to/filename)
The include () Statement will contain a file at the location where it is called. A file contains the same content as the data
PHP is a server-side scripting language that is easy to learn and use. With little programming knowledge, you can use PHP to build a truly interactive web site. This tutorial does not want you to fully understand this language, but allows you to
PHP's built-in function file_get_contents must have been designed to read hard disk files. Therefore, when reading file content, if the disk is busy or data preparation is slow, file_get_contents will wait, expect that the data will arrive quickly
1. Javascript character escaping
JavaScript code involves three functions:Escape, encodeuri, encodeuricomponentCorresponding three decoding functions: Unescape, decodeuri, decodeuricomponent
1,You must use encodeuricomponent when passing parameters
Download the for Windows version from the PHP official website. A total of four versions are provided: vc9 x86 non thread safe, vc9 x86 thread safe, vc6 x86 non thread safe, and vc6 x86 thread safe. Briefly explain how to choose.
I. How to select
I. IntroductionObjective: To build a small web site with SSL and parse PHP scripts (applicable to embedded environments ).Author: sundy 2006-3-6E_mail: hysundy@163.comII. Environment ResourcesRedHat 8Mini_httpd_1.19 B modified versionPhp.4.4.2Iii.
Spl_autoload_register
(PHP 5> = 5.1.2) spl_autoload_register-register _ autoload () function
Description
Bool spl_autoload_register ([callback $ autoload_function])
Register the function to the SPL _ autoload function stack. If the functions in
Document directory
4 characters
7 Table
9 frame set
1HTML: Hypertext Markup Language (HTML)Markup Language) is a markup language used to describe Web documents. Images, text, and videos can be displayed.
☞Mark = Element
2. Basic Framework
Copyright statement: original works can be reproduced. During reprinting, you must mark the original publication, author information, and this statement in hyperlink form. Otherwise, legal liability will be held. Http://blog.csdn.net/mayongzhan-ma
PHP syntax has two assignment modes: Reference Assignment and non-Reference Assignment.
On the surface, we usually think like this: "The reference value assignment is that two variables correspond to the same variable (in C, it is actually a zval )
1. Create hashtable
Int zend_hash_init (hashtable * HT, // point to a hashtableuint nsize, // nsize indicates the maximum number of elements that the hashtable can possess. When we add new elements, this value determines whether to automatically
All PHP extensions follow a common structure
1. the header file contains (including all required macros and APIs). 2. c. Declare the export function. 3. Declare the Zend function block.
I. header file inclusionBy default, a new php_extname.h header
Key points:
1. Currently, method Overloading is not directly supported in PHP.
2. Use _ call in PHP to simulate method overloading.
test1 ($ P);} else {$ this-> Test2 ($ p );}}}} $ d1 = new D (); // the system automatically searches for the
Finally, access to databases above mysql4.1 through phpMyAdmin in PhP5 is implemented.
Before that, when phpMyAdmin is used for access, the system always prompts that MySQL extension cannot be loaded. A number of materials collected from the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service