Install the php-mongodb Extension Method in PECL mode, and the peclphp-mongodb

Install the php-mongodb Extension Method in PECL mode, and the peclphp-mongodb Start Installation The new Virtual Machine Ubuntu14.04 has been installed manually with apache2 and php5; none of them exist. Run a command to install the php

Function for php to obtain the first letter of Chinese characters and pinyin-PHP source code

Php gets the first letter of Chinese characters and pinyin. you can test it on your own. Php gets the first letter of Chinese characters and pinyin. you can test it on your own. Php obtains the first letter of Chinese Pinyin The code is as follows:

PHPinclude () file inclusion performance comparison-PHP source code

Performance Comparison of include single files and multi-files: require_once and include are the two most common functions for PHP programmers. through these two functions, we can use the classes and other objects defined in other class libraries.

Remove the adminbar management tool at the top of WordPress3.1 + version-PHP source code

After you remove the adminbar management tool WordPress 3.1 at the top of WordPress3.1 +, an admin bar is displayed on the top of the blog homepage, article page, and page for WP users, but not everyone needs or enjoys this stuff (at least I don't

PHPplist generator-PHP source code

0 --> $velocityCount--> --> PHP array to Apple plist XML or text format 1. [Code][PHP] code */ function plist_encode_text ($obj) { $plist = new PropertyList($obj); return $plist->text(); } function plist_encode_

Google translation API (PHPAPI)-PHP source code

Google translation API (PHPAPI) /* Google translate the PHP interface * official documents * http://blog.csdn.net/aprin/ * Note: If the translation text is UTF-8 encoded, delete the mb_convert_encoding function */class Google_API_translator {public $

Php ultra-practical template engine-PHP source code

Ultra-practical template engine --> $velocityCount--> --> Method: $ This-> assign ('style', $ style); // variable $ this-> display (); // template 'Mysql', // Database type 'DB _ host' => 'localhost', // server address 'DB _ name' => 'php ', //

Class for sending emails to multiple users-PHP source code

Emails sent to multiple users --> $velocityCount--> --> [PHP] code // Class. emailer. phpclass Emailer {private $ sender; private $ recipients; private $ subject; private $ body; function _ construct ($ sender) {$ this-> sender = $ sender; $

Image upload and cropping implemented by jcrop plug-in + php-PHP source code

Image upload and cropping implemented by jcrop plug-in + php 1. [Image]. Jpg 2. [File]Demo.rar Demo.rar 3. [Code][PHP] code Thumb ($ image, false, 1); if ($ res = false) {echo "cropping failed";} elseif (is_array ($ res) {echo ''; echo '';}

PHP-PHP source code

PHP class for obtaining visitor IP address, geographical location, and other information GetLang (); // Obtain the visitor's language: Simplified Chinese, Traditional Chinese, and English. * $ Obj-> GetBrowser (); // Obtain the visitor's browsers:

Php processing date format: seconds ago, minutes ago, hours ago, yesterday, the day before yesterday-PHP source code

The php processing date format is seconds ago, minutes ago, hours ago, yesterday, and the day before yesterday. /*** Modify the date format to different display styles according to the following rules * The number of seconds before the display is

Remote use of gravatar Avatar-PHP source code

Remote use of gravatar profile pictures Remote use of gravatar profile pictures Function get_gravatar ($ email, $ s = 80, $ d = 'mm', $ r = 'G', $ img = false, $ atts = 'luyun ') {$ url = 'http: // www.gravatar.com/avatar/'{}url. = md5

PHP Pinyin based on Chinese characters-PHP source code

Use Pinyin based on Chinese characters 0 && $num -10247) { return ""; } else { for ($i = count($dictionary) - 1; $i >= 0; $i--) { if ($dictionary[$i][1] 160){ $tmp = ord(substr($string, ++$i, 1));

Baidu interview question: parsing string four expressions-PHP source code

Baidu interview question: parses string four expressions $v) { $splittedBy_pided = explode('/', $v); if (count($splittedBy_pided) > 1) { $temp[$k] = intval($splittedBy_pided[0]) * intval($splittedBy_pided[0]);

PHP obtains the total playback time of music files-PHP source code

PHP obtains the total playback time of music files. PHP obtains the total playback time of music files. /** @ Author: Leng Liu cloud ***/ NewMedia ($ file); $ time = $ media-> duration; // "unit/second" $ h = floor ($ time/3600 ); $ m = floor ($

Do not use the mb_substr function to cut string functions-PHP source code

Skip to the string function without using the mb_substr function Function cutstr ($ string, $ length, $ dot = '... ') {global $ charset; if (strlen ($ string) '), array ('&', '"', ''), $ string); $ strcut = ''; if (strtolower ($ charset) = 'utf-8')

Add ZFDebug to ZF's project-PHP source code

Add ZFDebug to the ZF project and add ZFDebug to the ZF project. getOptions();//set ZFDebug to autoload$autoloader = Zend_Loader_Autoloader::getInstance();$autoloader -> registerNamespace('ZFDebug');//initialized Front Controller$bootstrap =

Query the string with the highest similarity-PHP source code

Returns the string with the highest similarity in the array based on the input string and array. function closest_word($input, $words) {$shortest = -1;foreach ($words as $word) { $lev = levenshtein($input, $word); if ($lev == 0) {$closest = $word;

Supported verification code classes for color palette and image files-PHP source code

Supports verification codes for color palette and image files. Supports verification codes for color palette and image files. W = 500; // Image Height $ this-> h = 600; // verification character $ this-> text =

A very convenient PHP Cache class! -PHP source code

A very convenient PHP Cache class! Php code Cache_root = dirname (_ FILE __). '/.. /cache'; // cache storage directory $ this-> file_dir = $ file_dir; $ this-> cache_time = $ cache_time; $ this-> file_two = $ file_two; $ this-> file_fix = $

Total Pages: 12780 1 .... 8033 8034 8035 8036 8037 .... 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.