Today start apache2 always can not start, this thought is also port problem, can later view not have port occupancy problem, then view the error log
as follows:[Sat June 20 03:12:52 2009] [Notice] apache/2.2.11 (WIN32) php/5.2.9-2
Fsockopen Forge Post and Get methods Oh, if you're looking for a fake post and get method of PHP processing code this is nice.
Copy CodeThe code is as follows:
Fsocket Analog Post Submission
$purl =
There are two ways to change the image size.(1): the imagecopyresized () function is valid in all GD versions, but the algorithm for scaling the image is coarser.
(2): imagecopyresampled (), the pixel interpolation algorithm gets a smoother image
Magic constants:1. __line__Returns the current line number in the file.
2. __file__Returns the full path and file name of the file. If used in the include file, the include filename is returned. Since PHP4.0.2, __file__ always contains an absolute
Questions:Each of the 2 functions is intended to be a string escape, making it suitable for file names. Which one should I use? Which is more standard?
Conclusion:Rawurlencode Compliance is the 94 International standard Memorandum RFC
des is a standard data encryption algorithm, the detailed introduction of this algorithm can refer to the wiki and Baidu Encyclopedia:
Wiki Encyclopedia Baidu Encyclopedia
PHP has an extension to support DES encryption algorithm, is:
Let's start with the requirements: 4 of the fields in the database are id,volume,edition,name. Requires that the query results be sorted from large to small in volume+edition.
Here's a look at the Array_multisort function
Array_multisort () can be
PHP provides two ways of working with regular text, one for Pcre (the Pcre library is a set of functions that implements the regular expression pattern matching functionality that is slightly different from the syntax and semantics of Perl 5 (see
1. Introduction to Getting Started
Simply put, regular expressions are a powerful tool that can be used for pattern matching and substitution. We can find regular expressions in almost all UNIX-based system tools, such as VI Editor, perl or PHP
The following is a simple message processing server that is implemented via the socket Extension module of PHP: Binds to a local port, listens for client connections, receives data and forwards to all clients other than the sender
socket_server.php
Several of the following examples are involved in the PHP algorithm collation.PHP bubbling
PHP binary method
PHP prime
PHP multiplication Table
PHP Bubbling Method ExampleCopy the Code code as follows:PHP bubbling from small to largeFunction Maopao
The usage of the three functions for PHP (), Isset () and Is_null () has been discussed a lot, and a lot of data may not be clear. Here again, but not from the concept, the direct use of program examples to speak, it should be more profound memory.
The header function of PHP can be used to implement META tags in HTML code with very little code.
here only to use the header function to do the page jump
1. Code for page jumps in HTML codeHTML Meta Refresh and jump (redirect) pageRefresh
Heredoc technology, usually not detailed in regular PHP documentation and technical books, just mentions that this is a Perl-style string output technique. But now some of the forum procedures, and some of the article system, are clever use of
First, IntroductionProduct classification, multi-level tree structure of the forum, mailing lists and many other places we all encounter this problem: how to store multi-level structure of data? In the application of PHP, it is usually a relational
The pros and cons of extending PHP with C + +:Advantages:efficiency, or efficiency
Reduce the complexity of the PHP script, in extreme cases, you just need to simply invoke a function of the extension implementation in the PHP script, and then all
JSON (JavaScript Object Notation) is a lightweight data interchange format.
In brief, both XML and JSON are used to facilitate the transfer of data between client and server, especially for object-type data, such as the most common arrays.
The
Copy CodeThe code is as follows:
//========================== Definition Redirect () Start =========================///**
* Defines the redirect () jump function, which is used to jump to the specified page as required after user action
*
* @param
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