Feel free to paste your own pictures with text PHP watermark _php Tips

Always add text to the picture you're pasting ? Header ("Content-type:image/jpeg"); function Makethumb ($srcFile, $text, $size =12, $R =0, $G =0, $B =0) { if (! $text) { $text = ' welcome xs.net.ru Xayle '; $size = 20; $R = 255; } $data =

Collect PHP to write large web site problem set _php tips

PHP is quickly promoted by its ease of use, but ease of use is not to say that it can be used, in fact many programmers use it easy to set up a Web application system, but how many people carefully consider their code, whether easy to maintain,

Introduction to PHP Learning several good examples of Code _php Foundation

1,php Connection Database $dbhost = ' localhost '; $dbuser = ' root '; Your MySQL username $dbpass = ' 123456 '; your MySQL password. $dbname = ' data '; The name of your MySQL library Connecting to a local database $GLOBALS ["conn"] =

A method of gzip compression in PHP HTTP mode lifting the _php technique

GZIP compression transmission can more effectively save bandwidth flow. He first compresses the text into. GZ and then transmits it to the browser, which is finally extracted by the browser for presentation to the user. Older browsers may not

Bad Wolf PHP Learning counter Instance Code _php Foundation

Then create the file below, the 1th step to the database, then write and then read. Copy Code code as follows: ? $mysql _server_name = "localhost"; $mysql _username = "root"; $mysql _password = ""; $mysql _database = "db"; Grab IP

Dynamic display signature and IP principle _php techniques in PHP

Contains a counter, a reminder statement, User IP, and their own advertising picture. Send a header to the browser and say I'm a picture Header ("Content-type:image/png"); This defines the counter and puts it in a file $Visited =array (); if

_php techniques for collecting array-related functions in PHP

From the beginning of ASP to PHP, I feel that one of the powerful PHP is the rich built-in functions, such as the previous study of PHP date and time function, read and write the relevant functions of the file are all show that PHP more professional,

Verify the coordinates in a certain coordinate region PHP code _php Tips

Previously encountered such a demand, to the company's services in the map display, and the user's daily access to the coordinates of statistics to see how many users in the range of services can be reached within the radius. The following is the

A simple way to implement PHP to package folders into Zip files _php Tips

Examples are as follows: function Addfiletozip ($path, $zip) { $handler =opendir ($path);//Open current folder specified by $path. While (($filename =readdir ($handler))!==false) { if ($filename!= "." && $filename!= "...") The {//folder

Generate static page PHP functions, PHP enthusiasts station recommended _php tips

Copy code code as follows: function createshtml () { Ob_start ("callback_cteateshtml"); } function callback_cteateshtml ($buffer) { $page = intval (@$_request["page"); $fileName = $_server[' Document_root ']. DirName

PHP string disguised as a subtraction code _php tips

A very extreme example, a kind of solution to the problem of thinking, recorded, for later use. How do I remove the suffix of the file default name? $fileName = A.txt Two ways: 1: Borrow PHP's Strrchr+trim method: STRRCHR (String1,string2) returns

Code _php tips for generating HTML paging lists in PHP

$db = mysql_connect ("127.0.0.1", "root", "*******") or Die ("cant ' t connect host"); $re = mysql_select_db ("T", $db) or Die ("can ' t Open database"); $sql = "SELECT * FROM News"; $res = mysql_query ($sql); $row = mysql_num_rows

The class _php skill of PHP in Chinese this operation

To give you a simple text manipulation of the class I wrote it before, but I never had a chance to use it. Text is not as good as database Data is stored in rows, \ n End, note that the data you entered must end with "\ n", this is a few of the most

Php+jquery+css Make Avatar Login window (imitation QQ landing) _php Example

This article introduces a simple and interesting login box feature that contains the Gravatar avatar, which is derived from gravatar.com based on the message ID. This article is very basic on the level of CSS implementation and a few lines of jquery

PHP Custom Error Usage Example _php tips

This example describes the PHP custom error usage. Share to everyone for your reference, specific as follows: The custom error is that you can completely control the error and the content of the message Setting errors is handled by the functions

PHP implementation upload picture to ZIMG server _php instance

md5

Recently our project needs a picture server to store the user avatar, we use ZIMG to process and store the picture, the following brief introduction how to use PHP upload picture to zimg, and obtain the corresponding picture return information

Discussion on the understanding and using method of PHP Interceptor (__set) and __get () _php Example

"In general, it is more logical to define the attributes of a class as private." However, read and assign operations on attributes are very frequent, therefore, in PHP5, two functions "__get ()" and "__set ()" are predefined to get and assign their

PHP Concurrent Lock Example _php instance

In the work item, will encounter some PHP concurrent access to modify a data problem, if this data does not lock, can cause the data error. Below I will analyze a financial payment lock problem. Hope to help you. 1 NO lock mechanism applied 1.1

_php instance of client type judgement based on PHP

In the website user data statistics, we often need to obtain the user browser type and the operating system type, this article mainly introduces is based on the PHP to judge the client type, has the need friend to be possible to understand. Method

PHP binary and string conversion tutorial _php instance

This article mainly introduces the PHP binary and the conversion between the strings of teaching, there is a need for friends to understand. The PHP code is as follows: '; Echo bintostr ("1110000 1101000 1110000 111001001011101010001100 111

Total Pages: 12780 1 .... 8763 8764 8765 8766 8767 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.