PHP class for generating static pages. Copy the code as follows :? Phpclasshtml {var $ dir; dirforthehtmls (without) var $ rootdir; rootofhtmlfiles (without): htmlvar $ name; html file storage path var $ dirname; specified file
The code is as
The code is as follows:Copy code Class listdir {Var $ depth;Var $ dirname;Var $ list;Var $ tostring;Function listdir ($ dir ){$ This-> dirname = $ dir;$ This-> depth = 0;$ This-> tostring = "";}// Save the result to a multi-dimensional
Linux cloud automated O & M course 4: linux cloud AutomationAutomated O & M for Linux
I. vim
1. Move the vim cursor
1) In command mode
: Number ### move to the specified row
G ### last line of the file
Gg ### first line of the file
2) In insert
Command function:
Find binary Files locationFind the location of the software's configuration fileFind source code file locationView the man manual location
Grammar
The basic syntax is as follows:
Whereis commandORWhereis ProgramORWhereis
Through the shell example to learn the syntax of the loop structure: the so-called useful is to learn to use it all the time. It is useless if you forget it. On the other hand, it is very likely that the leaders have great expectations for you. So
A. Question and answer question1. What is the function that returns the part of the file name in the path?2. What is the function of changing the file mode?3. What is the function of copying files?4. What is the function that returns the directory
Directory operation function 1) closedir close directoryCorrelation function: OpendirTable header files: #include #include define function: int closedir (DIR *dir);Function Description: Closedir () closes the directory stream that the parameter dir
There are a lot of lnmp/lamp on the web. The installation of a script, the compilation of installation parameters to modify the script, this script integrates lamp and LNMP, in any network of Red Hat or CentOS server automatically configured LNMP or
Cross-compiling a software is tripped by a parameter of the configure, wasting time. Because the parameter configuration of install and configure is not carefully reviewed. Configure–help is still very useful.
' Configure ' configures this package
Compiled on detail options, in addition to the above installation brief, you can add additional options at compile time.
Apache Module
Syntax:--with-apache=dir
Description: Use this option to allow PHP to use the Apache module mode, DIR string can
#!/bin/bash#by 2015-7-25--LIJQ#directiof for use: source packages and scripts in the same directory and in the root directory filedir=/mnt/soft/Script_dir=/root/autolampIf [$UID-ne 0]; ThenEcho-e "\033[32monly for root to install this
Overview : CentOS 5 and 6 under the service start, the use of the command is the service name start mode start, in fact, the service command is also called the script under/etc/init.d/, see the specific steps belowExperimental steps:first prepare
For PHP to traverse the directory and file list to write a simple class, and attach the use of examples, we refer to the use of it
Copy the Code code as follows:
Define (' DS ', directory_separator);
Class getdirfile{
Returns an arrayPrivate
L: linux (system installation skipped. This article does not cover it)
M: Mysql (skipped in this article)
N: nginx
P: PHP
First install nginx
1. Download source code: Download To The http://wiki.nginx.org/Install, put it
Mainly JavaCodeQuality management is divided into three aspects:
Code style
Static code analysis
Unit Test
This is exactly three progressive layers: how the code looks-> how the code is analyzed-> how the code runs, java provides
/*** @author Xiaoxiao 2011-1-12* @link http://xiaoyaoxia.cnblogs.com/* @license* Number of rows and total files in the statistics directory · Remove annotations*/
$obj = new Caculatefiles ();If set to False, this does not display information for
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.