Copy the Code code as follows:
if (!preg_match ("/^ (HTTP|FTP):/", $_post[' URL '))) {
$_post[' url '] = ' http://'. $_post[' url '];
}
The Code first checks the string for "http" or "ftp" and the colon ":" with a regular expression, and if not,
Write Process
Copy CodeThe code is as follows:
Get the path of the configuration file
$fname = jpath_configuration. DS. ' configuration.php ';
Clear Cache
$cache = Jfactory::getcache ();
$cache->clean ();
Update the credentials with the new
eaccelerator.shm_size= "
The amount of shared memory that Eaccelerator can use (in megabytes). "0" refers to the default value of the operating system. The default value is "0". can be adjusted according to the actual situation of the server, 16,32,
Is the mind map for this series of functions--and I'm also the first to use a mind mapping tool. The big picture is here. The Stream_socket_* series is a new addition to the PHP 5 processing socket connection functions, simple and convenient, next
Copy CodeThe code is as follows:
/**
* Converts a string containing full-width numeric characters, letters, spaces, or '%+-() ' characters to corresponding half-width characters
* @access Public
* @param string $str the string to be converted
*
We're going to use the membership table structure
Copy CodeThe code is as follows:
CREATE table if not EXISTS ' net_111cnnet ' (
' id ' int (one) not NULL auto_increment,
' username ' varchar (+) default NULL,
' Add_time ' int (one) default NULL,
'
The contents of the sql.php file are as follows:
Copy the Code code as follows:
System ("Mysql-uroot-pmypassword Database print "SQL OK";
?>
Where root represents the database user name, MyPassword represents the root password, database
Copy CodeThe code is as follows:
404
">
">
The site with the new domain access
The page you are currently visiting is http://www.jb51.cn
The system redirects you to the corresponding page of the new station
Copy CodeThe code is as follows:
/* Get Picture News list */
function Getpicnews ($number =5) {
Require_once ' include/content_class.php ';
$Content =new Content ();
$sql = ' Select ContentID as Id,title,pic,typeid from ' cms_content ' where pic<> ',
Copy CodeThe code is as follows:
/**************
* @length-length of random string (must be a multiple of 2)
**************/
function readable_random_string ($length = 6) {
$conso =array ("B", "C", "D", "F", "G", "H", "J", "K", "L",
"M", "N", "P",
Usage
Disk_free_space ($path);
Note: This function does not work on remote files, and the files being inspected must be accessed through the server's file system.
This function function
This function returns the number of bytes available based
In TP, we can use the following two ways to create a data table mapping object (I used temporarily)
First type: $Test = D (' Test ')
Second type: $Test = new Model (' Test ')
Although both of these can be select,insert,delete,udpate operations on
We generally use $_server[' remote_addr ' to get the user's IP,
However, if the reverse proxy is used, the HTTP header remote_addr is not the user's address, but the address of the previous agent.
After my research there are two ways to get the
The final effect is as follows:
step.inc.php installation Step Effect class:Copy the Code code as follows:/*** Step.inc.php Installation Step Effect class ** Extract the main code from the data sheet installation effect of the Comsenz product 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service