A simple (or incomplete) IMAP class and application

? PhpbyAlpha. z05212000classmyimap {var $ username; var $ userpwd; var $ hostname; var $ port0; var $ connection0; whether to connect var $ stateDISCONNECTED; connection status var $ greeting; var $ must_update0; var $ inStream0; Functionopen () {if

PHPMySQL-based chat room design

MySQL is a database software with excellent performance, and PHP is a powerful server-side scripting language. In my website development, I used PHP4.0MySQL3.23.38 to establish a variety of applications. Next, we will take a simple chat room design

A piece of php encryption and decryption code

? Php $ keyThisissupposedtobeasecretkey !!!; FunctionkeyED ($ txt, $ encrypt_key) {$ encrypt_keymd5 ($ encrypt_key); $ ctr0; $ tmp; for ($ i0; $ istrlen ($ txt); $ I) {if ($ ctrstrlen ($ encrypt_key) $ ctr0; $ tmp. substr ($ txt, $ I, 1) ^ substr ($

Text-based visitor check-in book

On the Internet, I saw someone using PHPMYSQL as a visitor's check-in book. at that time, I thought it was very useful, so I also wanted to create one. However, MYSQL is a little useful, so it creates a text-based visitor check-in book. Its

A perfect shopping cart class

Recently, shopping cart was needed for a project, which may be frequently used. Therefore, it is encapsulated into a class for future calls. You can simply modify this class and use it in your own program. For more information, see .? ***************

A wonderful calendar program

Bean curd is made in www.asp888.net bean curd technology Station. calendar is often used in some of the Web projects we need. such scripts are troublesome to write and are not powerful enough, tofu now provides you with a powerful calendar program.

PHP security and related

The importance of focusing on security issues is far from all that prevents users from maliciously damaging your program. The most effective but often overlooked method is to consider its possibility when writing code. It is important to pay

Use PHP to quickly generate Flash animation

RichInternetApplication is a new buzzword in Web2.0. in essence, a key component of Web2.0 is AdobeFlash. learn how to integrate Flash animation into applications and use the Ming library to dynamically generate Flash animation. In Web 2.0, Ri Rich

Php full-text search and replacement implementation code

Easy replacement and full-text indexing Exec ("/bin/grep-R' $ oldword' $ rootpath", $ results, $ errorCode ); If ($ errorCode ){ If ($ errorCode = 1 ){ Echo "Possibly no files were found? $ Oldword in them \ N "; } Echo "OS Error: $ errorCode

Phpzlib code for compressing and decompressing swf files

I have previously written how to use c # to compress and decompress swf files, decompress, compress, and read flash header files using php. php contains the zlib link Library, you can directly use its related functions. The following is an example

Use the PHP program to implement two methods to support page fallback

During the development process, the information filled in when the page is returned due to a form error is often lost. to support page jump, you can use two methods. First, use the Header method to set the message Header

Php beginners write small programs that promptly replenish skype users' phone charges

Some time ago, an activity went live and there was a problem that a small number of skype users did not charge their phone bills. today I went to the database (mysql) for a query, which shocked me. in this way, I may be overwhelmed by the

Use discuz to implement PHP large file upload application instance code

The attachment function of the forum was originally designed not for file management. due to server configuration, php, network, and other factors, uploading files through the forum is not a good solution. If you really need to improve the uploading

Use eAccelerator to encrypt PHP programs

The function of this software is to accelerate the execution speed of PHP programs by caching PHP files in the memory. Since the original author of MMCache was dug by Zend, MMCache development has been stuck. However, the Eaccelerator has been

Php shopping cart instance (Shen Jing)

It is easy to understand. The ID of the cookie-saved shopping cart and the data of the db-saved shopping cart. Code for generating the shopping cart session if (! $ Session &&! $ Scid ){ /* Session is used to differentiate each shopping cart, which

Explanation of PHP dangerous functions

During PHP compilation, php parsing support in CLI mode must not be compiled unless otherwise required. You can use-disable-cli during compilation. Once PHP in CLI mode is compiled and generated, it may be attacked. Use this program to create a WEB

Php xml file operation code (1)

If you want to create SimpleXML objects and learn how to operate xml, see. Example. xml file: The code is as follows: $ Xml = simplexml_load_file ('example. XML'); // Create a SimpleXML object Print_r ($ xml); // output XML ?> The code is as

Php unlimited cache class extension

Create Category cache based on conditions to reduce category usage The code is as follows: /** * Function: Create a category based on the condition. cache is used to reduce the category. * Creation Date: Thu May 31 15:55:11 CST 2007 * Last update:

Use a mysql memory table to replace the phpsession class

Replace the phpsession class with the mysql memory table. you can test the effect on your own. The code is as follows: /** @ Usage: use some other storage method (mysql or memcache) instead of php sessoin @ Author: lein @ Version:

Use php to obtain the code for this week, last week, this month, last month, and this quarter.

Use php to get the code for the date of this week, last week, this month, last month, and this quarter. The code is as follows: Echo date ("Ymd", strtotime ("now"), "\ n "; Echo date ("Ymd", strtotime ("-1 week Monday"), "\ n "; Echo date ("Ymd",

Total Pages: 12780 1 .... 3023 3024 3025 3026 3027 .... 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.