In PHP if we want to convert the characters to uppercase and lowercase, we can use Strtolower or strtoupper, but we need to use the ucwords correlation function to convert the case to the first letter.
First Letter capitalized: Ucwords ()
Gzip compression is a good way to compress the page, we often open on the server side, so that a 100K file through gzip compression may only 20KB less than Oh, let me introduce the GZIP compression detection and opening method.
What if I turn on
Most of the site generated thumbnails are proportional operation, today we have to see the size of the image can be fixed "> image size, not enough to automatically fill the blank Oh. If you need a friend, please refer to it.
Error_reporting
Php3php3.ini-inst Copy to Php3.ini and modify
Find dic_root=xxxx and change to Dic_root=c:inetpubwwwroot
Find extension_dir=./instead of EXTENSION_DIR=C:PHP3
Php3.ini Copy to C:windows
Modify
Set and delete cookies in PHP we use Setcookie to set them up and automatically delete them when they expire, but under FF you may encounter cookies that cannot expire.
First, let's take a look at the instructions in the PHP manual for deleting
Statistical graphs we will often to the data graph, if three arrays to graphic display or real estate to graph to us will need to use graphics, below I introduce a PHP libchart graph generation Class bar, very useful for the needs of friends to
To replace all the images or the alt title of the connection, we must use the regular function, see a replacement picture Alt instance
*/
preg_replace (' #alt = ' [^ ']* ' #i ', ' alt= ' ". $title." ", $str);
/*Mixed preg_replace (mixed
A PHP implementation of the Memcache cache instance, which takes advantage of a lot of available extensions that we may not have used before, as well as shared memory in PHP. With some shared functions, developers can easily manipulate memory
about what is Sphinx here I do not introduce you can Baidu check, the following I would like to introduce is about PHP Sphinx Long connection Problem resolution, I hope that some of the articles to help you friends.
Sphinxclient::open(PECL Sphinx >=
This article records some of their own learning PHP memcache memory cache of some learning notes and understanding, and now share with friends, I hope this article is helpful to everyone.
I. Introduction of Memcache
Memcache (memory, Cache): is a
PHP is not connected to MySQL for a number of reasons commonly used may be the function is not opened or MySQL database configuration problems, let me introduce you to the PHP is not connected to MySQL some of the problems of analysis and solutions.
This article to introduce to you a Php+mysql article views statistics and release time instances, if you need to do not go into the reference it.
A webpage can show "File upload Time" and "number of visitors", not only the history of the article,
This article to introduce the use of Html2fpdf and Wkhtmltoimage in Linux to the HTML directly generated PDF file method, I hope this method is helpful to everyone.
Finally found a fpdf and Html2fpdf source code based on the development of a set of
Let's take a look at the PHP use openssl_verify verification Signature Instance program, hope this article will help you.
The code is as follows
Copy Code
!--? php /** * Verify signature * tobeverified to be verified
In PHP to get the current page URL address method is very simple, let me give you a summary of the use of related functions to get the full page URL address of the instance.
PHP's predefined variable, $_server, is an array of headers (headers), path
Str_replace () function is used to replace the specified character, then we can just use it to filter the sensitive character ether to anti-injection effect, below I have summed up some methods for you to share.
PHP various filter character
PHP site is a Trojan horse repair is the most important thing is how to repair the Trojan will not be injected into your site is the main, the following I would like to summarize the PHP site is hanging trojan repair and then prevent the site again
Compressing the page input is to remove all the unused characters, and then all the code together, so for the SEO is helpful, but for the code is very poor readability, we often see a lot of web sites to do so, if you want to manually spaces HTML in
Thumbnail image if it is a picture we directly use the PHP GD library can be implemented, this article is to introduce the Imagick PDF png thumbnail method, here we have to use a plug-in, let me show you an example.
Php_imagick what?
A php extension
This article introduces a PNG thumbnail program that generates a transparent background in PHP, which is very simple to handle in PHP imagealphablending ($thumb, false); with Imagesavealpha ($thumb, true); On it, see the procedure below.
When 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service