Content.txt
This file contains content, if you are combined with the MySQL database, as long as you replace this sentence with the content of your database.
index.php file
Include (' page.class.php ');A custom long article string that can
Include,require is often used in PHP to refer to other files, using relative paths or absolute paths, if the Set_include_path function or Ini_set (' include_path ', XXX) is set Include_ Path configuration option, the Require file can also be
When using the Sina payment interface, need to create an interface, just by the summer blog a new Sina interface, the integration of the FANGWI Peer-to-peer Network Loan system, the following interface or relatively simple, just a binding
PHP functions to filter HTML:
Strip_tags (String)
This will allow you to filter out all the HTML tags.
If you want to filter out all HTML tags except ", you can write this:
Strip_tags (String, "");
To filter all HTML tags except xxx, you can
Directory_separator is a command that displays the system separator, directory_separator is the internal constant of PHP and can be used directly without any definition or inclusion.
As we all know, under Windows the path separator is (of course/on
Part of the form:
The code is as follows
Copy Code
"id=" car "> "/>
PHP Processing Section:
The code is as follows
Copy Code
Require ' config.inc.php '; Require ' checklogin.php
1.php Interface class: InterfaceIn fact, their role is very simple, when a lot of people together to develop a project, may go to call someone else to write some of the class, then you will ask, how do I know how a certain function of his
Example 1
Recently in writing ANE-commerce website, in the shopping cart when found in PHP does not have a map of this data structure, we can not simply through a hashmap to implement the shopping cart, so I think of the array, through the format
1. Why do high concurrent and high load research
2, high concurrency and high load constraint conditions
3, the solution--Hardware Chapter
4, the Solution-Deployment Chapter
5, the solution--environmental article
6, the solution of the
Date () function
This function is more familiar.
The code is as follows
Copy Code
Echo ("Result with date (): ");Echo (Date ("L"). "");Echo (Date ("L DS of F Y h:i:s A"). "");Echo ("Oct 3,1975 is on a". Date ("L",
This tutorial is helpful for beginners, we talked about database tutorials and used the MySQL tutorial _query,mysql_num_rows,mysql_fetch_row three functions to read and output records.
selecting data$user = "root";$pass = "";$db =
First Kind
The code is as follows
Copy Code
/*** Pdf2png* @param $pdf PDF files to be processed* @param $path picture path to save* @param $page the page to be exported-1 is all 0 is the first page 1 is the second page*
Example 1
PHP Code:
The code is as follows
Copy Code
@exec ("Arp-a", $array); Executes the ARP-A command, and the result is placed in the array $arrayecho "";Print_r ($array); Print fetched arrayforeach ($array as $value)
PHP code
The code is as follows
Copy Code
Class Search extends scurd{/* constructor, initializing the connection, using the same method as the parent class * *function __construct ($HOST, $DB _user, $PASSWD, $DB) {Parent:
// Elements in xmlClass XMLTag{Var $ parent; // parent nodeVar $ child; // subnodeVar $ attribute; // attributes of the current nodeVar $ data; // Local node dataVar $ TagName; // The name of the current node.Var $ depth; // The depth of the current
Command line mode for imagemagic to remove image backgrounds: The code is as follows:Copy code Convert-size 140x80 xc: none-fill gray-gravity northwest-draw "text 'copyright'"-gravity southeast-draw "text 'copyright'" miff: -|
PHP date () parameter descriptionThe w parameter is mainly used here. The explanation of this parameter is:W indicates the day of the week, and the number indicates 0 (Sunday) to 6 (Saturday)With this, it is very easy. The author directly posts the
English only The code is as follows:Copy code If (preg_match ("/^ [a-z] * $/I", "fdsFDfd ")){ Echo "all letters"; } Pure Chinese characters The code is as follows:Copy code For example:Var str = "php programming ";If (/^ [u4e00-u9fa5] + $/.
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