14. Three virtual hosts and 14 three virtual hosts
A vm provides Web Services for multiple individual domain names on a WWW server.
Apache supports Virtual Hosts in three ways:
1. IP-based VM:Multiple IP addresses are configured on one server. Each
PHP MySql addition, deletion, modification, and query
Mysql_connect () connecting to the database
Mysql_select_db select database
Mysql_fetch_assoc () to obtain the result set
Mysql_query () Execute SQL statements
Example:
$ Con = @ mysql_connect
Process:
1. Obtain the csdn user database and import it locally
After trying editplus for a trial, the system prompts that the memory is insufficient and there is no way to solve the problem. I checked it in my colleague's linux. The basic format is
Page 1 while LOOP
In this lesson, we will continue to use PHP and MySQL to write some simple and useful pages. We started to display the data in the database from the database we created yesterday, but it will be slightly improved.
First, we use the
Linux boot guide encryption is a measure to improve Linux security. Here we use RedHat Linux as an example to set Linux boot guide encryption. experiment is a means to improve our technology, we must try this method to learn the technology.
Enable
This article introduces Python operation MySQL, execute SQL statement, get result set, traverse result set, get a field, get the name of the table field, insert the picture into the database, execute the transaction and so on various code examples
Install Centos6.5
First, VirtualBox virtual machine installation Centos6.5
1, the new virtual computer, select some parameters and configuration
2, into the Centos6.5 guide interface, select "Install or upgrade an existing system"
3, follow the
The project needs to reinstall a MySQL server on the existing server, it is very difficult, because it was in my notebook before the test, its system is Ubuntu, what path Ah, start the way ah. It's not the same, so this time it still makes me tangle:
Through the previous introduction, you can have a more comprehensive understanding of Nginx: Nginx itself is a static HTTP server and reverse proxy server, it does not support dynamic pages, the so-called Nginx Dynamic program support are
To connect to a database:use an object-oriented approach;1. Create a Mysqli object, create a Connection object2. Prepare an SQL statement3. Execute the SQL statement, if it is a query statement. Successful return of results and objects4. Find the
14 Insert the Age field type before the field name in the test table tinyint (2)Mysql> CREATE TABLE test (ID int (4) not NULL, name varchar (+) not NULL);Query OK, 0 rows affected (0.36 sec)mysql> desc test;+-------+-------------+------+-----+-------
[Email protected] ~]# mysql-u root-p 123456Enter Password:ERROR 1049 (42000): Unknown database ' 123456 '[Email protected] ~]# mysql-u root-pEnter Password:Welcome to the MySQL Monitor. Commands End With; or \g.Your MySQL Connection ID is 6Server
This article mainly introduces the php Command Line usage and command line parameter descriptions. For more information, see
The Code is as follows:
[Root @ localhost/] #[Root @ localhost/] # php-r "var_dump (true);" # PHP code execution is not
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.