MYSQ in the introduction of a lot of pages in the page, and Text data table-style page to introduce a few, here I simply say the page
Mainly introduce the following page thinking
1, the page of the message book
2, the Text forum page
——————————————
This page is php3.php
Include "Signup/mysql.inc";
Switch ($part) {
Case "1": $table = "bbs_php";
Case "2": $table = "Bbs_mysql";
Case "3": $table = "bbs_html";
Case "4": $table = "Bbs_js";
}
Echo $part;
?>
Xiaoyang
Objective
If you lack confidence in using Apache. Or you're already using Apache 2 but you can't let him work with PHP (Apache can't parse your. php script). Don't be afraid, after reading this article, all the problems will be toughened and solved.
Apache 2 and PHP are popular scenarios for creating interactive Web sites and are inexpensive. Installing Apache 2 in Windows is a breeze, but for PHP 4 to work seamlessly with Apache 2, you need some skill.Turn from: Dynamic Web Authoring Guide www.
Implementation of File Upload
More familiar with the ASP friend may know to upload files with ASP is not too simple, PHP is different, easier, see examples: Send.htm and get.php as follows:
The following code receives the uploaded
echo "Connecting as MySQL
\ n ";
$connection 1 = mysql_connect (' localhost ', ' MySQL ', ') or Die ($php _errormsg);
echo "Connection1 is $connection 1
\ n ";
echo "Selecting test for MySQL user
\ n ";
mysql_select_db (' Test ', $connection 1)
Install PHP using ISAPI mode.
Download Connection: Http://cn2.php.net/get/php-4.4.0-Win32.zip/from/cn.php.net/mirror
The ISAPI approach is the most efficient way to execute PHP under the win system IIS. Strongly recommended.
After extracting PHP,
When we browse some websites, we often see that some news is just updated soon, if it is manual maintenance, it will be a very tedious job. However, we can use the program to control the implementation of the update operation, things will become
PDO as the next PHP database unified interface, the current version is 0.9, it seems soon to release, early adopters.After testing, PDO coupling is about 3 times times faster than ADODB, and the direct connection is very small.Test tool: ABTest
In general, you can implement a page that displays Phpinfo (). Start with a question that appears after you can display the page
PHP problems will be displayed on the phpinfo () page
First see if the path to your php.ini is correct
Q: I have
Abstract class
Abstract classes cannot be instantiated.Abstract classes, like other classes, allow you to define variables and methods.Abstract classes can also define an abstract method, and the methods of the abstract class will not be executed,
PHP provides us with system (), exec (), PassThru (), shell_exec () functions to invoke external commands. Although these commands can execute the Linux system shell commands, they are actually different:
System () outputs and returns the last line
Smtp
Since PHP does not provide an out-of-the-box SMTP function, it provides a less flexible mail () function that requires support on the server configuration and does not support SMTP authentication and does not work properly in many situations
Two seem to terminate the program execution, it seems to be no different
Google for a while some people say one is to die before a bubble, one will not
Turn over the manual, as if exit could also output something.
void exit ([string status]);
There are a number of new interfaces in PHP5. You can learn about their applications in the series of articles translated by Haohappy. At the same time, these interfaces and some of the implemented classes are classified as standard PHP Library (SPL)
PHP has some characteristics of dynamic language, but not completely. Although the logo of PHP is an elephant, the nose of this elephant is too short to be able to reach something often, but it is like a pig. The purpose of this paper is to explore
Today try to write a PHP and C language through the socket communication program, read the PHP manual, found that there are several ways to establish a socket client.
1, through Fsockopen () to establish a socket connection, and then use Fputs ()
One, variable
It is best to store all the variables in an array, which can bring a lot of convenience in the development of the program, especially when the program is very large. The name of the variable is suitable for its own habits, whether it
10 Advanced Tips for PHP (bottom)
Vi. creation of dynamic images
As long as you install some third-party library files and have some geometrical knowledge, you can use PHP to create and manipulate images. In fact, this does not require much
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