Brief introduction
Here are some basic tips to get your PHP site running faster.
1. Using gzip
Add the following code at the top of each PHP page:
With this code, the server compresses all the code that needs to be routed to the client
Unable to open http://localhost or http://127.0.0.1 when Appserv is installed
In the case where the port is not accounted for (I did not install IIS), just start the ApacheMonitor.exe in the D:\AppServ\Apache2.2\bin folder.
That is to start
Creating a Zip in PHP is really simple, as long as the following 2 steps can be completed.
1. Please download my prepared zip.php tool class, download and unzip, put the files inside the corresponding directory, I was placed in the virtual
A member variable of PHP can be initialized at the same time as the declaration, but it can only be initialized with scalars, for example:
Class A {Public $f 1 = ' xxxx ';static public $f 2 = 100;}
If you want to assign a
What file is PHP?
PHP, a nested abbreviated name, is an abbreviation for the English "super Text Preprocessing language" (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and Microsoft's ASP quite a bit similar, is a server-side
There are many scripting languages where there are no unsinged int, such as PHP. Bit operations generally there is no difference between int and unsinged int, in addition to the right shift operation, in int is a complement of 1 in unsinged int is a
Write it down before you can remember it and look around!
PHP operation of the database, the data in the database using UTF8 encoding, when read out, the display is all??????? The question mark was garbled , and some information was originally
Calculating the time difference in PHP is sometimes a hassle! But as long as you've mastered the use of datetime functions, that's a simple thing to do:
A simple example is calculating the number of days to borrow, which requires PHP to calculate
Download the latest Bugfree here, then copy the Bugfree directory to the C:\Apache2.2\htdocs directory and copy the file C:\Apache2.2\htdocs\bugfree\Include\ Config.inc.Sample.php for the new file include/config.inc.php, edit the newly created file
Questions:
Copy to ClipboardWhat to refer to:
[www.bkjia.com]$javapage =
EOM;
Don't understand What does that mean!
Answer:
Surrounded by delimiters is a multi-line string.Delimiters can be customizedI'm a string.
{$ I am a
As the owner of the site or practitioners do not want their own site can be safe to operate, but many times when the site development of a small negligence, it is likely to become a huge site security risks. There are many tools and languages for
I was the first contact with PHP, learn the example on the Internet to write a file upload function, found unable to upload properly. The code is certainly not a problem, because in the internet Google, Baidu once again, upload the file code is the
1 mathematical operations can be applied directly to the variables in the template tag
{$foo+1}
{$foo*$bar}
{if ($foo+$bar%$baz *134232+10+ $b +10)} ... {/ if
2 Get,post,server,sessiom,cookies and other page
In this article blog post Thijs Feryn through the implementation of the Zend_controller_plugin_abstract hook method, in the original program does not use the context switching Controller assistant case, Convert the returned content response to a
Help Home Tutorial Pchart is an open source chart generation library, mainly involving 3 Class:pChart.class, Pdata.class, Pcache.class, can generate more than 20 kinds of simple or complex charts, support Png,jpg,gif general image format. The data
PhpMyAdmin "Unable to load MySQL extension, please check PHP configuration" workaround
After you have configured the PHP environment and installed the MySQL database, you can learn how PHP interacts with MySQL.
Since MySQL is a database, it is
Using PHP to implement the desktop shortcut to download the URL, is to access PHP files, the implementation of the download URL shortcuts, just as we manually on the desktop to create the same.
Method: Create a new PHP document: The name is good to
Today suddenly encountered the problem of PHP, found this article, very old article, but very practical, next I will tidy up the updated php5 array
PHP4.0 has more than 30 new array-related functions. Many of these general functions allow you to
The first thing to understand is the following basic knowledge:
1, browse the Web using the HTTP protocol
The 2,HTTP protocol is stateless.
3, the entire process is the user makes a request, the server accepts the request, responds, disconnects
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