Build PHP Environment

Required Software:Apache2.2.8 PHP 5.2.5 Mysql 5.0 ************************ 1. Install Apache(Installation package format)In network Domain and server Name, fill in 127.0.0.1, the lower-right corner to control the start and shutdown of the Apache

The online poll system written by PHP

Head> survey   Investigation Project One   Survey Items two   Research project three   Survey item four   Survey items five       View results   Note that the survey items in the file data.txt must be consistent

PHP Simple File Upload code

filemanage File Management file id file name file size upload time Download Delete Include ("conn.php");Echo ' ';$rs = $db->query ("SELECT * from Filem ORDER by f_id DESC");$i = 1;while ($row = $rs->fetch_assoc ()){$size = $row [' f_size ']/102

Php image verification code

The code is as follows:Copy code Date_default_timezone_set ('Asia/Shanghai ');Function setcode ($ len) {$ Code = '';For ($ I = 0; $ I   {$ Code. = chr (drand ());  }Return $ code; }// Generate a random characterFunction drand () {$ Rand = mt_rand

PHP generates 3D percentage graph statistics

$ Image = imagecreatetruecolor (200,200); // Create a canvas named 200*200; The code is as follows: Copy code // Create multiple and differentiated colors$ Red =

Php supports generating Upload code for Thumbnail files

Untitled Document Class upfileclass {Var $ upfile, $ upfile_name, $ upfile_size;# $ Upfile temporary file name $ _ files ['tmp _ name'], $ upfile_name file name $ _ files ['name'], $ upfile_size File size $ _ files ['size'];Var $ new_upfile_name; #

Php adds text watermark code to images

abs

The code is as follows:Copy code $ Image = $ _ get [id];$ Im = getimagesize ($ image );// Print_r ($ im );// The following is the width and height of the read text$ Font = 'verdana. Ttf'; // font$ Font_size = $ im [0]/20; // text size$ Size =

Common php image processing functions and examples

The code is as follows:Copy code Header ("Content-type: image/jpeg ");// Load the image$ Imagen1 = imagecreatefromjpeg ("imagen1.jpg ");$ Imagen2 = imagecreatefromjpeg ("imagen2.jpg ");// Copy the image www.111cn.netImagecopy ($ imagen1, $ imagen2

Php complex verification code generation image

Function image3 ($ length = 4, $ type = 'PNG ', $ width = 180, $ height = 60, $ fontface = 'fpnf. ttf', $ verifyName = 'verify '){$ Code = $ this-> rand_string ($ length, 4 );$ Width = ($ length * 25)> $ width? $ Length * 25: $ width;$ AuthCode =

Create a thumbnail program in php

Function Thumb_IM ($ thumbwidth, $ thumbheight, $ preview = 0 ){Global $ thumbstatus, $ imageimpath, $ thumbquality;If ($ thumbstatus ){List ($ img_w, $ img_h) = $ this-> attachinfo;$ Targetfile =! $ Preview? ($ Thumbstatus = 1 | $ thumbstatus = 3? $

Php watermarks images

Function Watermark_IM ($ preview = 0 ){Global $ watermarkstatus, $ watermarktype, $ watermarktrans, $ watermarkquality, $ watermarktext, $ imageimpath;$ Watermarkstatus = $ GLOBALS ['forum'] ['disablewatermark']? 0: $ watermarkstatus;Switch ($

Php verification code Image program

/** File name: class. safeCode. php* Class name: safeCode* Purpose: to generate a verification code image for a web application* Current version: 1.0.2* Author: NoAngels* Contact: flare_1023@163.com QQ: 82535599 MSN: atizu@hotmail.com* Development

Thumbnails generated by php

/*** Generating thumbnails* $ SrcName ---- Original Image path* $ NewWidth, $ newHeight ---- maximum width and height of the thumbnails respectively* $ NewName ---- specifies the thumbnail file name (including path). The default value is to add

PHP adds Chinese characters to images

/*Note: gd library support is required and iconv support is required (php5 already contains no need to load)Add Chinese characters to the image*//*Param $ image resourcesParam size font sizeParam angle font output angleParam showX output position x

Use PHP to draw a button that can replace text

abs

You always have to spend a lot of time making some buttons. Design a good button and use it all!Text can be changed at will!Header ("Content-type: image/gif ");If (! Isset ($ s) $ s = 11;// Times. tif can be any font you like$ Size = imagettfbbox ($

PHP plot (1)

I dare not say "speak" about the GD library here, because I only use GD once or twice, and most of the functions have notThere are contacts. However, I had to write my own experiences with enthusiasm. HopeIt is enough to serve as an example.In fact,

Use PHP to generate a dynamic image [from Osso]

Many people do not know that PHP can generate non-HTML data. This is very useful for generating image graphs. It can generate a simple ad horizontal chart from the database or simply generate only one graphic button.I use TTF in the following

Php PEAR mail sending email instance

php emails recipient address sender address Sender's username email password smtp server Note: The smtp Address 163 is smtp.163.com title content Welcome to the computer emergency response group!Http://www.111cn.netThe

Several commonly used php email sending codes (1/2)

The code is as follows:Copy code // Connect to the IMAP server, and the IMAP port is 143.$ Mbox = imap_open ("{localhost: 143} INBOX", "user_id", "password ");// Connect to the POP3 server. The POP3 port is 110.$ Mbox = imap_open ("{localhost/pop3

Php uses phpmailer to send emails online

Html code Email: Tel: Content: & nbsp; Go to down.111cn.net to download a phpmailer Source Code tutorial.Require ("mail/class. phpmailer. php "); $ Mail = new PHPMailer ();$ Mail-> IsSMTP (); // set mailer to use SMTP$ Mail-> Host =

Total Pages: 12780 1 .... 6878 6879 6880 6881 6882 .... 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.