Suppose httpd. the DocumentRoot in conf is DocumentRoot "D:/Apache3W". Use the command to set url rewriting in httpd. conf writes the following content: RewriteEngine on RewriteRule ^ ([^ \.] +) $ 1.php Options Indexes FollowSymLinks AllowOverride
We will not talk about how to simulate data for the moment. We can use a simple form to see what data the client has submitted to the server when a request occurs.
The following is a simple HTML form, two text input boxes, and one file upload (here
GD library functions
1, imagecreatetruecolor ----- create a true color image
Imagecreatetruecolor (INT x_size, int y_size) // X indicates width, and y indicates height.
2. imagecolorallocate allocates color to an image (color
The GD library in PHP mainly provides a set of PHP graphics processing functions, which are very powerful and can make amazing results. In Web applications, it is more or less common. Therefore, when you apply for a PHP engineer for the WEB Website,
Common feature: both functions are used to create a canvas.
Differences:
1. The process of creating a canvas and filling the canvas with colors is different;
Imagecreatetruecolor (int x, int Y) is used to create an image of X and Y (black by default
Header ()Is used to send raw HTTPHeaders. See the HTTP/1.1 specification for more information on HTTPHeaders.
Example 1:Copy codeThe Code is as follows: Header ("Location: http://www.jb51.net ";);Exit; // after each redirection, you must add "exit"
Set the content-type of common file types in php Headers
This article describes how to set content-type for common file types in php headers. For more information, see
In PHP, you can use the header function to send header information and set the
PHP image processing technology-GD,
1. Enable GD ExtensionExtension = php_gd2.dllApache restart2. Example:Scenario:Create a green image of 500x300① Create a canvasCanvas, a type of resource-based data. Operational image resources.
Create a canvas
Solve the Problem of unrealistic php session verification code.
At the beginning, the image is not displayed, but a split image is displayed. It may be caused by the following reasons:
1) Add the following code before header ("Content-type:
In linux, the php verification code only displays the canvas. the ultimate solution is not to display the verification code. After passing the test, first release my code [php]? Phpsession_start (); ** remove boom to UTF-8 * vCode (m, n, x, y). The
Currently, many websites use verification codes to prevent users from automatically registering, logging on, and bumping through robots. The so-called verification code is to generate an image with a string of randomly generated numbers or symbols,
This article discusses how to implement Chinese watermarks in the PHPGD Library. When we upload images on a website, many users need to add watermarks to images. Below we will explain in detail the PHPGD library to implement the relevant Chinese
PHP formula verification code and Chinese character verification code implementation method
In PHP website development, the verification code can effectively protect our forms from malicious submission. However, if you do not use the
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.