?
2, please in the local environment, compile PHP, requirements: Version 5.4, 5.5, 5.6, each version to cover 3 compiled version, including NTS \ ZTS \ Debug
/usr/lib/apache2/modules
/etc/apache2/mods-enabled/
Vim Php5.load
.
① Custom Installation (first to stop Apache service in management, then uninstall Apache, no need to restart the computer when installing)
Apache+php+mysql+phpmyadmin Self-installing
We recommend that you install the installation to the same
Based on the various image manipulation methods that have been given, here I summarize a class of PHP image operation, including adding text watermark, image watermark and compressed image to the image. Readers can add their own functionality.
PHP to add text watermark to the picture before, here we introduce how to make picture watermark, in fact, the principle is the same, the difference lies in the second step, the operation of the picture we want to get the watermark picture
The current phenomenon is that Phpstorm + xdebug can debug a Web service that connects to a virtual machine on my laptop, but not even on an online web host.
Wipe, previously also did not directly connected to the online host to debug, has been
A record of the database I get from PHP is stored in the session, and the fields in the information in the session are not available in the JSP page.
I do not understand JSP, but PHP can get information about the session.
is language differences
The essence of the namespace in PHP is the container, which can act as a wrapper.
In this container we can put variables, functions, classes.
The understanding of the PHP namespace concept can be analogous to the file directory, which is used
I always understood that it was a test error that the constructor method was automatically called after the object was created.
Class o{Public Function __construct () {var_dump ($object);}} $object = new O;
Error message: notice:undefined
Singleton: A class can always produce only one object.
First, you have to let this class fail to produce new objects. There are two ways to generate new objects in PHP: New and clone, if you privatize the construction method and the Clone
Table field is like this, query direct relationship is OK
$sql = "SELECT count (*) as Count from User_relation WHERE formid= '". $id. "'"; $query =mysql_query ($sql), if ($rs =mysql_fetch_array ($query)) { $count = $rs [0];} else{ $count = 0;
PHP calls the Enterprise API interface underlying class library
This project is based on personal preferences and the actual development needs of the writing and design, the main function is to complete the Enterprise Number API encapsulation, is
The characters are as follows;
$STR = "epicenter category city resounds mi. ";
$str = "About in winter! ";
Not the last punctuation, how to achieve it? is a Chinese character.
Reply to discussion (solution)
Iconv_set_encoding
I used phpcms this program to do the station group now has a problem my branch site in the implementation of the search function will automatically jump to the main site to ask this question how to solve it?
Reply to discussion (solution)
Wood,
After clicking on the first Level column 1,
First Level column 1
Into:
First Level column 1
,
At the same time: id= "xlm2" Li can display the level two columns:
level two column 1
, and then click on the Level two column,
Website now login Hundreds of people, execute a management background program, let everyone logout, offline.
Website Login completely using session, unused cookies, now requires a management function at any time t everyone offline.
Thank you!
The latest version Git-1.9.2-preview version downloaded from the official website, installed in another Win7 without this error, but installed in one of the errors that occurred,
Have not understood, I installed the choice of Windows under the
1, the use of ++i (take A=++i, i=2 as an example)
The I value is first added to 1 (that is, i=i+1) and then assigned to the variable a (that is, a=i),
Then the final a value is equal to 3, and the I value equals 3.
So a=++i equivalent to i=i+1,
Ask everyone, I transplanted the system to the new host when the following error is displayed
Fatal error:call to undefined function gzinflate () in website path/includes/classes/seo.url.php on line 1240
The original file will work properly on the
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