A variable cannot be passed between the "1" page get,post,session in the latest PHP version, the auto global variable is closed, so the variable to be submitted from the previous page is to use the $_get[' foo '],$_post[' foo '],$_session[' Foo ']
http://php-accelerator.co.uk/can be downloaded and is a powerful opponent of Zend. is free of charge. I'm already using it. The effect is good.Modify PHP.ini Plus:Zend_extension =/usr/local/lib/php_accelerator_1.3.3r2.soPHPA = OnPhpa.tweaks = OnPhpa.
How to get information about the server in PHP mode? In fact, just three lines of code, that can easily get to the end of a file related information and the site information. The code is as follows:
$fp = fopen ("http://www.***.com/***.htm",
PHP is really easy to write. But PHP also has some very serious flaws. Below I will give my reasons why PHP is not suitable for larger sites than small amateur sites.
1. Bad support for recursion
Recursion is a mechanism by which a function calls
According to Zend official news, Zend is expected to release a new product Zendbox early next year. Zendbox is a set of services, management and other characteristics in a professional PHP5 operating platform, it has a Zend company for the PHP5
Let's start with a simple example---a TCP service that receives the input string, processes and returns the string to the client. The following is the corresponding code:
PHP Code:
// 设置一些基本的变量$host="192.168.1.99";$port=1234;//
The PHP. MVC Tag Action Dispatcher
Tagactiondispatcher is a standard implementation of the Actiondispatcher class that supports access to basic template tags. The Tagactiondispatcher class supports the same Actionobjects collection and
PHP. The MVC template label system (PHPMVC_TAGS) now offers 3 types of tags: include directives, declarations, and expressions. The include directive allows us to separate content into modules, such as headers, footers, or content. The containing
PHP in the connection to the MySQL database when we can use a temporary connection, of course, we can also use permanent connection, the use of permanent connection because there is a connection overhead, so the time is greatly reduced, but we only
GetImageSizeEffect: Gets the size of the image [i.e. length and width] Usage: array getimagesize (string filename, array [imageinfo]);
ImagearcFunction: Draw arc usage: int imagearc (int im, int cx, int cy, int w, int h, int s, int e, int
Login collection, refers to some Web content needs to use the account login, before you can view, the traditional file_get_contents cannot get to the landing after the content can be viewed.Curl is a powerful component in PHP that allows the HTTP
Because the template file may reveal the data table's field information, there are two ways to protect your template files from being accessed:
The first way is to configure the. htaccess file for the Apache server.
Save the following code in the
First, install the Xdebug module
1, go to www.xdebug.org download the corresponding version of the PHP module file, save the downloaded file to the PHP ext directory, you can modify the name of the file, such as Save as: Php_xdebug.dll
2, modify the
PHP4 already supports Microsoft's COM technology. However, in the documentation, the COM section is rarely mentioned.
Here are a few examples that I have tried. Hope these give you some ideas. Note that these can only be run under the 32-bit
(a) Introduction
This article attempts to explore the various aspects of PHP program acceleration, including the necessity and specific measures taken from different angles. Hope to help the reader understand the PHP program acceleration, and
Now we have a file that needs to be cross-referenced by the $REMOTE_ADDR variable, so we can distinguish whether the user who wants to post has been flattened or not flattened. Very simple:
for ($counter =0; $counter
if ($banned _
When we write a program, it is always inevitable to err on the wrong way, no matter how cautious. These errors often confuse the PHP compiler. If developers are unable to understand the meaning of compiler error messages, they are not only useless,
Variable type change (juggling)PHP does not need (or is not supported) to explicitly define his variable type in a reputation variable; the type of a variable is determined by the relationship that the variable is used in, that is, if you assign a
PHP Chat Room TechnologyWong Kwok Fai
1. ObjectiveChatting online is the most popular way to make friends nowadays. The chat rooms are featured on each major website.Chat rooms are mainly divided into webchat, bbschat two kinds. Bbschat is a
Handle variables correctly
Variables and functions are essential elements of any computer language. With variables, you can abstract the data, and with functions, you can abstract a few lines of code. As Bruce Eckel in his book, "C + +
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