PHP Lunar-lunar-convert class code _php instance

Copy Code code as follows: /** * Public lunar conversion (1912-2012) * * Usage: *//Gregorian calendar 1983-10-5 turn lunar calendar * $lunar = new lunar (); * $date = $lunar->getlar (' 1983-10-5 ', 0); * Echo Date ("y-m-d", $date); */

PHP form Add token Prevent duplicate Submit method analysis _php Tips

This example describes the way PHP forms are added to token prevent duplicate submissions. Share to everyone for your reference, specific as follows: A brief talk on token Token, is a token, the biggest feature is randomness, unpredictable.

Analysis and application of PHP using HTTP caching protocol in Apache Environment _php Foundation

For static pages there are etag. First, first look at the case: Apache static page The static page that Apache sends to the client typically contains last-modified and etag, the values of which are from the modified time of the static file and the

How to improve PHP speed 1th/3 page _php Tips

Simple Data caching technology Recently done a while to optimize the performance of the program, there is a more interesting idea, would like to propose to communicate with you. Cache is a typical application mode of "Space Change Time" strategy,

Win2003 install Wincache steps to share accelerated PHP run _win server

Note: In general, our win2003 are all ISAPI mode, this time the installation of Zend can be. If it is fastcgi, it can pass through Wincache. More commonly used in win2008 systems.Few webmasters like to run PHP with Windows, whether it's IIS 6 or IIS

PHP Design Chat room step through _php Foundation

Chat room can be used in a completely free way, you can enter it, say, no password, do not save your chat status, the advantage is: free, very suitable for tourists! Another way is to register a chat room, every person entering the chat room to

_php Examples of 4 classic books for beginners to read in PHP

If you have studied other languages, you will find that PHP is actually quite simple. Some people say that PHP learning is suitable for reading manuals, but there are still a lot of classic books to help you get started and improve. Here are 4 books

GD Library Picture Download class implementation download Web page All pictures of PHP code _php instance

The PHP code is as follows: Copy Code code as follows: Header ("content-type:text/html; Charset=utf-8 "); if (!empty ($_post[' submit ')) { $url = $_post[' url ']; Action to get a picture of a relative path $url _fields = Parse_url (

Deploy Nginx, PHP (including fastcgi), virtual host configuration in CentOS 6.1 environment _linux

Deployment time: 2012-07-24 OS Environment: CentOS 6.1 nginx:nginx-1.2.2 php:php5.3.14 0, install the dependent package Copy Code code as follows: Yum install openssl-devel pcre-devel zlib-devel libjpeg-devel libpng-devel

Docker how to decorate the PHP development environment _php Skills

Environmental deployment has been a major problem, both in the development and production environments, but Docker provides a consistent environment for packaging the development environment and production environment in lightweight fashion. Greatly

PHP implementation of the sub-string position Exchange swap method [Original]_php Tips

The example of this article is about how to swap the position of the substring in PHP. Share to everyone for your reference, specific as follows: The results of the operation are: This is a example,you, Jack tell Tom something Add:

The method that PHP realizes to the website screenshot under Linux environment _php skill

This article describes the Linux environment in the implementation of PHP to the Web site screenshot method. Share to everyone for your reference, specific as follows: The first step: Download wkhtmltopdf Copy Code code as follows:

Using the Ltrace tool to track the methods of PHP library function calls _php tips

The example in this article describes the method used to track PHP library function calls using the Ltrace tool. Share to everyone for your reference, specific as follows: Maybe everyone is already familiar with using Strace to track system calls,

SQL injection Vulnerability in PHP example SQL injection Vulnerability Repair _php instance

When developing a Web site, you need to filter the characters passed from the page for security reasons. In general, users can invoke the contents of the database through the following interfaces: URL address bar, login interface, message board,

PHP Judge IP Blacklist program code instance _php instance

The school's news system requires some news only to open the campus IP browsing, so rewrite a code to implement this function, the result is, as long as the IP access allowed to be included in the Ip.txt this file, while supporting the C-class IP,

WordPress Write custom storage fields in the relevant PHP function parsing _php tips

WordPress custom field is the article meta information (meta information), the use of this function, you can expand the function of the article is to learn the WordPress plug-in development and in-depth development of the theme of the necessary

PHP calculates a few just, several hours ago, a few days ago several functions, class sharing _php instances

One, function realizationExample 1: Copy Code code as follows: function Time_tran ($the _time) { $now _time = Date ("Y-m-d h:i:s", Time () +8*60*60); $now _time = strtotime ($now _time); $show _time = strtotime ($the _time); $dur =

WordPress Visitor Login To implement email reminders of PHP script instance sharing _php instance

Login Email Reminder Implementation methodpremise is the space has the mail function, the test has no mail function method: The Login interface clicks "Forgets the password", has the mail to send to your mailbox to have the mail function. First,

PHP getimagesize Upload image length and width detection code _php tips

getimagesize-Get image size Description Array getimagesize (string $filename [, Array & $imageinfo]) The getimagesize () function will determine any GIF,JPG,PNG,SWF,SWC,PSD,TIFF,BMP,IFF,JP2,JPX,JB2,JPC,XBM or WBMP The size of the image file and

PHP Verification Mailbox and IP address the simplest way to summarize _php tips

Verification in the development of mailboxes, URLs, numbers are some of our common examples, the following sorting out the verification of mailboxes, URLs, digital programs, we are interested to refer to. The example code is as follows:

Total Pages: 12780 1 .... 505 506 507 508 509 .... 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.