PHPLIB can help you write from medium to large database-driven web applications!

xiaoxiao2021-03-06  59

PHPLIB can help you write from medium to large database-driven web applications!

Ruohe

Web Programming (2001-05-04 09:19:54)

1. PhPLIB's use object is a developer of a PHP application. Therefore, if you want to apply phplib to make a website design, you first need to pay the PHP language, and have basic SQL database operation skills, it is more clear. Learn how to do your web server, understand how to apply phplib in this environment!

2. PhPLIB can help you write from medium to large database drive web applications!

3. Install phplib

First, make sure your web server, and the normal work of the MySQL database server

(1) Establish a PHP directory, this directory is parallel to your web server root directory

(2) Copy the PHP directory and unwise your PHPLIB compression package. Copy the contents of the PHP catalog in the compressed package to the directory you just created.

(3) Modify PHP's INI file (php.ini or php3.ini), change auto_prepend_file =: auto_prepend_file = prepend.php3, where prepend.php3 should be in the PHP directory you just decompressed; view php of INI File, guarantee TRACK_VARS = ON

(4) Modify the local.inc file under the PHP directory, set the correct database user and permissions. For this step, you should have a certain understanding of MySQL.

Please note that I am here to get a long time: General a web program takes a Local. Inc file, where there is a set of databases:

Class DB_GuestBook Extends DB_SQL {

Var $ host = "localhost";

Var $ database = "guestbook";

Var $ user = "root";

Var $ password = "";

}

Here: host = "localhost: 3036 settings (pay attention to port number)

(5) For the database section, create_database.mysql, create your database and data table, and initially one user, you can establish it under MySQL character interface; the data table can be established according to the structure provided by Eate_Database.mysql;

Debugging and running see what is the result? Ok, I don't have much to say anything else, go to the phplib documentation and instructions!

============================================================================================================================================================================================================= ============================================================================================================================================================================================================= === From http://www.sanisoft.com/phplib/download.php Download the latest version of PhPLIB-7.4

Unzip it under the root of Apache, such as D: / Apache Group / Apache2

Edit C: / Windows PHP.INI files under WINDOWS

Search for auto_prepend_file =

Add "D: / Apache Group / Apache2 / PHPLIB / PHP / prepend.php3"

Search include include_path =

Add "D: / Apache Group / Apache2 / PHPLIB / PHP"

Create a database using phpMyAdmin, such as phplib

Create_Database.mysql under the database phplib runs SQL through the text file D: / apache group / apache2 / phplib / stuff

Edit D: / Apache Group / Apache2 / phplib / PHP prepend.php3

Search required ($ _ phplib ["libdir"]. "DB_MYSQL.INC");

Change it to Require ("DB_MYSQL.INC");

Edit D: / Apache Group / Apache2 / PHPLIB / PHP Local.inc

Search Class DB_EXAMPLE EXTENDS DB_SQL

Change 4 variables

Var $ host = "localhost";

Var $ database = "phpo";

Var $ user = "root";

Var $ password = "";

Make it to meet your newly built PHPLIB database

Simultaneous, editing d: / apache group / apache2 / phplib / php DB_MYSQL.Inc

Search Class DB_SQL

Change 4 variables

Var $ host = "localhost";

Var $ database = "phpo";

Var $ user = "root";

Var $ password = "";

Make it to meet your newly built PHPLIB database

Copy the Pages folder under D: / Apache Group / Apache2 / phplib to the HTDOCS directory of Apache, such as D: / Apache Group / Apache2 / HTDOCS

Browse http://localhost/pages/showoff.php3 Default username: Kris Password: Test

转载请注明原文地址:https://www.9cbs.com/read-86632.html

New Post(0)