Php three methods to get the file extension
// Get the file extension
// By bbs.it-home.org
// Method 1
Function get_ext_file_1 ($ file_name)
{
$ Retval = "";
$ Pt = strrpos ($
Paging-navigation of the ending page number
Paging-navigation of the ending page number
/**
* Generate Comment navigation by page at the end
* @ Author Li Jun
*
*/
Class cmtTail {
Private $
Identify "Baidu weight" cheating techniques
Identify "Baidu weight" cheating techniquesWhile working on PHP projects, programmers must also have cheating methods to identify Baidu weights. The so-called "Baidu weights ", it refers to the
Php methods for retrieving http request header information php methods for obtaining http request header information
$value) {echo "$name: $value\n";}?>
This function can only be used in an apache environment. it is not supported by iis or nginx
A cache interface demo written in php, compatible with redis and memcache
/**
* Factory method mode
*-------------
* @ Author zhangqian
* @ Version v1.0
*/
// Cache interface
PHP adds subtitles to the video and uses ffmpeg
Usage: copy code abve into encoder. php place this file into your web server root directory, install all the requried tools needed to use ffmpeg-php now place some video. avi and video. srt or
Obtains a function of the page content.
Obtains a function of the page content.
Function getwebdate ($ url ){
$ Tmp = str_replace ('http: // ', '', $ url );
$ Domain = substr ($ tmp, 0, strpos ($ tmp ,'/'));
$ Path =
Common PHP time operation functions
1. determine the day of the week
/**
* Determine the day of the week.
* @ Param $ date: 'yyyy-mm-DD'. If an error occurs, false is returned. If yes, a day from Monday to Sunday is
PHPParseError: syntaxerror, unexpected $ end error solution
Configure the server and prompt php Parse Error: syntax error, unexpected $ end Error when accessing PHP. share my solution.Writing php programs over the past few days, I feel like
: This article mainly introduces the methods for passing parameters in the PHP closure function and using external variables. if you are interested in the PHP Tutorial, refer to it. This article describes how to pass parameters in PHP closure
: This article mainly introduces static/dynamic separation-Nginx + Tomcat. For more information about PHP tutorials, see. Static and dynamic content in Web applications are separately placed on different Web servers to process dynamic and static
: This article describes the usage of common code segments in smarty learning notes. For more information about PHP tutorials, see. This example describes common code segments of smarty. We will share this with you for your reference. The details
: This article mainly introduces the code for removing bom from PHP files in batches. For more information about PHP tutorials, see.
";} Else {$ dirname = $ basedir. "/". $ file; checkdir ($ dirname) ;}} closedir ($ dh) ;}} function checkBOM ($
: This article mainly introduces ThinkPHP's four URL modes URL_MODEL. if you are interested in PHP tutorials, refer to it. ThinkPHP supports four URL modes, which can be defined by setting the URL_MODEL parameter, including the normal mode, PATHINFO,
: This article mainly introduces the string and multi-hexadecimal conversion functions in PHP. if you are interested in the PHP Tutorial, please refer to them. Conversion functions
/*** [Convert a string to (2, 8, and 16 hexadecimal) ASCII code] *
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