The article at the beginning of the list of so many contact, it will inevitably make you feel a bit of ad's meaning, but can not be questioned, there is really so little performance to ^_^, although sometimes too meticulous will be said mother, but
Discuz 5.0 is not using their own IP data, but the use of pure IP data format, access to the pure IP database a little bit of trouble, its storage format is very special and interesting, specific format analysis refer to the following two links,
Most web scanners, including uploads, management background scanners, determine the existence of a page by judging the 200 return of HTTP, and the scan period will begin to scan the vulnerability on the basis of the existence of the page. Since
A recent project requires SMTP to send mail, the previous library class does not exist, and does not like to install pear or use the Pear net/smtp class, feeling too complex. Directly from the Discuz to extract the core slightly modified under.
From
For static pages there is an etag.
First of all , look at this: Apache static page
The static page that Apache sends to the client typically contains the last-modified and ETag, the values of which are from the modified time of the static file and
PHP gets the current script URL (only path)
Copy CodeThe code is as follows:
function Getcururl ()
{
if (!empty ($_server["Request_uri"))
{
$scrtName = $_server["Request_uri"];
$nowurl = $scrtName;
}
Else
{
$scrtName = $_server["Php_self"];
if
First, the design of the shopping Cart database:
1. Id
2. goods_id Product ID
3. session_id Shopping Cart ID
4. GOODS_SN Product Code
5. Goods_name Product Name
6. Shop_price Commodity Mall Price
7. Goods_price Commodity Real Price (the difference
usually with Number_format (); To format a number, by default the thousand characters are separated by commas, such as:
Copy CodeThe code is as follows:
Echo Number_format ("10000.01231", 2);
Take 2 digits after the decimal point, the result of the
Copy CodeThe code is as follows:
/*
PHP generates a text PNG image, which can be called using the following methods:
Http://www.yourdomian.com/text_png.php3?msg=helloworld+class&rot=15&size=48&font=fonts/ARIAL. TTF
*/
Header
Appserv,xampp,wamp are integrated apache,mysql,php package, easy to use, there is no need to go to a configuration Php,apache and MySQL.
Download the appropriate installation package to install, but for the PHP project, Wamp will display the notice
The basic syntax for the PHP function split () is: Array split (String $pattern, string $string [, int $limit]). We give you two examples to illustrate how this function is used.
For beginners, mastering the usage of common functions in PHP is the
The Drawpieimg () function consists of 8 parameters, $title as the title of the pie chart, $dataArr as an array of data to be displayed, an array of labels for the corresponding data, and $COLORARR as an array of drawing colors for the corresponding
Assignment and replication of an object: assignment: Overloading with the "=" operator
User A (ten), B;
b = A;
Replication: Calling the copy constructor
User b;
User A (b);
Or
User A = b;//equivalent to User A (b);
In contrast to assignment, the
generate two-dimensional code online via the API generated by Google online.
The code is as follows:
Copy CodeThe code is as follows:
Two-dimensional code generation-www.jbxue.com
$content =$_get[' content ';
$width
First, how to disable Fsockopen ()The following are two common ways to disable Fsockopen.
1, modify php.ini, will disable_functions = after adding fsockopen
2. Modify PHP.ini, change allow_url_fopen = on to Allow_url_fopen = Off
second, how to
In a project encountered a strange problem, it cost me a lot of time is not resolved, the final debugging found is the question of judgment-about 0 and "(empty single quotation marks, for good see I added a space), I found 0==" incredibly set up,
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.