// First create the "cache" directory to write the file function BZ_cache ($ url, $ cacheName) {global $ cache; global $ QUERY_STRING; // here you can name $ filename = "cache/" according to your habits /". $ cacheName. ",". $ QUERY_STRING. ". html "
After a day of hard work, I finally installed apache2.0.44 + PHP4.3.0. I can't help but admire my stupidity: (I used to install php static modules in the past, it seems that the installation process in apache2 or later versions does not work (I
The ability to easily operate information submitted by users through HTML forms has always been one of the advantages of PHP. In fact, PHP version 4.1 adds several new methods to access this information and effectively removes the most commonly used
"Developing robust code with PHP" is a series of articles on solving practical problems in large and medium-sized applications. In this article, PHP veteran Amol Hatwar discusses how to effectively use variables. He also demonstrated how to use
It is easy to use php and imagemagick to process the upload and scaling of image files. However, if you want to scale the uploaded image, you can use GD, however, it is complicated. ImageMagick is an image processing package, which is available in
Obtaining all possible values of the ENUM (enumeration) column in MYSQL does not require any other functions. You only need to use some SQL statements provided by MYSQL. For the sake of simplicity, take the MYSQL System Table USER as an example to
B> why PHP?2. competitors: ASP, mod_perl, JSPMany technologies are used to implement interactive dynamic WEB pages. CGI, also known as the Common Gateway Interface, is a standard programming Interface between external programs and WEB servers,
I. PHP script code markThe PHP script is the content included in a pair of special tags in the file. For example, ASP is " ", PHP can be viewed as" ".However, to adapt to XML standards to embed PHP into XML or XHTML, PHP does not recommend the use
Add the following at the beginning of the php Web Page
Reference content is as follows:$ Time_start = getmicrotime ();Function getmicrotime (){List ($ usec, $ sec) = explode ("", microtime ());Return (float) $ usec + (float) $ sec );}?>
Php is quickly promoted with ease of use, but it is not easy to say that it can be used. In fact, many programmers use it to easily establish a web application system, but how many people have carefully considered their code, whether it is easy to
After php5.1.1, the date function adds the following constants.
The following constants are defined from PHP 5.1.1 to provide standard date Expression methods. They can be used for date format functions (such as date ()).
DATE_ATOM (string)Atomic
PHP pre-defines several constants and provides a mechanism to define them at runtime. Constants and variables are basically the same. The difference is that constants must be defined using the DEFINE function. Once a constant is defined, it cannot
, Connect to the database
$ Dbhost = localhost;$ Dbuser = root; // your mysql user name$ Dbpass = 123456; // your mysql password$ Dbname = data; // your mysql Database Name
// Connect to the local database$ GLOBALS ["conn"] = mysql_connect ($
One aspect is server solution:
Apache settings: adddefacharcharset UTF-8
In addition, I have encountered the following events:
UTF-8 web page, let others to access, results many people said after entering a blank, found that because the browser
The article "IP address-> geographic location conversion evaluation" mentions that using the ip2addr function to directly read IP database files is the most efficient. Compared with using the MySQL database to store IP data, SQL queries are the most
In PHP programming, we often encounter some functions that directly generate output, such as passthru (), readfile (), and var_dump. however, sometimes we want to import the output of these functions to a file, or process the output of these
IV,Q: It seems that there is a problem when I compile PHP and APACHE together. It always says that the httpd. h file cannot be found, but the file actually exists. Why?A: You need to let the PHP configuration/installation script know the highest
I,Q: I have installed the APACHE module for Unix by step, but the source code of my PHP script is displayed in the browser, or the browser prompts me to save the file. Why?A: This is because the PHP module does not work properly. Check the following
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