Previously, it was found that access to a local virtual server was too slow, and no problem was found after a month. Today, I guess it may be due to the storage method of the PHP session configuration. Currently, it is files, after you change it to
53 key points for improving PHP programming efficiency
Use single quotes instead of double quotes to include strings, which is faster. Because PHP will search for variables in strings enclosed by double quotes, but not in single quotes. Note: Only
PHP & more is released!
As the first professional PHP electronic magazine in China, it was born so simple and enthusiastic. although the content is a little simple, it brings together the painstaking efforts of many people. despite a lot of
# PHP variable
/* A variable is a variable that can be dynamically set and used by the variable name.
A variable obtains the value of a common variable as the variable name of the variable.
Because the value of a common variable is variable, the
1. Using the APC extension module written by Rasmus lerdorf, founder of PHP (http://pecl.php.net/package/apc)APC implementation method:
Install APC by referring to the official documentation. You can use the PECL module to install APC quickly and
Annotation symbol:
// Single line Annotation
/**/Multi-line Annotation
Use of quotation marks
''Single quotes, no meaning, can be taken without any processing;
"" Double quotes, PHP dynamic processing and output, usually used for variables.
Variable
The usage of PHP empty (), isset (), and is_null () functions has been discussed a lot, and many materials may not be clear. I will repeat it again here, but I should remember it more deeply, instead of simply using program examples to speak.
The
I am currently only a beginner PHP programmer. Through my own experience, I will bring you several software and learning websites that I think are good.
1. wampsever
Although fully configuring a lamp environment is a good thing, I am used to using
Sometimes, when we run the PHP program again
Allowed memory size of 8388608 bytes exhausted (tried to allocate 1298358 bytes)
Cause of the error: make sure it is not the cause of the program (such as an endless loop ), because the maximum memory
1. Download The FCKeditor multi-language edition2. decompress the package to lose weight for the folder:Delete all files except fckconfig. JS, FCKeditor. JS, fckstyles. XML, fcktemplates. XML, and FCKeditor. php In the/FCKeditor/directory.Delete the
Used Software
Install php-4.3.4-win32.zip with GD libraryC:/PHPCP php4ts. DLL to C:/winnt/system32Cp php. ini to C:/winnt
Install mysql-4.0.17-win.rarC:/MySQL
Apache HTTP Server 2.0.46Install it in D:/program files/Apache Group/apache2
J2sdk1.4.2 _
Class createhtml
{
Function mkdir ($ prefix = 'Article ')
{
$ Y = Date ('y ');
$ M = Date ('M ');
$ D = Date ('D ');
$ P = directory_separator;
$ Filepath = 'Article'. $ P. $ Y. $ P. $ M. $ P. $ D;
$ A = explode ($ P, $ filepath );
Foreach ($ A as $
This is used in a project. Another service is used to do some things. The generated file permissions cannot be read through PHP, and many methods have not been implemented, if I find it online, I can use C to write a proxy to implement it. I can
Some days ago, I have been searching for PHP on the Internet for how to connect to SQL server2005 for a long time. I haven't found it. I also asked Baidu for a long time, orNo one knows how to connect to SQL server2005. It's still easy to use. I
According to other people's PHP methods, a PHP simplified and traditional conversion class is encapsulated. This includes a configuration file and a class file. Configuration File: mainly the font corresponding to simplified and traditional Chinese
When we need to use a variable multiple times, we can use the static variable of the class to save this value to avoid multiple calls and multiple computations leading to lower efficiency!
// If we use the following method for calling, there will
PhP4 has released a new version, but it is a candidate version. It has fixed many bugs and updated a lot.
Download: http://qa.php.net/
+ 11 Aug 2004, version 4.3.9rc1
Rewrite the Help File+-Rewritten UNIX and Windows install help files.
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