CENTOS7 installation of PHP, or PHP's GD library support, are very simple.
Everything is done through Yum.
Yum Install PHP-GD
The above command to take care of PHP-GD support, quickly see if phpinfo support?
However, if you need to use different
1. Prevent jumping out of the web directory
First modify the httpd.conf, if you only allow your PHP script to operate in the Web directory, you can also modify the httpd.conf file limit php operation path. For example, if your web directory
Description:/*************************
Description
Determine if the passed variable contains illegal characters
such as $_post, $_get
Function: Anti-injection
**************************/
Copy the Code code as follows:
Illegal characters to
Many news and information sites provide a way to generate pages that are easy to print, and the layout of the resulting pages is more conducive to the printout of the printer, which makes it easier for us to print the content we need directly from
Read some code today, see a little egg.
/* env.php */
Phpinfo ();
?>
Access by browser
Http://ipaddress/dirname/env.php?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
You will see!
A fat man with two cigarettes in his mouth!:-)
The secret is the image
1. Arithmetic operators
Common arithmetic operators
Type of operation
Operator
Example
Results
Take inverse operation
-
-$a
Returns a negative value of $ A
Addition operation
+
$a +
Class Utf8_chinese
{
Private $utf 8_gb2312;
Private $utf 8_big5;
Public Function __construct () {
$this->utf8_gb2312 = " Million and ugly professional Condons lost two strict footstep Fenglin for Li Lift, Yiwu
I am using Fpdf (www.fpdf.org), after downloading the Fpdf class library, also use the following Chinese class library to support Chinese, but only one Chinese font (Chinese imitation) can be used. I've been worrying for a long time, and now I'm
/*==== the record of the data is paginated =====
A page that has a contiguous 10-page connection
One page to display $limit_row record information
and has the next 10 page and the 10 page paging
Copy CodeThe code is as follows:
Echo substr (MD5 ("admin"), 8,16); 16-bit MD5 encryption
echo "";
echo MD5 ("admin"); 32-bit MD5 encryption
?>
The 16-bit MD5 encryption uses the SUBSTR function to intercept the characters to be implemented ....
Previously wrote an article about how to extend ZF under the ZF0.6 version. This should be said to be a similar article, but the environment is replaced by the ZF1.0RC1 version.
Before starting the ZF extension, it is recommended to look at some of
Google first, found a lot of questions related to the question but there is no relevant answer, in the phpclasses also found no related classes and then he looked at the stmp of the relevant protocol side began to try Curl
SMTP protocol
This can be
In order to enable PHP to connect MSSQL, the system needs to install mssql,php, and in the php.ini configuration, will
Extension=php_mssql.dll in front of;
1. Connect MSSQL
Copy CodeThe code is as follows:
$conn =mssql_connect ("Instance name or
what is an array?
You will need to create many similar variables in the process of using PHP for development, either early or late.
Without a lot of similar variables, you can store the data in an array as an element.
Elements in the array have
I've been running labs.9lessons.com working in Amazon Web Services. A few days ago, I implemented the SMTP email notification system using the Amazon simple email service via PHP Mailer. I hope today's PHP tutorial will help you implement an e-mail
some gossip
First of all, the original intention of this writing. I've got a blueprint for Zend Engine 2.0. It's been a while since I read the impulse to write a review--because according to the documentation, the next generation of PHP will be a
Job hunting and recruitment often involve interview and written test, as a PHP programmer, more or less will have similar experience ... The following is my collection and collation of the PHP interview topic, I hope to help colleagues to find a
The day before yesterday to make a blog post a content batch modification, due to bug in the source program, resulting in a lot of path or code in the anti-slash is innocent removal, yesterday through the bankw3000 Netizen's message found this
Yahoo China Technology Research and development director Tanxiaosheng speech
It is a great honor to be a user today to talk about our use of lamp. Yahoo is the world's famous Internet company, the product is very many, Yahoo China is just yahoo. A
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