1. from http: // Glob.com. au/sendmail/download sendmail.zip 2. decompress the package to D: \ Apacheserver \ PHP \ Sendmail is the best short path, which may cause problems. 3. php. Configure SMTP in ini = Smtp.126. Comsendmail_from = Zdy_521 126.
Because PHP is a WebProgramming LanguageIn the programming process, it is inevitable to use echo to output large HTML and JavaScript scripts. If you use the traditional output method-output by string, there must be a large number of escape
Pay attention to this security knowledge during PHP website development
1. Ancient spoofing SQL statements
In the default mode, even if you forget to copy PHP. ini to/usr/local/lib/PHP. ini, PHP still opens magic_quotes_gpc = on.
In this
File: ajax.htmCode: UTF-8
Ajax
Username:
File: request. phpCode: UTF-8
Sleep (1); // LetProgramFirst sleep for one second$ TMP = $ _ Get ["userid"];If ($ TMP = 'yary') // If you enter "yarn" on the client, it indicates that it has been
1: connect to the database:
$ Conn = mysql_connect ("localhost", "root", "www.xunjobs.com") or die ("database connection failed". mysql_error ());Mysql_select_db ("db_pursey", $ conn) or die ("Database Access failed". mysql_error ());Mysql_query ("
How to optimize the webpage loading speed is a problem. Yahoo once made 36 optimizations. In fact, there are still many ways to optimize web pages. The following describes how to increase the loading speed of the front-end by reducing the page size:
The system win2003 (32bit), 32-bit system suggests that you can directly use zendserver ce to integrate IIS perfectly, and it is more convenient.
System win2003 (64bit), 64-bit system is no longer available, you can only configure IIS on your own.
(From: http://blog.163.com/tu_xing_long@126/blog/static/665971972010109114247408)
A script that sends a E-MAIL may be one of the most common scripts you can find on the web site, although it is very simple, a mail script can sometimes make
Traverse all files and subfolders in a folder:
Obtain the content of a specified webpage:
File_get_contents ($ PATH );
Watermark website images:
1/* 2 imagefttext: write text to the image 3 imagecreatefromjpeg: introduce an image 4 */5 6
"; die ('no');} does not exist ');} // ======================== determine if the file does not exist (file_exists ($ file) = false) {echo ""; die ('no file ');} // ================================================ ================== Read File Content
Many people do not remember to write the exit () statement when using the header (location) for jump. In fact, this method has serious risks.
From the browser, the header (location) is used to jump to another page, but in fact, PHP will still
There is no problem with the PHP script to read and write sqlserver. It works well in Apache for Windows and Windows IIS. Generally, it can be connected through ODBC or sqlserver client, which are all ready-made in windows. However, ODBC and
Here we will mainly introduce how to use the extended gettext of PHP in the window platform to internationalize the program.
Step 1: Build the environment1. First check whether the php_gettext.dll file exists in your PHP extension directory. If not,
Some time ago, I learned something about PhP. This time, my company encountered some problems when downloading and opening the bugfree attachment. The symptoms are as follows:
In JPG format, click to open the file in the browser and display it as a
First, check that CGI is enabled in IIS:
In IIS 7.5, the PHP manager module is added to facilitate the installation of PHP programs. As long as you set it up, other tasks are automatically put in place! :
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