The earliest article about server push in China in 99 years that can be searched now is my article "server push implementation". debugging took a long time today.
. Let's record it here:
Package test;
Import java. Io. file;Import java. Io.
Header ('HTTP/1.1 200 OK ');
// Set a 404 header:Header ('HTTP/1.1 404 Not found ');
// Set the address to be permanently redirectedHeader ('HTTP/1.1 301 moved permanently ');
// Go to a new addressHeader ('location: http://www.example.org /');
//
ExampleDownload tranmitfile
Fileinfo UBF = new fileinfo (this. url. value );Response. Clear (); // clear the response content before downloading the object, so as not to write redundant response, leading to an error in downloading the objectResponse.
Recently in an internal system, need a non-refreshing upload function, looked for a long time, found a good upload tool-fine Uploader, online also has a lot about its introduction, I have a lot of inspiration, combined with my use of the scene
Explore the usage of headers in php. Header () isusedtosendrawHTTPheaders. SeetheHTTP1.1specificationformoreinformationonHTTPheaders. Example 1: Copy the code as follows :? PHPHeader (Location: http:
Header()Is used to send raw HTTPHeaders. See the
Brief introduction to HTTP message header webpage cache control and common header commands. The Cache of web pages is controlled by "cache-control" in the HTTP message header. common values include private, no-Cache, max-age, and must-revalidate,
This article provides a detailed analysis of HTTP message header webpage cache control and common header commands, for more information, see "Cache-control" in the HTTP message header, common values include private, no-cache, max-age, and
To generate a graphic verification code, you must use the phpGD library to generate it. in the INI file, find extensionphp_gd2.dll and remove the previous one. just restart the apache or iis environment and check whether your php library has been
PHP verification code. For more information, see. The checkcode. php generates the verification code image and the variable $ _ SESSION [check_pic].
The code is as follows:
Session_start ();
For ($ I = 0; $ I $ Rand. = dechex (rand (1, 15 ));
}
$
PHP implements the password protection card function to implement code, which can be directly run after being downloaded ~! If you do not need a database or other data, you can download and decompress the data and put it in the environment to see
The PHP version of the website cache to speed up the opening of the way to share, the need for friends can refer to the following instructions:
1. the compressed files are cached on the server, and the re-access reduces the re-compression time to
PHP transparent watermark generation code. For more information, see
The code is as follows:
/*
* Created on 2010-10-27
* BY QQ542900563
* Copyrights Reserved 2000-2020
* This example shows how to generate an image watermark.
*/
// Load
The automatic line feed of the PHPGD Library watermark cannot display the code that function text finds on the Internet. But the last step does not show its own text content. the code is as follows:
$ V) {$ w = charwidth ($ fontsize, $ fontangle,
[PHP] PHP image cropping, scaling down, and cropping source code and usage reasons
Recently, for an open-source project that is used to drag and drop verification codes on webpages, you need to generate removable color blocks for images on the
Usage of Cache-control of header function parameters in php the Cache of web pages is controlled by "Cache-control" in the HTTP message header, common values include private, no-cache, max-age, and must-revalidate. the default value is private. The
Php Statistics image usage, reverse link, etc. Recently, I want to make a statistical report on who used images, links, and other data on my website.
This is probably the case for picture statistics.
/Var/www/html/1.jpg
/Var/www/html/tracker. php
/
Is there a plugin for uploading multiple images at a time? As with discuz posting, multiple images are uploaded at a time, and all uploaded image paths are inserted into the editor.
?
Reply to discussion (solution)
Find a JS batch upload plug-in,
IOS development network-HTTP and ios development protocols
IOS development network-HTTP protocol
Note: The apache tomcat server must use port 8080.
I. URL
1. Basic Introduction
The full name of the URL is Uniform Resource Locator (Unified Resource
Android4.4 + WebAPI for photo upload and android4.4webapi
There are many implementation methods for photo upload on the Internet. If you use the new android version to run it, you may find that it cannot be implemented at all. The main reason is
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.