Detection and deletion of BOM in UTF-8 coding
Shell :#! /Bin/sh: No such file or directory
PHP: Warning: Cannot modify header information-headers already sent
Before discussing in detail the problem of BOM
Php method for obtaining a date based on the year and week
Function getWeekDate ($ year, $ weeknum ){
$ Firstdayofyear = mktime (0, 0, 1, 1, $ year );
$ Firstweekday = date ('N', $ firstdayofyear );
$
Several methods for obtaining php time
Function getWeekName ($ data, $ format = 'week ')
{
$ Week = date ("D", $ data );
Switch ($ week)
{
Case "Mon ":
$ Current = $ format. "1 ";
An example of how to obtain the timestamp using mktime in php
$ Now = mktime (0, 0, 0, date ("m"), date ("d"), date ("Y "));
Echo "now is". date ("Y/m/d", $ now );
Display result: now is this is obviously
Comparison and analysis of include () and require () in php
Php's require () and include () are not significantly different in terms of performance. The only difference is that the file must be read and evaluated each time when the
Php-redis Document 4
This article is the fourth part of the php-redis Chinese document. if you need it, you can refer to it.This article is the fourth part of the php-redis Chinese document. if you need it, you can refer to it.GetRange
Php code encrypted with 3des (compatible with. net)
Class Crypt3Des
{
Private $ key = "";
Private $ iv = "";
/**
* Construct and pass two keys and IV that have been base64_encode
*
*
Randomly add a specific string to the php code at any position in the article
Arbitrary position of the article to add a specific string php code, use Tutorial: http://www.tongqiong.com/read.php? Tid-102.html
/*
Stronger and PHP frameworks (self-developed application frameworks)
The first version of the PHP Framework. people who want to use this framework can provide valuable comments. And related bugs. I will continue to improve it in future
Upload components over 56 networks and call back data through APIs
Upload the video using 56 network components, and call back the data using APIs. The video has no advertisement and is compressed in high definition. This method of
Three categories summarize five PHP design patterns
Factory modelSingle element modeObserver ModeCommand chain modeRule mode
Class people {
Private $ name = '';
Private $ user = null;
Private function _
How to enable curl_init in php in windows
When testing simulated logon, the system prompts "Call to undefined function curl_init ". Why is the prompt: no defined function? The reason is that php does not support the curl_init
Only converts the lowercase value of an integer to an uppercase value.
/*
Only the lowercase value of an integer can be converted to an uppercase value.
*/
Class ChineseNumber
{
// Var
Single-instance learning for php design patterns
Class {
Private function _ construct (){}
}
$ A = new ();
?>
Program running result: Fatal error: Call to private A :__ construct () from
Your own Apsara stack interface supports crontab and is shared with you for free!
Previously, I saw the Feixin interface released by some people, which is used to sell money, BS... I took the time to write one and share it with you. if the
Php removes useless format functions directly pasted from word
Function ClearHtml ($ content, $ allowtags = ''){
Mb_regex_encoding ('utf-8 ');
// Replace MS special characters first
$ Search =
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