First create two PHP files one is install.php the other is config.php which config.php is empty file
install.php contents are as follows: Untitled document
"; $ff =fopen ($files, "w+"); //File operation open a file or create a new
1, establish conn.php2, establish add.phpuser:title: Content: 3, establish list.php title:user name: contents: This article is from "Jerry" blog, be sure to keep this source http://alipay.blog.51cto.com/7119970/1537553
PHP user-defined functions can only return a value using the return statement. After the return statement is executed, the entire function is terminated. Sometimes, when a function is required to return multiple values, return cannot be used to
With this code, I can output HelloWorld when the category ID is 9? Phpif (is_category (9) {echoHelloWorld ;}? Next, I want to output a list of articles when classification is 9 :? Phpif (is_category (9 )){?? Php $ postsget_posts (showposts15
With
After performing the des encryption operation, we found that the results obtained in windows and linux are different. it is found that this operation exists in the createkey process and is different from here. The network query result is int
Variable cannot be passed between "1" pages
Get,post,session Automatic global variables are turned off in the latest PHP version, so the variables to be submitted from the previous page are obtained using $_get[' foo '],$_post[' foo '],$_session['
PHP versions 4.0 and 5.0 differ greatly in class support. CompileCodeWe strongly recommend that you do not mix the 4.0 and 5.0 syntaxes.
However, in some cases, you may need to consider the compatibility of the two-generation version. The
Enables PHP user-defined functions to return multiple values. PHP user-defined functions can only return one value using the return statement. after the return statement is executed, the entire function is terminated. Sometimes, when a function is
Establishing a database connection
$link = mysql_connect ("localhost", "Mysql_user", "Mysql_password")
Or Die ("Could Not connect:". Mysql_error ());
Get the current number of pages
if (Isset ($_get[' page ')) {
$page =
: This article mainly introduces how php supports mysql in centos. if you are interested in the PHP Tutorial, refer to it. I only installed one php-mysql here ~~
[root@LAMP1 controllers]# yum install php-mysqlLoaded plugins: fastestmirror,
Although the PHP language has already established its own software culture, it is absolutely not difficult to find its own maddening drawbacks. We used to list the twelve worst features that were the most unacceptable to developers in our previous
Let PHP multi-language [turn] original address: http://www.laruence.com/2009/07/19/1003.html
It is very difficult to develop multi-language Web applications. the encoding methods, currency symbols, date formats, numeric formats, and text
is WordPress makes PHP more popular instead of frame, WordPress framework
Tiobe Index, the world ranking index of programming languages, is a ranking that shows the relative trends of various programming languages, beginning in 2001 and updated
This class of design ideas draws on jquery, using the Concatenating method to manipulate pictures, such as:
Copy CodeThe code is as follows:
$image = new Usaimage (Array (' filepath ' = ' image1.jpg '));
Picture image Overlay A picture, the second
download files by simply having the URL point to a file located under document root.
But, doing so, there is no way to do some statistics, permission checks, etc. work. So, a lot of times, we use the PHP to do forwarding, for users to
Variable get,post,session cannot be passed between "1" pages in the latest version of PHP the automatic global variable is turned off, so to get the submitted variable from the previous page use $_get[' foo '],$_post[' foo '],$_session['. Foo '] to
Matching regular expressions for Chinese characters: [U4E00-U9FA5] Match Double-byte characters (including Chinese characters): [^x00-xff] Application: Computes the length of the string (a double-byte character length meter 2,ascii character 1)
Recently in Linux, PHP support Java classes, I put the debugging notes after finishing the summary written out, I hope that the future debugging will help.
System environment:
Redhat 9.0
Apache-1.3.27
Mysql3.23-54a-11
Php-4.32
J2sdk1.4.1_03
Create a database CREATE TABLE ' message ' (' ID ' tinyint (1) NOT NULL auto_increment, ' user ' varchar (+) NOT null, ' title ' varchar NULL, ' content ' tinytext not null, ' lastdate ' date not NULL, PRIMARY KEY (' id ')) engine=innodb DEFAULT
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.