PHP has a lot of functions, some functions are not safe, so we need to ban. So which functions are dangerous. Phpinfo () function Description: Output PHP environment information and related modules, WEB environment and other information. Risk
This article lists all the functions for using socket-related services in the PHP language. Note Before using the following function, you need to make sure that your socket is open, if you do not open it, please edit your php.ini file and remove the
Install PHP as Apache DSO
PHP is often used with Apache Web servers for Linux/unix platforms. When we install PHP in the Apache environment, you have three installation modes to choose from: Static module, dynamic module (DSO) and CGI. I suggest
For commercial websites, efficiency is very important. At some e-commerce sites, the server's response speed determines its quality of service, and the server's load determines the maximum access capacity it can provide. Technicians always try their
Session in PHP4.0 added to the session support, convenient for us a lot of programs, such as shopping carts and so on!
In many forums, session is also used to deal with user login, record user name and password, so that users do not have to enter
See the cake document required to install the pdo_mysql extension, so try to install it.
Here my system is CentOS 6.0. If your system is another version of the Linux/unix, you can refer to it. If your system is windows, sorry, the
After installing the XAMPP, if do the integration environment, carries on the program to move the value, has checked php.ini unexpectedly has three many
Which one is it anyway? After the information is checked. It turns out that what really works
a code execution function
A function in PHP that can execute code. such as Eval (), assert (), ', System (), exec (), shell_exec (), PassThru (), Escapeshellcmd (), pcntl_exec (), etc.
Demo Code 1.1:
Two file contains code injection
Summary & Introduction
PHP is currently widely used in a language, from the foreign Facebook, Twitter to the domestic Taobao, Tencent, Baidu and then to the internet a variety of large and medium-sized sites can see its figure. PHP's success, it
I. Installation memcache extensions First we check our current PHP environment for memcache extensions with the Phpinfo () function. Create a new file info.php in the root directory of the server, write in the file addsever ('
Originally wanted to learn PHP, so want to build a Web server and SQL environment, the result wasted a lot of time.
The general summary, also is a long memory.
The installation packages used are Httpd-2.2.22-win32-x86-no_ssl
The following article will talk about windows2000/xp/2003 (not recommended to build PHP environment under Windows 98) under the configuration of the PHP environment, the server selected Apache 2.0.54, the database selected MySQL 4.1.14
One, for the PHP page completely inaccessible situation
1, to confirm that the problem is PHP or IIS and other server issues
Judging method, in the directory to decentralize a static file, through the browser to determine whether the static file
Sina provided in the PHP SDK needs to use the Curl_init () function, in the debugging time to find the Curl_init (), the following for you to open the curl steps Today in doing a Sina login function, Sina provides the PHP SDK needs to use the
apache| Tricks | Scripting PHP is often used with Apache Web servers for Linux/unix platforms. When we install PHP in the Apache environment, you have three installation modes to choose from: Static module, dynamic module (DSO) and CGI.
PHP4.0 provides a collection of output buffering functions. Output buffering support allows you to write the package function function to compress the buffer. The output buffering support in PHP4 allows the HTML header information to be stored,
Four, the first script
If I tell you that the really sad one has passed, you will be very happy. The software installation process is always unpredictable, because the system can be said to be different from the system. But you're lucky, the
A script that sends an e-mail message may be one of the most common scripts you can find on a Web site, although it's simple, a mail script can sometimes make programmers very frustrated. There is a function called mail () in PHP that only needs to
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:
and provide relevant evidence. A staff member will contact you within 5 working days.