Implement the SESSION function in PHP3 (1) SESSION function library: session. inc. php3
If (! Isset ($ __session_inc __)){
$ __Session_inc __= 1;
// Require ("cookie. inc. php3 ");
#------------------------------------------------------------------
Most people don't understand that PHP3 can also handle non-HTML types of data, such as images, which we can use to create bars, columns, and pie charts to react to database data, and we can use PHP3 to create nice graphics buttons. Most of the
Integration of Apache, php3, and MySQL in Linux-Linux Enterprise Application-Linux server application information. For details, refer to the following section. 1. required installation packages
Apache_1.3.19.tar.gz
Php-4.0.4.tar.gz
Mysql-3.23.32.tar.
This article only discusses how to install Apache + PHP3 in WindowsNT4.0 or Windows2000. The apachei use is apache_1_3_12_win32.exe. Note that you must install PHP3 first. you can install it according to my documents: install PHP3 in Windows. Note
Windows2000 + Apache + MySql + PHP3 + PHP4 + PERL installation and usage summary www. 1000script. com2002-9-31000script professional script Windows2000 + Apache + MySql + PHP3 + PHP4 + PERL installation and use of summary (a) here must be a lot of
Now let's enumerate the ODBC functions commonly used in PHP3:
Odbc_connect (Dns,user, pass);
Returns a connection number that returns 0 if the connection fails.
Odbc_pconnect (Dns,user,pass);
Special connection, the connection does not disconnect
The difference between the PHP2 version and the PHP3 version
What's the difference between the PHP2 version and the PHP3 version? Which version is now used more, which version should I study?
------Solution--------------------
At this stage is
There are some incompatibilities between PHP4 and PHP3, but this is mostly in the PHP4 php.ini
There are some different places in the settings, these changes are mainly to improve the efficiency of PHP4.
One of the changes in the Track_vars setting
In order to understand the switch statement in order to avoid the lengthy statement, it is very important to know how it is executed. The switch statement Stone executes on one line (in fact, it is a statement). At the beginning, no code is executed.
PhP4 is incompatible with php3, but it is mainly caused by PHP. ini in PhP4.
There are some differences in the settings. These changes mainly improve the efficiency of PhP4.
In the changes, the track_vars settings usually make the old php3
Now we will list the commonly used ODBC functions in PHP3: odbc_connect (dns, user, pass); return a connection number; if the connection fails, return 0. Odbc_pconnect (dns, user, pass); special connection. after the script is run, the connection is
If you are a network developer and maintenance engineer, you should be familiar with ASP. Since Microsoft introduced ASP technology
The powerful functions of dynamic websites have been widely used soon. However, ASP can only be used
Microsoft's own
Like an ASP, PHP3.0 can also easily handle HTML forms and variables, and each value sent from a form automatically assigns the corresponding variable values based on the form's name attribute (name), which can be referenced directly in the PHP3
PHP.ini or Php3.ini is the set file that PHP reads when it starts. The storage path for this file is
/usr/local/lib/. In the PHP 3.x version of the profile is Php3.ini, and in the PHP 4.x version instead
Ini. If PHP is installed as a server module,
File name: date. inc. php3 before using these two functions, you must first convert the date or date to the timestamp type. For example: $ todaymktime (0, 0, 0, date (m), date (d), date (Y )); * *** simulate the dateadd function in sqlserver *******
Now we will list the ODBC functions commonly used in PHP3:Odbc_connect (dns, user, pass );Returns a connection number. If the connection fails, returns 0.Odbc_pconnect (dns, user, pass );Special connection. After the script is run, the connection is
Implement the SESSION function in PHP3 (2) COOKIE function library: cookie. inc. php3
If (! Isset ($ __cookie_inc __)){
$ __Cookie_inc __= 1;
Function JsSetCookie ($ CName, $ CValue, $ CExpr = FALSE ){
// This function allows you to set the cookie
// File name: date. inc. php3 // before using these two functions, convert the date or date to the timestamp type. // For example: // $ todaymktime (0, 0, 0, date (m), date (d), date (Y )); /***** simulate the dateadd function in sqlserver ******* $
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.