PHP Group will no longer support PHP by the end of 4 to 07, so I did this test to make everyone more confident to transfer to the PHP 5 platform, look at PHP 4. is x really better than our PHP 5. x is better! The test results are obvious, that is,
Recently to use the new PHP5, but do not want to affect the original PHP4, so found a lot of coexistence methods, but are not ideal, and finally
Found a better article, speaking of the use of Apache to achieve coexistence, with different ports, very
4 Common ways to run PHP
This article mainly introduces PHP 4 kinds of common operating modes, this article explains the CGI, FastCGI, Apache2handler, CLI and other 4 kinds of operation, the need for friends can refer to the following
Sapi:server
: This article mainly introduces object-oriented PHP (4). If you are interested in the PHP Tutorial, refer to it.
";}} ClassAnimalimplementsICanEat {// after an interface is implemented, you must provide the specific implementation of the methods
: This article mainly introduces php (4)-functions. For more information about PHP tutorials, see. Functions in PHP do not need to be defined before being called;
All functions and classes in PHP have a global scope, which can be defined within a
Java programmers learn php-4.gettype () settype () 1. gettype () get the data type & nbsp; for example, gettype (345); return integer & nbsp; gettype (some_object ); return object & nbsp; some other quick types to check for java programmers to learn
How to use the Oracle database in PHP (4), read how to use the Oracle database in PHP (4 ), using OCI to input data to the data table ">
Same as above, but it is written using OCI.
Related PHP code:
If ($ submit = "click "){
// The submit button
Java programmers learn php-4.gettype () settype () 1. gettype () get the data type & nbsp; for example, gettype (345); return integer & nbsp; gettype (some_object ); return object & nbsp; some other quick type queries java programmers learn php-4.
PHP 4 commonly used crawl network data method, PhP4 kind of crawl data
The name of this section is Fsockopen,curl and file_get_contents, specifically to explore these three ways of network data input and output of some of the summary. About
Today see Ecshop source code when found that the constructor is the same as the class name, have not touched before, suddenly puzzledhp4.x version:the constructor name for PHP 4.x is the same as the class name .Note: The constructor of the parent
1、fopen() fwrite() fclose() fiel_put_contents1) fopen (path,′xx′) Open a file xx=r read-only open and point the pointer to the head xx=r+ read-write mode to open xx=w write, and empty the contents of the file, the pointer executes the head, does not
Original: PHP 4: Further reading from loginWe are already in PHP3: the PHP tag from the login interface speaks of PHP markup, but its page code has a sentence
Code highlighting produced by Actipro CodeHighlighter
PHP 4 functions to output content to the browser summary, PHP browser output function
Copy the Code code as follows:/** 0x01:print () statement* int print (arguments);The * print () statement outputs the data passed in to the browser*/Print ("
I
First understanding of PHP (4) PDO object configuration and use, first understanding of pdo
I. PDO Concept
PDO is actually a database abstraction layer. With PDO programming, you can easily change the database at any time in subsequent operations
How to use Oracle database in PHP (4) use OCI to input data to the data table 'email _ info'
Same as above, but it is written using OCI.
Related PHP code:
If ($ submit = "click "){
// The submit button was clicked!
// Get the input for fullname
4 Common methods of crawling network data in PHP
The name of this section is Fsockopen,curl and file_get_contents, specifically to explore these three ways of network data input and output of some of the summary. About Fsockopen Front has been
bool is_scalar ( mixed $var ) If the given variable parameter var is a scalar,is_scalar () returns TRUE , otherwise returns FALSE .Scalar variables are variables that contain an integer,float,string, or Boolean, while array, object,and resource
PHP$arr = Array (1, A, a, a, a, a, a.//1. Bubble sort//In the set of numbers to be sorted, for the currently not well-arranged sequence, from the back to the adjacent two numbers in turn to compare and adjust, so that the larger number to sink,
Look directly at the case. More simple. Not explained.PHP $chengji=" -"; #先定义一个变量赋值一个数值Switch($chengji) { Case$chengji -&& $chengji >= -; #case的意思是案例. If the case is set up, execute the output or do not perform the echo"Excellent"; Break;
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.