Enhance UNIXLinux website features with PHP

zhaozj2021-02-08  297

If you are a network development and maintenance person, it should be quite familiar with the ASP. Since Microsoft launches ASP technology, due to its

In establishing a powerful function of a dynamic website, soon it has been widely used. But because of well known reasons, ASP can only be used for

Microsoft's own operating system and server system. Unix-based network system still occupies most;

The system is very popular because of its free and open source code, its market share has risen rapidly, and it has been said to be around 17%;

The Apache server is always the mainstream server software of the network site. The emergence and gradual improvement of PHP is based on

Network developers of UNIX / Linux system are undoubtedly good news: we can only envy ASP

Easy to use, regretted Perl / C complex!

PHP Features Overview

PHP is all called Personal Home Page, starting from 1995, and becomes a mature soft in 1998.

Piece product. The latest version is 4.0, and the common version is 3.0. PHP is written in C language, can be operated

Unix / Linux and Win9X / NT.

PHP is a cross-platform server-side embedded scripting technology. PHP page is a text file,

Is embedded in a PHP scripting statement in a normal HTML page file, interpreted and translated by the server into ordinary HTML text

Parts, then transfer to the client browser, which is the same as ASP.

PHP has borrowed the syntax of C, Java, and Perl language, and joined various PHPs.

The characteristics make the web developer to write a fast dynamic page.

The PHP script segment begins with "". "" Scripts

The statement is replaced with a normal HTML script after the server software calls the PHP script interpretation engine. The author believes that PHP is the most powerful and most representative characteristic lies in its database layer, which has a lot of built-in

The database is supported without special expansion, making it very simple to write a database-based web page. Currently supported database

There are Oracle, Adabas D, Sybase, FilePro, MSQL, Velocis, MySQL, Informix, Solid, DBASE,

ODBC, UNIX, DBM, PostgreSQL, MS SQL Server, etc. There are a set of functions for each database for database access and operation.

For example, if there is DBASE_create, dbase_open, dbase_close, dbase_pack, dbase_add_record,

DBASE_DELETE_RECORD, DBASE_GET_RECORD, DBASE_NUMFIELDS, DBASE_NUMRECORDS, etc.

Mysql_close, mysql_connect, mysql_create_db, mysql_data_seek, mysql_dbname, mysql_db_query

Waques.

At the same time, PHP also provides a set of image functions, which can dynamically generate image data streams in GIF format and output to

Client.

