traverse all files and folders under a folder
function List_dir ($dirpath) {
if ($dirpath [strlen ($dirpath) -1]!= "\ \") {$dirpath. = "\ \";}
static $result _array=array ();
if (Is_dir ($dirpath)) {
What is the role of bitwise-and-bitwise, or in the development process of PHP?
/**
* 1. Permission application
* What permissions you have, add up the values corresponding to these permissions
* For example:
Public Function fooaction ()
{
Forward to another action on the current controller and module:
$this->_forward (' bar ', NULL, NULL, array (' baz ' = ' bogus '));
}
Public Function baraction ()
{
Restricted programs can only be browsed inside, the following is the PHP limit page can only be accessed from the browser code.In order to prevent their hard-working webapp was copy, want to restrict the program only in the inside, although the
Update Time: 20120102
/**
* [Webodmin] (C) 2010-2099 Blank Inc.
* This was not a freeware, use was subject to license terms
*
**/
function Subistr ($string, $length, $dot = ' ... ') {
Full PHP class, usually I will cooperate with smary use, quick use (plugins/function.rdate.php)
/*
* Data time functions.
* Module
*/
Defined (' Tsky ') | | Die (' Permission denied! ');
function
Error_reporting in the use of PHP programming frequency, presumably everyone is very clear, this article introduces the usage of error_reporting, for everyone to learn the reference. If the parameter level is not specified, the current error levels
Start at the top of the page since we start a session
Session_name (' Mysite_hit_counter ');
Session_Start ();
//
$FN = ' hits_counter.txt ';
$hits = 0;
Read current Hits
if ($hits = file_get_contents ($FN))
This is a very useful component that can be used to generate an edit form of the data, which is a very important component of the MST Library 3.1, which enables the loop nesting of the dbo form and the dbo form, is controlled in a form, and supports
Note: No matter how many headers the page has, it executes the last one, but is conditional, for example:
Header (' location:http://bbs.it-home.org ');
Header (' location:http://www.g.cn ');
Header (' location:
Class DataBase
{
var $pConnect =false;//whether to use long connections
var $mHost;//Database Host
var $mDatabase;
var $db; Database
var $mUser;//Database user name
var $mPwd;//database user password
var
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