Originally wanted to upload pictures with the plugin, and then wrote a simple JS to achieve asynchronous image upload, not much to say on the code is very simple
upload.php
if (Isset ($_files["myfile"))
{
$ret = Array ();
$uploadDir = ' images '.
PHP for the image to add a watermark, for the png/jpg/gif format picture, you can specify the location of the watermark and the transparency of the watermark, very practical, complete code as follows:
http://www.bkjia.com/PHPjc/822514.html www.
Do not want to test PHP every time you open a virtual machine, so on the computer with XAMPP built a test platform.
I have now taken my blog data locally, ready to write a template of my own.
Because I'm used to building a folder for different
Using PHP to generate Word documents, the resulting Word file can be opened with software such as Word,wps. The specific code is as follows:
function Word ($data, $fileName = "") {
if (empty ($data)) return "";
$data = "". $data. "";
if (empty
Many people use crontab to implement PHP to perform timed tasks under Linux and fail to generate the cache. This paper analyzes the reasons of using crontab to realize scheduled PHP task failure in Linux.
Generally we Linux regularly execute PHP
The header () function sends the original HTTP header to the client.
Copy CodeThe code is as follows:
200 normal state
Header (' http/1.1 OK ');
301 permanent Redirect, remember to add a redirect address at the back location: $url
Header (' http/1.
----------------------------------------------------------------------------------------------
A non well formed numeric value encountered=>
From the word surface to understand, you can probably spy on some meaning: met the formation is not very
In the actual project or to write their own gadgets (such as news aggregation, commodity price monitoring, parity) process, usually need to get data from the 3rd party website or API interface, in order to improve performance when processing 1 URL
1, constructs the session abstract class, realizes the Session_set_save_hanlder function must the basic function
Php
/*
implement session storage operations using file form or database and other forms * Author:libin * data:2014-06-24 * abstract Top
In this section, let's look at how to use core PHP to generate HTML files
When I recently queried php.net, I found DOMDocument this class very interesting, can be used to generate XML or HTML files, DOMDocument provide us with a series of methods
PHP can realize the data of the text database display, add, modify, delete, query and so on five basic operations.
We take a message this program as an example, the PHP implementation of the text database data display, add, modify, delete, query
To extract some of Google's data, found that Google for the software to crawl its data masking, before the forgery of User-agent can capture data, but now it is not. The use of packet capture data found that Google has judged the cookie, when you do
In this section, let's look at a less common but powerful PHP feature: FILTERS, which can be used to verify (validation) and error correction (sanitization)
When the data source contains unknown or indeterminate data, it becomes very useful to
may have a lot of friends encountered some problems is to upload the file if the original name is not a problem, if it is Chinese may appear garbled, today I come to you to summarize the cause of garbled php upload file Chinese file name garbled
=========================================================================================================
Setp3:tomcat bind to CAS server:: reference: Http://www.open-open.com/lib/view/open1392018954614.html
=========================================
Use PHP's Ob_start ();
Control your browser cache
The output control function gives you the freedom to control the outputs of the data in your script. It is very useful, especially when you want to output a file header after the data has been
With ziparchive compressed files, this is the PHP extension class, since the php5.2 version has been supported this extension, if you are using the error, check the php.ini inside the EXTENSION=PHP_ Zip.dll in front of the semicolon has not been
Thinkphp supports a variety of PHP template engines that can be configured to suit individual needs.
Below we take the Smarty template engine as an example, to tell you about the specific operation process!
First go to smarty official online
Let's first assume that the code used in the database is UTF-8
In the PHP page we should first add
Copy CodeThe code is as follows:
The value Utf-8 here charset must be the same as the encoding type when the file is saved
Before database
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