Author: Armel Fauveau
Original address: Http://www.phpbuilder.net/columns/armel20010427.php3
PHP can open a remote or local server sockets! Here is a simple example of using sockets: Connect to a Usenet news server, communicate with the server, and
Previously wrote an article on how to extend the ZF under the ZF0.6 version. This should be said to be a similar article, but the environment changed to ZF1.0RC1 version.
Before starting the ZF expansion, it is recommended that you take a look at
This article illustrates a method for scaling the scale without distortion, such as the PHP custom picture scaling function. Share to everyone for your reference, specific as follows:
function Resizeimage ($im, $maxwidth, $maxheight, $name,
This article describes the PHP implementation of the conversion of HTML format text Format method. Share to everyone for your reference, specific as follows:
There are times when you need to convert HTML-formatted strings to text, but you need to
PHP similar_text () function calculation compares two strings similarity, this article introduces the PHP Similar_text () function Basic use method and the basic use example, the interest code farmer may refer to.
Definitions and Usage
The
In this article, let's share some of the super useful PHP snippets I've collected. Let's take a look at it!1. Create a data URI
Data URIs are useful when embedding images into HTML/CSS/JS to save HTTP requests, and can reduce the time to load a Web
If you use the traditional output method--by string output--there must be a large number of escape characters to escape the special characters in the string, such as quotes, so that there is no syntax error. If it's one or two, you can tolerate it,
This article introduces some tips and techniques for improving and optimizing PHP code, for your reference, the details are as follows
1. Do not use a relative path, to define a root path
Such lines of code are common:
Require_once ('.. /..
File directory:
Iplocation-----Qqwry----------QQWry.Dat-----ipCity.class.php
ipCity.class.php File Code:
Copy Code code as follows:
Class IpCity {
/*** According to the IP address to obtain the corresponding city* @param type
This article for PHP operation FTP class for detailed introduction, PHP implementation of FTP upload, FTP download, FTP Mobile, FTP creation, etc. for your reference, the specific content as follows
1. Use PHP to manipulate ftp-usage
2.
Copy Code code as follows:
/** PHP treats all class methods that start with __ (two underscores) as magic methods. So when you define your own class method, don't prefix it with __. * */
__tostring, __set, __get__isset (), __unset ()/*The __
This example describes how to use the configuration file of the PHP template engine smarty in the template variable. Share to everyone for your reference, specific as follows:
The role of a profile in a template is to design the page definition
BC is the abbreviation of binary calculator. The arguments for the bc* function are the operands plus an optional [int scale], such as String Bcadd (String $left _operand, String $right _operand[, int $scale]), if scale does not provide , the
Find some on the internet, most of them have been invalidated, for this I have to rearrange a bit; special release of 126 of the code, 163 is easier to crawl; 126 a little sick more than a jump, more trouble
Copy Code code as follows:
/**
Copy Code code as follows:
?
Define ("Root_dir", DirName (__file__));
Class Ecodeflv {
var $fromFile; The papers that came on
var $toFilePath; Save File path
var $toPicPath; Save Picture Path
var $mpeg; Path to Ffmpeg.exe file
var
0. What is session?The Chinese translation of the session is called "conversation", whose meaning is a series of actions/messages from the beginning to the end, such as calling from the phone to the telephone to hang up the phone in the middle of a
This column began to call the micro-Bo Rice no API to do, because the well-known reason, the rice can not be used, and then use Tencent's surging API to achieve. January 26, 2010 surging business will start and QQ space mood integration, can only
Compares two strings in a case-sensitive way
The Strcmp () function compares binary security to two strings and is case-sensitive. In the form of:
int strcmp (string str1, String str2)
Depending on the result of the comparison, one of the
A regular web site, when you need to upload pictures, often need to add their own site logo watermark on the picture. So how do you accomplish this? Let's start with the principle of how to add a watermark to a PHP picture.
Build the graph by
Directly on the code, I hope you read carefully.
Method One: Speaking of SQL query paging, you need to call several functions, see script: 1.pager.class.php
_conn = = False | |!is_resource ($this->_conn)) {Warninglog (__method__ .
':
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