We usually declare a class first, then use this class to instantiate an Object!
However, when we declare this class, we want to use the properties or methods of this class within the class itself. What should be said?
For example:
I declare a user
1. Installing Apache
Copy the httpd-2.2.4.tar.gz to the/USR/LOCAL/SRC directory
TAR-ZXVF httpd-2.2.4.tar.gz
CD httpd-2.2.4
./configure--prefix=/usr/local/apache2--enable-so--enable-vhost-alias--enable-rewrite--enable-deflate-- Enable-mods-shared=all-
The first is the implementation of the plug-in management class:
Copy the Code code as follows:
/*** Stblog PlugInManager Class** Plug-in mechanism implementation core class** @package Stblog* @subpackage Libraries* @category Libraries* @author
1, first open the Apache configuration file httpd.conf, and remove the # # # # conf/extra/httpd-vhosts.conf front, enable the virtual host feature
2, the first to configure the localhost, so as to avoid future access to localhost problems, my Wamp
To use a high version of PHP on IIS6, you must install the fastcgi extension,
Microsoft FastCGI Extension for IIS 5.1 and 6.0
Then let your IIS6 support the fastcgi.
Then set the CGI and fastcgi parameters in php.ini:
Fastcgi.impersonate = 1
fastcgi.
Rewrite PHP preg_replace in C #.
The PHP language has a very powerful function, mostly supported by its powerful functions. In this article, we will give you a detailed explanation of how PHP function Preg_replace () is used.
php function
1. Copy the adduser.php to the Discuz root directory;
/--adduser.php content is as follows--/
Require_once './include/common.inc.php ';
Name of the registered
$user _list = File ('./username.txt ');
Password for registration
$a = "12345678";
$PWD =
The written answer is not very good, especially the JS part, but also for a long time did not review the reason.
On the machine topic is to write a copy of the Google Page class, when to take like 9/2 of the largest integer, but how can not think of
The time format is 2008-06-16
Check out the Day data:
SELECT * from ' table ' WHERE date (time field) = Curdate ();
Query out the Month field:
SELECT *
From ' table '
WHERE Month (time field) = Month (now ());
The time format is 1219876 ... Unix
Copy the Code code as follows:
/*** Traverse the directory to find all the files in the directory under a suffix name* */function Viewdir ($directory, $ext) {if (Is_dir ($directory)) {$handle = Opendir ($directory);while ($file = Readdir
The completely open nature of the site determines that the site is more likely than any traditional software to "the system always seems to work properly", so it is important to use the correct procedure error handling. Theoretically, if the design
MAMP when using Zendstudio Project operation error: The requested url/xxx.php is not found on this server:The reason is that mamp Document root is in the app by default and should be modified to place the Zendstudio workspace settings in the same
1. Under SQLyog, enter the following code to perform all
SET character_set_client = UTF8;
SET character_set_results = gb2312;
SET character_set_connection = UTF8;
If not above, can also change to GBK. It is OK to change the encoding type to the
Although in the native development, debugging the system may not use it, but for the future in the remote virtual host to place the MySQL database, will inevitably use the MySQL GUI tools such as phpMyAdmin, so it is necessary to familiarize
Here is a brief introduction to two types:
One, increase the time limit for timeouts
Note here: Set_time_limit only sets the time-out for your PHP program, not the time-out for the file_get_contents function to read the URL.
At first I thought
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