In addition, PHP also offers Socket, Email, PDF file, HIS (Hyperwave Information

Server, IMAP, LIGHTWEIGHT DIRECTORY ACCESS protocol, file upload, NIS and other functions.

Two built PHP application platform

PHP can run in a UNIX / Linux Apache server system or Win9X PWS server system or Winnt IIS server system.

Below PWIN98 PWS4.0 as an example, a PHP learning and development environment is built.

(1) Download php3 for Win9X / NT

To http://www.php.net, select Downloads, then select Download The PHP Source Code and Windows

Distribution, select a download site, then select 3.0.11 Win32 Binary. If you feel trouble, just

Use http://www.php.net/distributions/php-3.0.11-win32.zip. Download file name is PHP-3.0.11-win32.zip,

The size is 1.68m.

(2) Installing PHP3 for Win9X / NT

Installing PHP3 for Win9x / NT is simple, just decompress php-3.0.11-win32.zip into a directory. Below

In the discussion, it is assumed that the PHP3 is installed in the C: / Program files / php3 directory.

(3) Configuring php3 for Win9X / NT

Configuring php3 for Win9x / NT, that is to modify system settings, so that PWS4.0 can use the php3 script interpretation engine to explain the PHP page.

1. Copy the file php3-dist.ini in the C: / Program Files / PHP3 directory to the Windows98 installation directory (such as C: / PWIN98) and renamed it is php3.ini.

2, edit the php3.ini file

Edit the php3.ini file, change the "EXTENSION_DIR" item under "Paths and Directories" to "extension_dir

= C: / Program Files / PHP3 "; change the" browscap "item under" browscap "to" browscap = c: /pwin98/systeminetsrv/browscap.ini "(files in the PWS4.0 installation directory); in the registry HKEY_LOCAL_MACHINE / SystemCurrentControlSet / Services / W3SVC / Parameters / ScriptMap's primary key, add a string value, its name

".Php3" (PHP3 file extension), its value is "c: / program files / php3 / php.exe% s% s".

Thus, after restarting the PWS server software, PWS4.0 can explain the PHP page with the PHP3 script interpretation engine.

Three PHP script syntax

In the PHP3 file, the PHP script segment begins with "" Is ended, with "".

Is a PHP block.

PHP grammar and C, Perl syntax is similar, mainly from C language, such as controlling flow statements and C almost exactly the same, variables

The operator is similar to C, the function definition, and the call to C is similar.

The PHP variable name must have a $$, such as $ VAR1, $ VAR2. PHP variable scope regulations are similar to C, that is, the default consider

The variable in the number is global variable, and the variables in the function are part variables.

In PHP, the ECHO and PRINTF functions are used to output HTML content to the HTML page, where echo outputs unformatted strings, PrintF

Formulated string. Such as echo ("
A PHP page


) and Printf ("% s,% d ", str1, int1).

If you are familiar with C language syntax, you should not be too difficult to learn a PHP script syntax.

Founded its own simple PHP page

The so-called PHP page is inserted into some special scripting languages ​​in a normal HTML page file and defensing PHP.

Subsequent page files, so you can easily create a simple PHP page.

Below is a simple PHP page file (TEST01.php3), it should not be difficult to understand.

A simple PHP3 page </ title></p> <p></ hEAD></p> <p><body></p> <p><p> <h1></p> <p><? echo ("PHP script interpretation engine has started working for you! <HR>");?></p> <p><h1> The following should appear, the font size is from 4 to 7 </ h1></p> <p><? for ($ I = 4; $ I <= 7; $ i ) {?></p> <p><br> <font size = <? printf ("% d", $ i)? >> The font size of this line of statements is</p> <p><? Printf ("% D", $ i);}?> </ font></p> <p></ p></p> <p></ body></p> <p></ html></p> <p>Where, statement <? Printf ("% D", $ i);?> Is output to the value of the variable i to the HTML file.</p> <p>As can be seen, you can make a normal HTML page file first, then insert the PHP scripting language in the need.</p> <p>The key is to skilled application php scripting statements.</p> <p>Although this page is simple, it can help familiarize and understand PHP syntax. You can view the running effect by browser, and then view the source</p> <p>The function of the code looks at the source code, you can see the HTML file after the PHP page is explained. Note that the PHP page must be accessed in HTTP.</p> <p>You cannot double-click the file name as a file manner as an HTML page file. If the access method on the author's computer is</p> <p>http://wangfajun/test01.php3, because the PHP page requires PWS and other server software to explain.</p> <p>Four access to user request information</p> <p>To make a dynamic site page, getting user request information is essential. PHP pages can take advantage of this information as some applications</p> <p>(If commercial order information) is based on the application requirements of the applicant.</p> <p>In the ASP page, its built-in object Request can be utilized to obtain the accessor's application information. And in the PHP page, you can read</p> <p>The array is obtained to obtain the accesser's application information such as form field, query information, and the like. Request page</p> <p>The request information sent by the POST method can be obtained by $ http_post_vars ["itemname"], please send it in a GET method</p> <p>Information can be obtained by $ http_get_vars ["itemname"], cookies information can be $ http_cookie_vars [</p> <p>"ItemName"] is obtained. The general form information is sent in a POST method, which can be $ http_post_vars ["itemname"]</p> <p>Way acquisition; query information is sent in a GET method, which can be obtained by $ http_get_vars ["itemname"].</p> <p>(1) Request another PHP3 page processing by an HTML or PHP3 page</p> <p>In the following example, the Reader Membership Registration Application page requires the applicant to fill in the full name, ID number,</p> <p>Email address. The registration is notified after receiving the reader application.</p> <p>Before doing a Reader Membership Registration Application page, you can be an HTML page or a PHP page. This should not be a problem.</p> <p><! - apply.htm -></p> <p><html></p> <p><HEAD></p> <p><Title> Reader Member Qualification Registration Application </ Title></p> <p></ hEAD></p> <p><body></p> <p><H2> Reader Member Qualification Registration Application </ h2></p> <p><form method = "post" action = "test02.php3"></p> <p><p></p> <p>Name full name: <input name = "fullname" size = "20" value = "Name"></p> <p><p></p> <p>ID number: <input name = "universalid" size = "15" value = "888888888888888"> <P></p> <p>Email: <input name = "email" value = "mailbox@yourcompany.com"></p> <p><p> <input type = submit value = "Submit Application"> <input type = reset value = "Re-filled"></p> <p></ form></p> <p></ body></p> <p></ html></p> <p>In the application page, all application data is filled in the FORM element and specifies the processing in the action of the form.</p> <p>The application page is TEST02.PHP3. When an application is received, the data of the corresponding item can be from $ http_post_vars ["project name"]</p> <p>Come, where "project name" is the name of the Form element, such as "full name", "fullname", such as "ID number"</p> <p>Should be "universalid". Now use this information to make a registered notification page TEST02.PHP3.</p> <p><! - TEST02.PHP3 -></p> <p><html></p> <p><HEAD></p> <p><title> Reader member qualification registration application successfully </ Title></p> <p></ hEAD></p> <p><body></p> <p><p align = "center"> <h2> <font color = "green"> Reader member qualification registration application successfully</p> <p></ font> </ h2></p> <p><p> Dear <? Printf ("% s", $ http_post_vars ["fullname"])?> Reader: <br></p> <p>We have received your application and accept your application. You have become our official reader member. <br></p> <p>Your reader number is CN <? Printf ("% s", $ http_post_vars ["universalid"])?>. We will pass your email</p> <p><? Printf ("% s", $ http_post_vars ["email"])?> Formally inform you. Since then, our department holds a reader's salon activity.</p> <p>And location will also inform you through the mailbox.</p> <p></ body></p> <p></ html></p> <p>Now open the application page Apply.htm with the browser, submit the application after filling the corresponding data, check the feedback effect, then use the browser</p> <p>View the function of the source code Look at the source code, you can see the HTML files explained to the PHP page.</p> <p>(2) request the same php3 page processing by a PHP3 page</p> <p>In another example of the following, login.php3 provides a user login page that requires the user to enter the login account and password.</p> <p>Then send the table to yourself by forming the form attribute. In login.php3, will be based on account and password</p> <p>Is it empty to judge whether it is an input page or a feedback page, and gives a different prompt, if the account number or password is not entered prompts "users</p> <p>Login, please enter the user account and password, otherwise the user account and password are displayed.</p> <p><! - login.php3 -> <html></p> <p><HEAD></p> <p><Title> User Login </ Title></p> <p></ hEAD></p> <p><body></p> <p><? file: // account or password is empty, prompt the user to log in to enter the user account and password</p> <p>IF (Empty ($ http_post_vars ["customerid"]) ||</p> <p>EMPTY ($ http_post_vars ["password"])))</p> <p>{</p> <p>?></p> <p><p align = center> <h2> User login, please enter the user account and password </ h2> </ p> <hr></p> <p><form method = "pos" action = "login.php3"></p> <p><p></p> <p>User account: <input name = "CustomerID" value = ">"></p> <p><p></p> <p>User Password: <Input Name = "Password" Value = ">></p> <p><p> <input type = Submit value = "Start Login"> <input type = reset value = "Registration"></p> <p></ form></p> <p><?</p> <p>}</p> <p>Else File: // Enter the user account and password, display the user account and password</p> <p>{</p> <p>Printf ("<p> <h2> User% S is successful, the password is% s. </ h2> </ p>", $ http_post_vars ["Customerid"],</p> <p>$ Http_post_vars ["password"]);</p> <p>}</p> <p>?></p> <p></ body></p> <p></ html></p> <p>(3) Get the query parameter information in the PHP3 page</p> <p>When the user issues query requests in XXXX.PHP3? ParaName = Paravalue, xxxxx.php3 can</p> <p>Get the information Paravalue submitted by the query parameter paraname submitted from $ http_get_vars ["paraNGet_vars [" PARANAME ".</p> <p>The number of users request parameters is known from COUNT ($ HTTP_GET_VARS) and the corresponding processing is performed.</p> <p>When the user issues query requests in the way in query.php3? Customerid = 7777, Query.php3 can</p> <p>$ Http_get_vars ["Customerid"] The value of the query parameter Customerid is 7777,</p> <p>COUNT ($ http_get_vars) is 1.</p> <p>When the user issues query requests in the way in query.php3? Customerid = 7777 & password = dogisdog</p> <p>Query.php3 can get the value of the query parameter Customerid from $ http_get_vars ["customerid"]</p> <p>7777, from $ http_get_vars ["password"] to get the value of the query parameter Password is Dogisdog,</p> <p>COUNT ($ http_get_vars) is 2.</p> <p>The following example (query.php3) is used to obtain the query parameters specified by the user and display it feedback to the user. Be</p> <p>Query.php3? Customerid = 1111 & StartDate = 1999.01.01 & Enddate = 1999.06.30 When requesting, the result is:</p> <p>You specify that three query parameters are as follows:</p> <p>The value of the first parameter Customerid is: 1111</p> <p>The value of the second parameter startdate is: 1999.01.01</p> <p>The value of the third parameter Enddate is: 1999.06.30</p> <p><! - query.php3 -></p> <p><html></p> <p><HEAD></p> <p><title> Query Parameter Processing </ Title></p> <p></ hEAD></p> <p><body></p> <p><?</p> <p>$ Querycount = count ($ http_get_vars); // Query parameter number</p> <p>Printf ("<p> <h2> You specify the% D query parameters as follows: </ h2>", $ querycount); // Display the number of query parameters</p> <p>File: / / list each query parameter and its value</p> <p>For ($ INTINDEX = 0; List ($ key, $ val) = Each ($ http_get_vars); $ INTINDEX )</p> <p>{</p> <p>Printf ("<p> <h2> the value of D parameter% s:% s </ h2>", $ INTINDEX 1, $ KEY, $ VAL);</p> <p>}</p> <p>?></p> <p></ body></p> <p></ html></p> <p>(4) Get user cookies information</p> <p>Cookies can be passed between servers and clients, which records some information about a particular user. In PHP</p> <p>Take the user's cookies information in $ http_cookie_vars ["cookieItemName"]. The following statement can be used</p> <p>Demonstrate all cookies information:</p> <p><?</p> <p>$ Querycount = count ($ http_cookie_vars); // cookie number</p> <p>Printf ("<p> <h2> You have% D cookies information as follows: </ h2>", $ querycount); // Display cookie number</p> <p>File: / / list each cookie and its value</p> <p>For ($ intIndex = 0; List ($ key, $ val) = Each ($ http_cookie_vars); $ INTINDEX )</p> <p>{</p> <p>Printf ("<p> <h2> the value of Cookie (% s) is:% s </ h2>, $ INTINDEX 1, $ Key, $ VAL);</p> <p>}</p> <p>?></p> <p>(5) Get server environment information</p> <p>In PHP, server environment information is given in the form of a set of global variables for PHP script access.</p> <p>Common server environment variable information is:</p> <p>$ GATEWAY_INTERFA</p> <p>CE: gateway interface such as CGI / 1.1</p> <p>$ Http_accept: Client Acceptable MIME Type List such as * / *</p> <p>$ Http_accept_language: The language used by the server, "en" represents English, "en-cn" means Simplified Chinese</p> <p>$ Http_host: HTTP server name</p> <p>$ Http_user_agent: Send a request for customer browser type, identify according to user request information and browscap.ini, such as Mozilla / 4.0 (Compatible; Msie 4.01; Windows 98)</p> <p>$ Local_addr: Name server name</p> <p>$ PATH_TRANSLATED: The file full name of the script file (including the actual path), such as</p> <p>C: /inetpub/wwroot/php3/query.php3</p> <p>$ Transote_addr: IP address of the requesting client machine</p> <p>$ Transote_host: Name of the requesting client machine</p> <p>$ Request_Method: Method for issuing a request (post / get / head)</p> <p>$ Script_name: The path and file name of the script file called, such as / php3/query.php3</p> <p>$ Server_name: The name or IP address of the server</p> <p>$ Server_Port: HTTP service port number, generally 80.</p> <p>$ Http_referer: The client issued the URL of the CGI program request</p> <p>$ Server_Protocol: The protocol used by the server software such as HTTP / 1.1</p> <p>$ Server_software: The name and version of the server software, such as Microsoft-IIS / 4.0</p> <p>Five to send information to users</p> <p>You can use the function provided by the PHP to flexibly control the contents and methods of the information sent to the client. For example, you can dynamically set feedback</p> <p>Information, set the customer's cookie, page repositioning, and more.</p> <p>(1), using the information content sent by the PHP function such as ECHO, PRINTF</p> <p>Functions echo, Printf can directly output content directly to the HTML file sent to the client browser.</p> <p>In the following example, selecolr.php3 requires the user to enter a color name, and the user will apply after confirmation.</p> <p>Take the same page Selecolr.php3, then display the color name with the colors specified by the user.</p> <p><! - selectr.php3!>></p> <p><html></p> <p><HEAD></p> <p><title> Select Color </ Title></p> <p></ hEAD></p> <p><body></p> <p><?</p> <p>IF (Empty ($ http_post_vars ["colorname"]))</p> <p>{// No color name, prompt to enter the color name</p> <p>Echo ("<h4> You just need to choose the color name, I will display </ h4>");</p> <p>?></p> <p><form method = "post" Action = "selecolr.php3"></p> <p><p></p> <p>Color Name: <Input Name = "ColorName" Value = "RED"></p> <p><p> <input type = Submit value = "display"> <input type = reset value = "Want to reset"></p> <p></ form></p> <p><?</p> <p>}</p> <p>ELSE // Enter color name, display color name with specified color</p> <p>Printf ("<h2> The color you selected is <font color =% s>% s </ font> </ h2>",</p> <p>$ Http_post_vars ["colorname"], $ http_post_vars ["colorname"]);?>></p> <p></ body></p> <p></ html></p> <p>(2), use the Header function to reposition the URL page</p> <p>If the domain name or IP address of your site has changed, it is like Borland.</p> <p>Like Inprise, the old customers can use the header function to direct it directly to the new use of the Header function when using the original domain name.</p> <p>Site goes up; if users must be visited to access another page before accessing this page, you can also use the Header function</p> <p>Direct it directly to the page that should go, not the information that the user does not have to access the page.</p> <p>It is worth noting that it is necessary to use the header function before sending any information to the client, otherwise an error can be caused.</p> <p>You should generally guide the user to another URL on the first statement of the page.</p> <p>In the following example, if the user calls this page, boot it to another page Selecolr.php3.</p> <p><?</p> <p>FILE: // Reacture to Selecolr.php3, you must use the EXIT End Page Process</p> <p>Header ("Location: SELECOLR.PHP3"); EXIT;</p> <p>?></p> <p><! - redirect.php3!>></p> <p><html></p> <p><HEAD></p> <p><title> Direction </ Title></p> <p></ hEAD></p> <p><body></p> <p><p> You can't enter this page, otherwise I fail.</p> <p></ body></p> <p></ html></p> <p>(3), use the Header function to change the page content interpretation method</p> <p>In the HTML page code, you often see one sentence below.</p> <p><meta http-equiv = "content-type" content = "text / html"></p> <p>It is used to specify how the HTML page is interpreted by the browser. When Content = "text / html", the browser</p> <p>Interpret the code as a normal HTML page and display it to the user; when Content = "Text / Plain", the browser does not add the code.</p> <p>What is explained to the user; when Content = "image / jpeg" is a pass graphic file; when not specified, ContentType</p> <p>The default is "text / html". In the PHP page, you can change the type of ContentType with the Header function, you can control</p> <p>The browser explains how HTML text, such as Header ("ContentType: Image / GIF") indicates that the page return result is one</p> <p>GIF type graphic.</p> <p>(4) Setting the client cookies using the SetCookie function</p> <p>You can increase, modify or delete the client's cookies by setting the SetCookie function. When the cookie to be set does not exist,</p> <p>A new cookie will be created, its value is the value to be set; when the cookie exists, replaces the original value with a new value.</p> <p>It is worth noting that cookies should be set before the header of the page should be sent.</p> <p>In the following example, cookie.php3 is used to set a value of a cookie named WFJ. Will display when calling</p> <p>The value of the Cookie (WFJ) set last time.</p> <p><?</p> <p>File: //cookie.php3</p> <p>$ OldCookieValue = $ http_cookie_vars ["wfj"]; // The value of the Cookie (WFJ) set up</p> <p>IF (! ($ http_post_vars ["cookievalue"])))))))</p> <p>{// Enter the value of the cookie (WFJ), make a cookie setting, display setup success message</p> <p>SetCookie ("WFJ", $ HTTP_POST_VARS ["CookieValue"]);</p> <p>?></p> <p><html></p> <p><HEAD></p> <p><title> cookie Set success </ title></p> <p></ hEAD></p> <p><body></p> <p><?</p> <p>Printf ("<p> cookie (wfj) has been set by% s</p> <p>S ", $ OldCookieValue, $ http_post_vars [" cookievalue "]);</p> <p>Printf ("<p> you will see when calling");</p> <p>}</p> <p>ELSE // No value of cookie (wfj), prompt to enter a cookie value</p> <p>{</p> <p>?></p> <p><html></p> <p><HEAD></p> <p><title> cookie Set </ TITLE></p> <p></ hEAD></p> <p><body></p> <p><?</p> <p>Printf ("<p> cookie (wfj) =% s", $ OLDCOOKIEVALUE);</p> <p>Printf ("<p> <hr> <h4> You only need to set up cookies, I will display </ h4>");</p> <p>?></p> <p><form method = "post" action = "cookie.php3"></p> <p><p></p> <p>Cookie Settings: <Input Name = "CookieValue" Value = "Wangfajun"></p> <p><p> <input type = Submit value = "set"> <input type = reset value = "Want to reset"></p> <p></ form></p> <p><?}?></p> <p></ body></p> <p></ html></p> <p>Six server-side scripts and client scripts mixed programming</p> <p>When using the <script> </ script> to write a script program, if you do not specify the language = PHP, it is considered</p> <p>The script is executed on the client, at which time the server-side main script and client script can be mixed in the program.</p> <p>You can flexibly control the execution of the client script based on the client's request, making feedback to the customer more personalized.</p> <p>When mixing, the server-side script is embedded in "<??>", in order to distinguish.</p> <p>Below is an example of a server-side script and a client script hybrid programming (CSScript.php3). In this example,</p> <p>10 records will be output, and different functions are customized for each record, so that each function can display different in the status bar of the browser.</p> <p>Content, and occurs when the mouse is recorded.</p> <p><! - csscript.php3 -></p> <p><html></p> <p><HEAD></p> <p><title> server-side script and client script hybrid program </ Title> </ head></p> <p><body></p> <p><H1> When the mouse is moved to the [Project Name] on each record, please pay attention to the change of the status strip </ h1></p> <p><Table Border = "1"></p> <p><TR> <TD> Project Name </ TD> <TD> Status should appear </ td> </ tr></p> <p><? for ($ INTIndex = 1; $ INTINDEX <= 10; $ INTINDEX ) {?></p> <p><tr></p> <p><td onmouseover = "status <? echo ($ INTINDEX)?> ()"></p> <p><? echo ($ INTINDEX)?> </ td></p> <p><TD> The mouse is now pointing to the project <? echo ($ intIndex)?> </ td></p> <p></ TR></p> <p><script language = javaScript></p> <p><! -</p> <p>Function Status <? echo ($ INTINDEX)?> ()</p> <p>{</p> <p>WINDOW.STATUS = "The mouse is now pointing to the project <? echo ($ intindex)?>";</p> <p>}</p> <p>-></p> <p></ script></p> <p><?}?></p> <p></ table></p> <p></ body></p> <p></ html></p> <p>Seven increased notes</p> <p>Adding a comment is a good habit when programming. PHP allows you to add comments in the page code, specific annotation methods and C</p> <p>Language annotation syntax is the same, as used as a double slash "//" as an comment.</p> <p>Eight use of include to implement function modularization</p> <p>You can save a common function function to a PHP file. When you use the functions in other PHP pages, you will contain functions.</p> <p>The PHP file is included in the PHP file in the call function. You can use the include function at this time. The specific syntax is:</p> <p>INCLUDE ($ filename);</p> <p>Be careful when using:</p> <p>1. Avoid self-inclusion, that is, file1 contains file1; if there is a statement in multiple files, it should be avoided.</p> <p>That is, the loop is included, such as file1 contains file2, file2 contains file3, file3 contains File1.</p> <p>2. The type of scripting language that is included must be a PHP language type or <script> </ script> scripting segment.</p> <p>The above is some entry knowledge of learning and use PHP to create dynamics, interactive sites, with these basic knowledge, you can play</p> <p>Previously, you have accumulated programming experience, you can learn and explore the dynamic, interactive, interactive, interactive, interactive, interactive, based on the Unix / Linux website system with PHP.</p> <p>Site advanced network application system.</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-457.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="457" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.077</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'l8vKRqGbynIyDL_2BlnCDfOBwMXU35_2BdsAjXhAHgX1weZry1rEzCK2XDuT_2BS2A_2BUt7UuGQI8Uj_2BMJTazr0uW54CQ_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>