The PHP class used to add watermarks to images

Copy CodeThe code is as follows: /** Function: PHP image watermark (watermark supports picture or text)Parameters* $groundImage background image, that is, need to add a watermark image, temporarily only support gif,jpg,png format;* $waterPos

8-hour solution to the time difference in P5 PHP5

Method 1: Find the ";d Ate.timezone =" line in php.ini, will ";" Remove, change to "Date.timezone = PRC" (Prc:people's Republic of China), restart Apache, problem solved. Method 2: In php5 and above, to output local time (limited to China), you can

Use PHP arrays for unlimited classification, no database, no recursion

Copy CodeThe code is as follows: Class Cat{Public $data;Public Function __construct (){@include "data.php";$this->data = $class;}Public Function Createsortlevel ($fatherlevel){if (empty ($fatherlevel)){if (Is_array ($this->data)){$fast _level =

Calculate the size of your PHP program

Copy CodeThe code is as follows: /*** Calculate the programmed code, including the file number, the number of rows, the number of characters** @version 1.0* @since 1.0* @access Public* @author Ryan * @copyright Copyright (c) 2002-2004 by

xchenluzhao.com.cn Php+mysql Open Source XNA Aggregation program release download

Php+mysql (php5 +mysql 4.1) is a simple open source XNA aggregation with the effects such as: Http://xna.spvrk.com A simple aggregation program, with phpMyAdmin import cms_xna.sql, modify config.inc.php in the database address can use,

PHP 50 Object Model Deep Exploration object replication

By default, the __clone method will establish an object that has the same properties and methods as the original object. If you want to change the default content when cloning, you need to overwrite (attribute or method) in __clone. A cloned method

Presentationfontcache.exe A collection of some common functions of PHP

/* Get client IP address */ function GetIP () { if (getenv ("Http_client_ip") && strcasecmp (getenv ("Http_client_ip"), "Unknown")) { $ip = getenv ("Http_client_ip"); } else if (getenv ("Http_x_forwarded_for") && strcasecmp (getenv

Getting Started with PHP tip

1. Download an integrated environment software, that is, others put all the chaos seven or eight in a piece, made software, this is the SG-style, I think beginners with this good point; 2. Download and install them separately. Php.zend.apache; This

Google Chrome official version of the automatic generation of article abstract code [PHP version]

Implementation content: Truncates a piece of text that contains HTML code, but there is no problem that the containment tag is not closed. Description: This is the PHP version for use on the server side, if you need a client version, please read the

Big about the Big5-hkscs solution

ord

Very bitter and boring to discover that the HKSCS problem that has always been troubling PHP has been supported. Only the name is not called Hk-scs, called Big5-hkscs. The following is the solution for the HK supplemental Character set: The HTML

Stephanie Jacobsen Understanding the difference between static and const keywords in PHP5

PHP5 has added a lot of object-oriented ideas, and PHP5 object-oriented approach to the object-oriented concept of java. Here we describe the role of static and const keywords in PHP5, hoping to help friends who learn PHP5. (1) static The static

Mysqldump, Backup and Restore table MYSQL5 detailed installation Tutorials

One, MySQL installation MySQL installation under the Windows platform is familiar with the standard installation welcome program. If you do not need to change the default installation directory, click Next to complete the installation. Follow the

Put your head on my shoulder recommend a full-featured send PHP message class

php--the function of the following class is very powerful, not only can send HTML-formatted mail, you can also send attachments How to use: Copy the Code code as follows: Include "Email.class"$mail->setto ("a@a.com"); Recipient$mail-SETCC ("b@b.

DEDECMS Enterprise Template dedecms prevent FCK formatting your code from being modified

By default, FCK turns on the XHTML formatting option, so when some people change the full HTML file with visual editing, the head part may be changed to not resemble the human shape, and the workaround is as follows: Open Include/fckeditor/fckconfig.

Page details from this page worry-free php+mysql

I send the code all for my original, and applied in a number of projects. I often use php+mysql pagination code Copy the Code code as follows: $perpagenum = 10;//definition shows several pages per page$total = Mysql_fetch_array (mysql_query

A graphical display of the IP PHP program code

Look at the code first sunip.php Copy the Code code as follows: Header ("Content-type:image/gif");$im = Imagecreate (130,15);$background _color = imagecolorallocate ($im, 255, 255, 255);Unset ($IP);if ($_server[' http_client_ip ']) {$ip

Smarty with Ajax to implement no refresh message This example

Read the title you may want to say, message book, very basic stuff ah! Who will not ah, still need to use smarty, this does not look tired? Don't worry, I want to express a kind of programming idea and structure, not to prove that I do something

A php template, mainly want to reflect the idea

Ideas:To achieve a balance between speed and ease of use (mainly refers to the convenience of the art design). The method of generating PHP files from HTML files (compile?) is used.Also want to balance between separating the display logic and

PHP Pre-defined constants

These constants are defined in the kernel of PHP. It contains PHP, Zend engines, and SAPI modules. Php_version (String) Php_os (String) Php_eol (String) Available from PHP 4.3.10 and PHP 5.0.2 Php_int_max (integer) Available from PHP 4.4.0 and PHP 5.

PHP Quick Start for object-oriented programming

Abstract object-oriented programming (OOP) is a fundamental skill in our programming, and PHP4 provides good support for OOP. How to use the idea of OOP for advanced programming of PHP is very meaningful for improving PHP programming ability and

Total Pages: 5208 1 .... 4256 4257 4258 4259 4260 .... 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.