function Sbc_dbc ($STR, $args 2) {//half-width and full-width conversion functions, the second parameter if 0, is half-width to full-width; if 1, it is full-width to half-width
$DBC = Array (
0, 1, 2, 3, 4,
5, 6, 7, 8, 9,
A, B, C, D, E,
F, G, H, I,
After learning about the world's largest PHP site, Facebook's back-end technology, today we're going to look at a millions PHP site's site architecture: poppen.de. Poppen.de, a German social networking site, is a very small site relative to Facebook
uploading.class.php Upload class
Class Upimages {var $annexFolder = "Upload";//Attachment storage point, default: Annexvar $smallFolder = "small";//thumbnail storage path, note: Must be placed under the $annexFolder subdirectory, default:
Magic function
1. __construct ()Called when an object is instantiated,When __construct and a function with a class name are present, __construct is called and the other is not called.
2. __destruct ()Called when an object is deleted or when an
Emcached is a key-value storage system that stores critical data in memory, greatly reducing the time it takes to access data. The benefit of using memcached is self-evident, it not only reduces the pressure of the system to access the database, but
The most afraid of the problem with the unthinkable to fight, to see who the cow nose. Have not been in the code for a long time have encountered obstacles, bkjia.com today incredibly met a small tea bag--php generated XML, to flash fetch is garbled.
The real power of PHP is derived from its functions, but some PHP functions are not fully utilized, and not everyone will read the manuals and function references from page-to-page, which will introduce you to these useful functions and functions.
PHP is an efficient network programming language, because it has the advantages of flexible writing, fast running, and quickly become the preferred language for Web programmers. So how do you become a good PHP developer?
To become a PHP programmer
/********************************************************************
* Process Description:
* When the parameter passed into the filter function is required, the filter () function first
* Put all the tags in the string to be filtered $tag through
Originally this CP is a single SMS interface, for a variety of reasons need to achieve mass, each edit a piece of information, mass website all members (tens of thousands of member records), the program difficulties in from MySQL to MSSQL different
Open PHP.ini, first find
;;;;;;;;;;;;;;;;
; File uploads;
;;;;;;;;;;;;;;;;
Area, there are several parameters that affect file uploads:
File_uploads = on; switch to allow uploading of files over HTTP. The default is on, which is
PHP Advanced Application Header () function set browser cache
This involves 4 kinds of header types:
Last-modified (last modification time);
Expires (validity period);
Pragma (compiling instructions);
Cache-control (cache control);
The first three
PHP is a great web development language, flexible language, but see the PHP programmers repeating a number of mistakes. I made the following list, listing the 10 errors that PHP programmers often commit, most of which are related to security. Look
The security of PHP is that it has a magic_quotes_gpc = on in its default configuration php.ini-dist, called "Magic Quotes", which is useful for beginners in PHP, "although SQL injection can still be implemented in the case of magic quotes Open ,
The Enctype property of the form element specifies the type of encoding to be used when the form data is submitted to the server, and the default value is "application/x-www-form-urlencoded".However, this encoding is inefficient when sending large
Recently do a small project with the Curl library function, from the Internet to find some information, referring to a foreign blog and the Official Handbook, summed up.
function Get_web_page ($url)
{
$options = Array (
Curlopt_returntransfer = True,
This is a backup of all the tables in the specified database to a SQL file that can be downloaded. The source code from the DEDECMS program, a lot of functions, but also very practical, but the quality of the codes need to be improved
Pod extension is added in PHP5, which provides PHP built-in class PDO to access the database, different databases use the same method name, to solve the problem of non-uniform database connection.The goal of PDOProvides a lightweight, clear, and
PHP is sometimes very inefficient in array processing, especially in memory usage, which often causes the httpd process to consume too much resources. Bkjia website has been called for some content, the array is too large, resulting in memory
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