PHP instance resolution: watermarks uploaded images

The program that uses PHP to add a watermark to the uploaded image is to create a graph by determining the file type, copy it to the original image, fill it with and create a rectangle for writing it to imagestring () or determine the watermark type

Basic PHP learning basics for beginners

Guidance: 1. PHP script code mark the PHP script is the content of a pair of special tags in the file, such as ASP is "", PHP... 1. the PHP script code marks the PHP script as the content of a pair of special tags in the file. for example, ASP is "",

PHP single-point login implementation solution

This article mainly introduces the use of webservice, session, cookie technology to analyze and design a universal single sign-on system. The specific implementation language is PHP. Single Sign-On (single sign-on). The English name is SingleSignOn (

Phpxml analysis function code

My favorite scripting language not only supports XML, but also keeps increasing support for it. PHP allows me to quickly publish XML documents to the Internet, collect XML document statistics, and convert XML documents to other formats. First, I

Analysis on the principle of using client cache to optimize the website

How can you optimize your website when its concurrent access is high and it cannot withstand the pressure? Many people first want to optimize the program from the server cache aspect. many different server cache methods have their own

Function for deleting HTML tags in strings in php

A php function that can delete html tags in a string. when a visitor leaves a message or posts a message, we do not want the visitor to use html tags in the message or post, so when a visitor submits a message or post, I have to delete the html tag.

Php learning array courseware

An array is a variable that can store a group or a series of values. * Arrays are a basic data type. Array functions can also implement data structures such as stacks and queues. Subscript: the identifier of an array, that is, the code of a string

Php curl implements get and post code

Similar to host service providers such as dreamhost, it shows the use of fopen. Php curl supports FTP, FTPS, HTTPHTPPSSCPSFTPTFTPTELNETDICTFILE, and LDAP. Curl supports SSL certificates, http post, http put, and FTP uploads, kerberos, HTT-based

Security Knowledge for newly installed MySQL databases

After you install a new MySQL server, you need to specify a directory for the root user of MySQL (no password by default). Otherwise, if you forget this, you put your MySQL in a very insecure state (at least for a period of time ). On Unix (Linux),

PHP removes repeated elements in the array and sorts the elements by key names

Remove repeated functions in the array implemented by php 1. Role of this function: Remove repeated elements in the array and sort by key names Function assoc_unique ($ arr, $ key ){ $ Tmp_arr = array (); Foreach ($ arr as $ k =>$ v ){ If

Conversion of some common regular expression characters in PHP

For some front-end regular expressions, you can modify them to be php regular expressions. Match double-byte characters (including Chinese characters): [^ \ x00-\ xff] Application: calculate the length of a string (two-byte length meter 2, ASCII

PhpIIS log analysis search engine crawler record program

Due to the recent busy schedule, the code is not properly written, and the interface is not beautified. please use it first. new features will be released to you as soon as they are added! Note: Modify the absolute path of iis logs in the iis. php

Code for reading RSSfeed with PHP

To read rssfeed from different sources, I wrote a php program to read rssfeed cyclically. in order to facilitate reading and understanding the program implementation process, I added comments and learned from them. In addition, the rss reading

Application of php binary in IP address query

Some time ago, data analysis requires a large number of IP address queries (nearly ten thousand queries per second). First, consider using the database. The database stores hundreds of thousands of IP records. the record set is as follows: + ------

Php automatically jumps to Chinese and English pages

When the visitor's browser language is Chinese, users outside the Chinese version will jump to the PHP code on the English page if the default browser is not Chinese: $ Lan = substr (? $ HTTP_ACCEPT_LANGUAGE, 0, 5 ); If ($ lan = "zh-cn ") Print (" "

Code for reading text files in php with high efficiency [original]

We mainly use the following two methods to differentiate fread from fgets. Note that fread: calculates the length in bytes and reads data according to the specified length and number of times, stops reading at the end or the specified length. Fgets:

DiscuzPassport pass integrated notes

The last time I integrated discuz's passport, I thought it was simple. I did not remember the location of today's mobile bbs. The previous integration was unavailable. how can I log on to the forum without using passport ?! It's too simple, but it

PDPDocument code Annotation specification

PHPDocumentor is a tool written in PHP. for php programs with standardized annotations, it can quickly generate API documents with functions such as mutual reference and indexing. The old version is phpdoc. 1. what is phpbench entor? PHPDocumentor

PHPGoogle's translateAPI code

Here I will continue to use Google's translate tool to translate a text of. NETtranslateAPI. the previous article is implemented in c #. I will use PHP to implement it here. Create an ANSI php file and create a class: The code is as

Common functions of PHP collection programs

Php friends who like his collection function will not refer to the following functions. They are commonly used functions in the php collection program to collect the current script URL. Function get_php_url (){ If (! Empty ($ _ SERVER ["REQUEST_URI"]

Total Pages: 12780 1 .... 6285 6286 6287 6288 6289 .... 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.