Php string search for the last occurrence location of a character
$ Str = 'http: // bbs.it-home.org phper, php learning _ php Technology _ php website construction _ php programmers focus on php technology
Php random verification code image generation instance details
/** Default homepage **/
Class DefaultController extends AppController
{
Public function index (){
$ Len = 5;
$ Str =
Php5.3 does not support session_register (). What should I do if this function is enabled?
// Fix for removed Session functions
Function fix_session_register (){
Function session_register (){
$ Args =
An example of php multi-image upload code
Usage: save the above code with the file name more_upload_file.class.php. you can include this file when using it.
Share a PHP class for multi-image upload. this class of File annotation is
Php Chinese characters and hexadecimal encoding conversion methods
// Convert Chinese characters to hexadecimal encoding
Function hexencode ($ s ){
Return preg_replace ('/(.) /es ', "str_pad (dechex (ord ('
Php checks whether the string is full of Chinese characters or contains Chinese characters.
$ Str = "'2014 Is ";
If (! Eregi ("[^ \ x80-\ xff]", "$ str ")){
Echo "all Chinese ";
} Else {
Echo "not
Php file export and download methods
Header ("Content-Type: application/vnd. ms-excel ")
If you want to provide the open/save dialog box, the Content-Disposition parameter and the Content-Disposition parameter
Php file upload size setting method
This section describes how to set the file upload size in php and how to break through the php Upload restrictions. For more information, see.In php programming, you can use the following methods to break
PHP line chart generation functions and examples
/*
* Generate a line chart in php
* By bbs.it-home.org
*/
Function line_stats_pic ($ value_y, $ width, $ high, $ strong = 1, $ fix = 0 ){
// Y
Solve the problem that php cannot be opened when downloading excel files
/**
* Php code for excel file download
* Edit: bbs.it-home.org
*/
If (file_exists (CACHE_PATH. $ file_name )){
// $
Example of phpcookie counter using cookie to create a counter
/**
* Cookie counter instance
* By bbs.it-home.org
* Date: 2013-9-29
*/
If (! Isset ($ _ COOKIE ['visits ']) $ _ COOKIE ['visits']
Example of phpmysqli class
I would like to share an example of using mysqli class in php with a description of the methods in mysqli class. it is very comprehensive. if you have any need, please refer to it.The php code for calling 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