php code

Want to know php code? we have a huge selection of php code information on alibabacloud.com

An example of a picture upload

Upload PHP Code:-------------------------------------------------------------------------------- ? $FILENAME = "Image_name"; Build the width of the picture $RESIZEWIDTH = 400; Height of the build picture $RESIZEHEIGHT = 400; function

High Brightness display PHP source code!

Display | Source code PHP Code:-------------------------------------------------------------------------------- function Heighphpcode ($Heightstring) { do{ $z = 0; if (preg_match) ('/ (. *?) /s ', $Heightstring, $reg)) { $z = 1; $code = '; Ob_start

Is this string conversion Class A big use?

convert | string PHP code:-------------------------------------------------------------------------------- ? /** * String Conversion class * Author: Michael Young * Date: 2002-4-21 * E-mail:windring@yeah.net * All rights reserved */ Class

Introducing the Smarty Template

Template PHP Code:-------------------------------------------------------------------------------- The following introduction is based on the 2.5 version, also do not know that there is no bug, OS is win2000,php should After 4.1, it's OK. ,

File Upload-Terminator Ⅰ

Upload | Terminator PHP code:-------------------------------------------------------------------------------- ? /* ------------------------------------------------------------------------------------ Class Name: Lwguploadandquery Description: SQL

Using JS to call the background PHP data processing source code

js| Background | Data The method is already in the past, where the key is also from the altar, I just digested it and then wrote it back more fully. The announcement is just a hope that more beginners can learn something from it. If you have any

Today, we're going to discuss a very important issue--password security

Security | Problem PHP code:-------------------------------------------------------------------------------- $sRand = ' abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 '; $length = strlen ($sRand); if (!) ( $dir = @opendir ("/dic")))

How to correctly count Chinese words?

Statistics | Chinese PHP code:-------------------------------------------------------------------------------- function Ccstrlen ($STR) #计算中英文混合字符串的长度 { $ccLen = 0; $ascLen =strlen ($STR); $ind = 0; $hasCC =ereg ("[Xa1-xfe]", $STR); #判断是否有汉字 $HASASC

Invoking Oracle stored procedures in PHP

oracle| stored procedures from the beginning of learning PHP to Joy International village, for several months, learned a lot of things, I wrote an example hope a bit useful. The PHP program accesses the database and can use the stored procedure

How to achieve the following functions

PHP Code:-------------------------------------------------------------------------------- Script Description: Add the following code to the area Please select First item Second item Third item Fourth item Fifth item Sixth item

A logged in class

? /* * Name: cnkknd PHP Login Class * Description: PHP for login class, based on MySQL * Author: Daniel king,cnkknd@163.com * Date: 2003/8/25 */ Class Login { var $username; User name var $userpass; Password var $userid; User ID var $userlevel;

Application of User state management function in PHP

The User state management (session support) is one of PHP's 4.0 new features that have been expected for a long time. In the PHP 3.0 era, programmers had to implement state management functions with other people's written libraries, or simply give

Find PHP's MSSQL page-flipping program!

Program | page Flip PHP code:-------------------------------------------------------------------------------- php Paging ? To make it easier to understand and apply to work faster, we take MS SQL Server's Northwind database Customers table for

Is this how we take the commodity classification

PHP Code:-------------------------------------------------------------------------------- Take commodity classification //************************************************************************** $result = $db->query ("SELECT * FROM Categories

Using the original session

A PHP 4.0 feature that has long been expected is session support. In contrast, PHP 3.0 users have to use a third-party library or simply do not implement this feature. The lack of session support is one of the most criticized places in PHP. However,

Cake Notes--view Layer

A view is a page template, usually named after the action. For example, Postscontroller::add's view is located in/APP/VIEWS/POSTS/ADD.CTP. Cake view is a very simple PHP file, so you can use any PHP code in it.       Layouts layout   A layout

PHP limits File Download speed function

Sometimes you may want to slow down the download file for some reason, such as you would like to implement the file download progress bar function. The biggest advantage of limiting download speed is that it saves bandwidth and avoids the network

Summary of methods for generating random passwords in PHP

The use of PHP to develop applications, especially web programs, often need to generate random passwords, such as user registration to generate random passwords, user reset password also need to generate a random password. Random password is a

Do a information publishing function

PHP Code:-------------------------------------------------------------------------------- CREATE TABLE ' jb_administrators ' ( ' Administratorsid ' int (a) unsigned not NULL auto_increment, ' UserID ' mediumint (6) unsigned not NULL default ' 0 ', '

How to add/Decrypt MCrypt?

Decrypting the PHP code:-------------------------------------------------------------------------------- function Make_seed () { List ($usec, $sec) = Explode (', microtime ()); return (float) $sec + ((float) $usec * 100000); } Srand (Make_seed ());

Total Pages: 38 1 .... 5 6 7 8 9 .... 38 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.