Here are three ways to get the name of the file prefix a friend you need to refer to.
Method One:function Extend_1 ($file _name){$retval = "";$pt =strrpos ($file _name, ".");if ($pt) $retval =substr ($file _name, $pt +1, strlen ($file _name)-$pt)
Database Tutorials
----Table structure for table ' category '--CREATE TABLE IF not EXISTS ' category ' (' id ' int (one) not NULL auto_increment,' Catpath ' varchar (255) DEFAULT NULL,' Name ' varchar (255) DEFAULT NULL,PRIMARY KEY (' id '))
1: If you open the page has garbled, don't worry, do not do any editing first. Remember.2: Then click the menu to Modify-"page Properties-" title/code3: In the Code select Simplified Chinese (gb2321)4: Click Reload-"OK"
Create a new Notepad (not a
PHP programs are buffered, regardless of the circumstances in which PHP executes (CGI, Web servers, etc.). This function sends all the output of the program so far to the user's browser.The flush () function does not affect the caching mode of the
One: Introduction
On the speed, static page than dynamic page for example PHP much faster, this is no doubt, but because the static page flexibility is poor, if not with the help of the database or other equipment to save the relevant information,
15: What is UBB code UBB code is a variant of HTML, is Ultimate Bulletin Board (a foreign BBS program, there are many places in the domestic use of this program) a special tag.Even if you prohibit the use of HTML, you can use Ubbcode? Maybe you'd
Nationally, the criterion is whether $request_uri contains HTMLif (!strpos ($_server["Request_uri"], ". html")){$page = "http://qq.ip138.com/weather/";$html = file_get_contents ($page, ' R ');$pattern = "/ National main cities, counties and the next
Generate thumbnails $c = Array (' dir ' => './images ', ' newdir ' => './thumb ', ' W ' => ', ' h ' => ' 200 ');Process only files that contain small in the file name, and if all files are processed, set to '. '$only = '. ';
Set this row to 0 if
Many of my friends asked me how to use a php program to connect to a common class of SQL Server database. In fact, this is not very difficult. The key point is to be careful, patient, and understanding with passion.Class DB {Var $ Host = "192.168.0.1
ExposurePHPFive common problems in applicationsDatabaseProblems-including database pattern design, database access and use of database business logic code-and their solutions.If there is only one way to use the database, it is correct ......You can
The code is as follows:Copy code $ A = 'CC ';$ B = $ a; // $ a and $ B point to the same memory address$ A = 'DD ';Echo $ B;/*The address pointing (similar to pointer) function in php is not implemented by the user,It is implemented by the Zend
Php Tutorial array sorting rsort arsort asort$ Full_name = array ();$ Full_name ["Roger"] = "Waters ";$ Full_name ["Richard"] = "Wright ";$ Full_name ["Nick"] = "Mason ";You may be the value in the array to be sorted. For example, assume that the
Number index array;Non-numeric index array;Array operator;Two-dimensional array and multi-dimensional array;Array sorting;Multi-dimensional array sorting;Sorts the array;Execute other array operations;Number index arrayLike the array in C #, you can
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