Support text watermark, image watermark
Support for watermark location random or fixed (ix Gongge)
Watermark Transparency Settings (both image watermark and text watermark support)
font, color, and size settings for text watermarks
Background
Every e-commerce site now has one or more types of offers/discounts/coupons system to share with you how to generate a unique promo/discount code in PHP. The main is to implement a promo code system, can be used to track users from certain sources,
Ideas:
1) to generate a long URL MD5 32-bit signature string, divided into 4 segments, 8 bytes per segment;
2) for this four-segment cycle processing, take 8 bytes, he is regarded as 16 binary string and 0X3FFFFFFF (30 bit 1) and operation, that is,
The encoding of the GBK simplified character set is expressed in 1 bytes and 2 bytes at a time. When the high is 0x00~0x7f, it is a byte, and the high position is more than 0x80 with 2 bytes "
Note: The brackets are all 2 binary
When you find
After you set the read-only property for the index.php file, the Trojan does not have permission to append ads to the end of the file.
Below we look at the specific code, set index.php Read only:
Copy the Code code as follows:
function
Treetable can also display hierarchical architecture in an infinite hierarchy by combining row and column merging of cells.
1. Build an array of id/pid/name and later dynamic data that can be generated from the database. Tree algorithm, click
Copy
The main points of using PHP to achieve the Almanac feature:
• How many days are there in total for the month currently being processed $days
• Gets the number of days of the month that is currently being processed $dayofweek
$days: You know how
Below, take a simple chat room design as an example, introduce the application of Php+mysql in Web development
1. Overall design
1.1 Conception and Planning:
The basic principle of the chat room is to store the spoken data transmitted by each user
Copy CodeThe code is as follows:
For example, the stored procedure to invoke is GXTJ (A, B)
$db =new mysqli ("localhost", "ssss", "AAAAA", "bbbb");
Mysqli_query ($db, "SET NAMES UTF8");
$result = $db->query ("Call GXTJ ($year, $JD)"); GXTJ is the
After the construction of the Zendframework project environment, the following Zend Framework configuration operation database was looked at, the PHP tutorial is as follows:
Create a Config.ini file under the Application/configs file
The
In the development process may encounter unable to obtain the MSSQL stored procedures output parameters, many friends do not know what to do, this article will be detailed introduction of PHP to get MSSQL of the stored procedure output parameters of
Click here to download the source file
Copy CodeThe code is as follows:
function Pinyin ($_string, $_code= ' gb2312 ')
{
$_datakey = "A|ai|an|ang|ao|ba|bai|ban|bang|bao|bei|ben|beng|bi|bian|biao|bie|bin|bing|bo|bu|ca|cai|can|cang|cao |ce|ceng|cha ".
The registration procedure unifies the single entrance, the core judgment is the Checkip place, only needs to make a game_id judgment in the non-real-name authentication template procedure. Because too sure, anxious to get off the psychology,
Copy CodeThe code is as follows:
Select From_unixtime (pubtime, '%y-%m ') as Pubtime, COUNT (*) as CNT from articles Group by from_unixtime (Pubtime, '%y-%m ')
PHP Articles by date (day) SQL archive
Copy CodeThe code is as follows:
Select
In HTTP transmission text, it is required that the header and content order must be: the header is behind the previous content, and the format of the header must meet the "keyword:value\n" format.
1, in the header output before the output, it will
Fixhtmltag
Version 0.2
This version resolves the last remaining problem, namely close closure and nested closure problems. You can see the comments of the code in detail.
Copy CodeThe code is as follows:
/**
* Fixhtmltag
*
* HTML tag repair
Instance code:
Copy CodeThe code is as follows:
/**
* **********************************************************
* Read Me
* Article pagination
*
* Paging method, can be paged by the number of words, according to line breaks, according to special
Recently encountered a project, the customer needs a function, a product sales order need to know the user from which channel, think customer service software (53 customer service) and webmaster statistics can only meet the working time, and night
Flock
(PHP 4, PHP 5)
flock-Lightweight consultation document lock-up
Description
BOOL Flock (int $handle, int $operation [, int & $wouldblock])
PHP supports a lightweight method of locking all files in a consultative manner (that is, all access
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