LZW compression algorithm

The LZW compression algorithm implemented by PHP /** * @link http://code.google.com/p/php-lzw/ * @author Jakub Vrana, http://php.vrana.cz/ * @copyright Jakub Vrana * @license

How to forge IP sources with curl in PHP

$ch = Curl_init (); curl_setopt ($ch, Curlopt_url, "http://localhost/2.php"); curl_setopt ($ch, Curlopt_httpheader, Array (' x-forwarded-for:8.8.8.8 ', ' client-ip:8.8.8.8 '));//ip curl_setopt ($ch, Curlopt_referer,

kindeditor/Initialization Parameters

Filemanagerjson Specifies the server-side program that browses remote pictures.Data type: String; Default value: BasePath + ' php/file_manager_json.php ' allowpreviewemoticons True when the mouse is placed on the expression can

PHP calculates the current page execution time example

Do something Sleep (3); Do something $running _time = time ()-$_server[' request_time ']; Echo ' page run Time: ', $running _time, ' s '; ?> Copy CodeThe execution example output is as follows: Page run time: 3

phpMyAdmin How to troubleshoot problems when importing large database files

When importing a 8M database with phpMyAdmin, you cannot import successfully, and the following error occurs:When importing a 8M database with phpMyAdmin, you cannot import successfully, and the following error occurs:workaround : When you need to

PHP encoded e-mail address functions

!--? php function encode_email ($email = ' test@jbxue.com ', $linkText = ' contact Us ', $attrs = ' class= ' emailencoder ') { //Remplazar Aroba y puntos $email = str_replace (' @ ', ' @ ',

PHP and JS implement convert file size to human readable way

function My_formatsize ($size) { $size = Doubleval ($size); $rank = 0; $rankchar = ' Bytes '; while ($size >1024) { $size = $size/1024; $rank + +; } if ($rank ==1) { $rankchar = "KB";

PHP recursively replicates entire folder

A class that replicates an entire folder with PHP recursion /* * Folder Replication class, * Zhao June 14, 2012 17:20:30 * Blog: www.zhaochun.net */ Class CopyFile { Public $fromFile; Public

PHP exports data to the Execl file format

PHP exports data to the Execl file format ? session_start (); $sql _excel= ""; if (Isset ($_session["Excel"])) { $sql _excel=$_session["Excel"]; } unset ($_session["Excel"]); $conn =mysql_connect

WordPress Let the theme Support menu navigation

1, the theme folder used in the Wp-content/themes/folder There are-----functions.php in the theme (the main function of the theme is in this), add the following code to this file: Register_nav_menus (Array (' Header-menu ' + __ ('

PHP implements a simple calendar class

echo " echo " echo " echo " echo " echo " } foreach ($weeks as $value) { } } for ($i =0; $i day_week; $i +) { } }else{ } } $i + +; php implement a simple calendar class !--? php class calendar{ pri

Bulk change the encoding of HTML files in Meta information

Sometimes HTML files are encoded in a different way than the ones specified in Meta information, and can be done with this code. This program relies on Jsoup and Commons-io packages Import Java.io.File; Import Java.io.FileWriter;

PHP Gets the current date and time in a detailed

Date_default_timezone_set ("Asia/hong_kong"); $time 1 = strtotime (Date ("y-m-d h:i:s")); The current system time $time 2 = strtotime ("2013-2-10 17:10:00"); The time of the holiday $time 3 = strtotime ("2013-1-1"); 2013 New Year's

A verification code written by PHP

Session_Start (); $image = Imagecreatetruecolor (58,22); $color _background = imagecolorallocate ($image, 255,255,255); Imagefill ($image, 0,0, $color _background); $key = Array ( ' 0′, ' 1′, ' 2′, ' 3′, ' 4′, ' 5′, ' 6′, ' 7

Encoding of all files under the PHP conversion folder is appropriate for other encoded versions of the publishing site

The encoding of all files under the PHP conversion folder is suitable for other encoded versions of the publishing site for example, you have a GBK version you want to have a UTF8 version or you only GBK source code you want to develop two times but

The. ini format is used in the program configuration file.

Search from the Internet, read the file, change the key value of the method. Package com.sdut.edu.tools; Import Java.io.BufferedReader; Import Java.io.BufferedWriter; Import Java.io.FileReader; Import Java.io.

A small function that determines whether there are strings that include Chinese

/* Can be used for user names and other places where Chinese characters are not allowed */ --Example $str = "dd* (*d"; if (ISCN ($STR)) { echo "includes strings in Chinese"; } else { echo "does not

Joke Smarty technology Configuration and application

Copy CodeSaved in the Templates directory.5. New file template configuration file: config.php Include ". /libs/smarty.class.php "; $NowPathArray =explode ("Test", str_replace ("\ \", "/", DirName (__file__)))

PHP uses 3DES encrypted code (compatible with. NET)

Class Crypt3des { Private $key = ""; Private $iv = ""; /** * Construct, pass two key and IV that have been base64_encode * * @param string $key * @param string $iv */ function __construct ($key, $iv)

PHP three common design patterns of learning notes

Class Singetonbasic { private static $instance; Other VARs. Private Function __construct () { DO construct. } Private Function __clone () {} public static function getinstance () { if (! ( Self:

Total Pages: 5208 1 .... 4805 4806 4807 4808 4809 .... 5208 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.