Use GeoIP and PHP to build a simple MySQL geographic database

MaxMind GeoIP is a very useful tool used to identify the country where your Web site visitors are located. But once you have the geographic information, what should you do? A common application of such data is the advertisement for geographic

PHP-matched voice changes make the 404 page more intelligent

Create your own 404 error message processing program to provide useful links and redirection for site content. Use metaphone matching and a simple weighted score file to generate redirection recommendations for input errors, spelling errors, and

Vulnerability scan php implementation code

#! /Usr/bin/php-q #! /Usr/bin/php-q /*** Php Vulnerability identified by KingOfSka @ http://www.contropoterecrew.org* Still very early release, just for testing and coding purpose :)** Changelog:** 12/09/06 Version 0.1: First "working" version,

Solution to the failure of configuring PHP + Apache + Optimizer in Windows

Last night, PHP 5.0.5 and Apache 2.0.54 [listening port 8088] were installed in Windows XP Professional [with IIS]. When installing the Discuz forum today, Zend-Optimizer is required to support encrypted PHP files. Download To the Win32 Installation

All phpmailer objects and attributes in Chinese

Preface:Phpmaileris an excellent sending program, but there are few Chinese data, so I manually translated phpmailer's elementindex.html, E: PHPMailer.html "> example. There are many things, so there are three posts A-C From:Http://www.xiaoxiaoyu.cn/

Single-piece mode combined with command chain mode

Beginners must have a lot of questions about the design pattern. Just this weekend, I took some time to write an article about how to create the core of the system by combining the single-piece pattern with the command chain pattern, for some people,

PHP optimization, buffering, and compression Solutions

This article proposes practical PHP optimization, buffering, and compression solutions. As a popular Web programming language, the biggest advantage of PHP is speed. PHP4 is already doing very well in this regard, and you can hardly find a script

Pear: Pager paging class Introduction

Pear's Pager paging class is a very useful php paging class, which is highly scalable and can meet the requirements of various paging situations. At least I have been working on projects large and small in a few years, basically, no additional code

How to upload and verify multiple images in PHP

Uploading a single image is not complex. This involves uploading multiple images and verifying the image format. This ensures that the uploaded images are always used to prevent uploading other files to the server. The basic implementation algorithm

Supplement to "Install PHP4 in Apache module mode in Windows 9x/NT"

Author: Tony Reeves ()Posting date: 08/19I wrote this article a few days ago!Originally, I wanted to provide some help to my friends who are new to PHP and who are using WIN9X/NT,Do their best to build a small debugging environment as soon as

10 problems that must be considered in the architecture of large websites

The large website architecture here only includes highly interactive and interactive data-type large websites. Based on the well-known reasons, we will not talk about news and some architectures that can be implemented through static HTML, for

Php decompress zip file instance code

Header (Content-type: text/html; charset = UTF-8 );Error_reporting (E_ALL );Set_time_limit (0 );$ Zip_filename = "Test.zip ";$ Zip_filename = key_exists (zip, $ _ GET) & $ _ GET [zip]? $ _ GET [zip]: $ zip_filename;$ Zip_filepath = str_replace (\,/,

Intercept the php background login password code

After obtaining webshell, it is difficult to crack the password for further penetration, such as discuz, instead of using md5 encryption directly. I used to write it for big data once. I wrote it again yesterday when the big brother pig was easy to

Brief Introduction to PHP CURL

What is CURL? PHP and CURL? (Php curl) 1. What is CURL? Curl is a File Transfer tool that uses the URL syntax to work in the command line mode. Curl is a File Transfer tool that uses the URL syntax to work in the command line mode. It supports many

Set html characters and tags in php

Htmlspecialchars (), htmlspecialchars_decode () Definition and usage The htmlspecialchars () function converts some predefined characters into HTML objects. The predefined characters are:& (And number) becomes & amp;"(Double quotation marks) into &

Php obtains the size of all disk space on the server.

  In common programming, you sometimes need to obtain disk space usage. In most cases, the disk_free_space and disk_total_space functions are used.   The following instance obtains the disk space of all servers. The instance is as follows:   /** *

Use PDO in PHP

About PDOPDO is a "database access abstraction layer" that is used to unify various databases (MySQL, MSSQL, Oracle, DB2, PostgreSQL ......) Allows you to easily switch between different databases, making porting between databases easy. PDO driver  

Php reconstruction optimization example-template method mode Application

I recently optimized the php project, recorded my experience, and worked on it directly... Php is mainly used for page display in company projects. The front-end has a view, and the service request data of the view back end. The data transmission

PHP operates Last-Modified and etag to achieve further pseudo-static and 304

After a long history of pseudo-static exploration, we found that the following methods can be used to achieve pseudo-static SEO and reduce server pressure.> Access the PHP page > Last-Modified is generated based on the Content Update Time, And etag

PHP implements Bubble sorting and bidirectional bubble sorting algorithms

Bubble Sort is a simple and stable sorting algorithm. Bubble Sorting Algorithm step: Compare adjacent elements. If the first element is larger than the second one, the two of them are exchanged. perform the same operation on each adjacent element,

Total Pages: 12780 1 .... 1813 1814 1815 1816 1817 .... 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.