Php enforces the download of mp3 file implementation code
Some mp3 files are usually played or used directly in the client browser. It's okay if you want them to be forcibly downloaded. The code described in this article can be implemented
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 ($
Html tag closure detection and repair
Html tag closure detection and repair, which is a little big and not fully considered. Regular expressions are not used. this applies to html files where only the start tag does not end the tag, the end
CMSZU website content management system v1.8 (1.7.5 modification and adjustment)
CmsZU can manage data of multiple websites.Such as SEO, information, collection, classification, download, images can be displayed on different websites by
Solution to Chinese garbled characters in PHP file names downloaded in different browsers
$ Ua = $ _ SERVER ["HTTP_USER_AGENT"];
$ Filename = "Chinese file name .txt ";
$ Encoded_filename = urlencode
Php code for extracting Zip files
/**********************
* @ File-path to zip file
* @ Destination-destination directory for unzipped files
*/
Function unzip_file ($ file, $ destination ){
//
Php mssql extension SQL query solution for Chinese field names
// Encoding conversion function
Function utf8togb ($ s ){
Return iconv ('utf-8', 'gbk // IGNORE ', $ s); // when the IGNORE parameter
Php reads a txt file to form an SQL statement and inserts it into the database
/**
* $ SplitChar field delimiter
* $ File data file name
* $ Table database table name
* $ Conn database
Php outputs all variables, constants, modules, functions, and classes of the current process.
Echo''; $ B = array ); $ Arr = get_defined_vars (); // Print $ BPrint_r ($ arr ["B"]); // Print all server
Massive video data, open-source websites
56 open api call data for the entire site open source Demo address: http://dev.56.com: 81/56 api/index. php? Type = baby Enter description56api_examples.zip (141 K) Downloads: 0 56 open network
In-depth understanding of echo (), print (), require (), and include () in php ()
$ R = print "Hello World ";
This means that print is available in some complex expressions, but echo is not. However, because the
Install the PHP extension zip module in Linux
Install the PHP extension zip module in Linux for your reference. 1. run the following commands in sequence:
Wget http://pecl.php.net/get/zip-1.8.10.tgz
# Tar zxvf zip-
PHP returns an odd and even number of php statements every Saturday.
Requirement description: determines whether a week is a double week or a single week based on the Saturday date. that is, if the date on Saturday is a singular number,
Completely solve the mobile client independent version of hot posts without data tutorials
Exploration process:After obtaining the invitation code of the handheld Forum (DZ official mobile client), I have successfully owned the mobile
: This article mainly introduces how to dynamically retrieve the list of classified products by using the mobile etouch based on ecshop. For more information about PHP tutorials, see. Modify the category. php file
Two key points need to be modified
: This article describes how to develop a web front-end + webphp backend for a self-taught website and when to find a job ., If you are interested in the PHP Tutorial, refer. I have read more books, but I don't have to look for several projects. how
: This article mainly introduces Nginx study notes (1): nginx installation and configuration. if you are interested in the PHP Tutorial, refer to it. I. nginx introduction
Nginx is a web server that can reverse proxy HTTP, HTTPS, SMTP, POP3, IMAP
: This article mainly introduces the PHP namespace parsing rules. if you are interested in the PHP Tutorial, refer to it. PHP namespace parsing rules
Namespace name definition
Unqualified name
The name does not contain the namespace separator
: This article mainly introduces the Adapter mode of php mode design. if you are interested in the PHP Tutorial, refer to it. I haven't written any articles for more than half a month. it's mainly because there are a lot of messy things in my senior
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