Detailed description of the local machine apache configuration based on the domain name of the virtual host. 1. open the httpd. conf file of apache and find the # Virtualhosts # Includeconfextrahttpd-vhosts.conf section to remove the # Before the
The configuration and management of apache servers in linux are analyzed. I. two important directories: Apache has two important directories: 1. configuration directory etchttpdconf; 2. document directory varwww: 2. two configuration modes: Apache
Code used to test whether PHP is successfully connected to MYSQL. The method is simple: save the following code as test. php and put it in the web Directory for execution. Copy the code as follows :? Php $ linkmysql_connect (localhost, root, 123);
JoshChen_web format encoding UTF8-small detail analysis without BOM. However, during the development process, we found a small detail problem. we had to open F12 before we could see it. Originally, all the referenced items and titles in the head all
PHP uses phpexcel to import data to a database. If you don't talk about it, simply copy the code as follows :? Phperror_reporting (E_ALL); enable set_time_limit (0); script does not time out date_default_timezone_set
The code is as follows:
PHP allows you to save your website quickly and conveniently. How can PHP save websites quickly? Below is a piece of PHP code. the following code allows you to save your website in a shortcut in PHP so that you can browse it at any time. How can I
PHP reads a 1 GB file size. The requirement is as follows: there is a 1 GB log file with about more than 5 million lines. use php to return the last few lines of content. 1. directly using the file function to operate orfile_get_content () must
It perfectly solves the Cannotmodifyheaderinformation problem in PHP. I have encountered this problem. if I find this solution on the internet, my friends who have added PHP to my favorites must have encountered the following problem: when the
PHP converts an IP address to a decimal number. In PHP, how do I convert an IP address to a decimal number? IP addresses are usually used in PHP, but these IP addresses are not in decimal format. In PHP, how does one convert an IP address in PHP to
Improved PHP performance encoding skills and detailed analysis of performance optimization. 0. replace double quotation marks with single quotes to include strings. this will be faster. Because PHP will search for variables in strings enclosed by
Php Cache technology. Static cache of all pages, that is, static html pages are generated on all pages. static pages accessed by users are not parsed by the php server. In this way
Static page cachingThat is, generate all html static pages. the
PHP is a simple instance for connecting to the MYSQL database in the LAN. Copy the code as follows: $ connmysql_connect (192.168.0.220, root, 123); if (! $ Conn) echo failed !; Elseecho successful !; SQL statement for extracting information from a
How to correctly use json in php. Starting from version 5.2, PHP provides native json_encode () and json_decode () functions. The former is used for encoding and the latter is used for decoding. 1. json_encode () this function is mainly used to
When PHP generates a verification code, the solution is "the image cannot be displayed due to its own mistakes. Today, I used code to implement the PHP verification code generation function, and found that firefox always prompts "image ....... due
A beautiful php verification code class (share ). Directly run the code: Copy the code as follows: classValidateCode {private $ charsetabcdefghkmnprstuvwxyzABCDEFGHKMNPRSTUVWXYZ23456789; random factor private $ code; directly run the code:
The
Parse how to call user-defined functions in php. Let's take another example first: the call_user_func function is similar to a special method to call a function. the usage method is as follows: Copy the code as follows: functiona ($ B, $ c) {echo $
Php reads the image content and outputs the implementation code to the browser. The code is very simple and can be found on the Internet, but it cannot be displayed on my computer. it is always the php file path, and it takes some time to get it
How to use the "PHP" egg to obtain sensitive information. Many old PHPer may have known or heard about the "PHP egg" statement. it seems that there was an egg as early as the PHP4 version, in recent years, many people may already know or hear about "
Provides an encapsulated curl function for easy calling (dedicated for data capturing ). Provides an encapsulated curl function to facilitate code copying: functioncurl ($ url, $ ifpost0, $ datafields, $ cookiefile, $ vfalse) {$ headerarray (Conn
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