PHP Get picture size

? $arr =getimagesize ("Images/album_01.gif"); Echo $arr [3]; $strarr =explode ("" ", $arr [3]); echo $strarr [1]; ?> demo picture and so on scale shrink

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 page-type

Class conn{function __construct () {Require ("config.php");$conn = @mysql_connect ($host, $root, $pass);@mysql_select_db ($DB);if (! $conn) {echo "Cannot connect". Mysql_errno (). ":" . Mysql_error ();Exit}}function query ($sql) {$result =

PHP Message Board

/************/config.php/***********/$host = ' localhost '; Database server$user = ' root '; Database user Name$password = ' 123456 '; Database Password$db = ' project '; Database name Open Database$conn = Mysql_pconnect ($host, $user,

Implementation of generating thumbnails in PHP

What surprised us with PHP is that we need to worry about ASP in image processing. Using the GD Library PHP, we can easily implement thumbnails. The purpose of this article is to use GD to generate thumbnails. PHP can directly generate the

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 email function implementation code

No email server is required, and no built-in functions of mail are used. You can use a php Tutorial to write a custom function sendmail () for the mailer class. very is practical!I used to post this email function on several php forums. I will send

Php code for sending emails using qmail

Function send_check_mail ($ email, $ subject, $ uid, $ buffer){Echo "hello ";$ Command = "/var/qmail/bin/qmail-inject". $ email; // qmail program address. $ email is the address to be sent.$ Handle = popen ($ command, "w"); // open the pipelineIf (!

Php unlimited mail sending function

The mail () function is not easy to use, and the email address cannot be too many. If you copy 100 emails at a time, a problem may occur. The following provides a php function that can restrict email sending.*/ The code is as

Php mass mailing (phpmailer sends qq mails)

* @ Author ray* @ Since 2009-08-07There must be many smtp mail accounts, otherwise they will be treated as spam by the qq server.2. Sleep properly.The smtp. dat file format isSmtp.163.com | sss@163.com | passwordSmtp.sina.com | www@sina.com |

Php mail and email sending (1/3)

The code is as follows:Copy code use php to send an email use php to send an email & nbsp; Recipient & Lt; td width = "363" & gt; & nbsp; & nbsp; email title & nbsp; & nbsp; email body www.111cn.net  Homepage 1 2 3Last page

Use PHP to receive POP3 mails

The POP3 mail receiving class has already been described in detail in the previous article. Let's take a look at how to apply this class: The code is as follows:Copy code Include ("pop3.inc. php Tutorial ");$ Host = "pop.china.com ";$ User =

Php mail function mail tutorial

zip

// Define the border$ Boundary = uniqid ("");// Generate the mail header$ Header = "From: $ from Content-type: multipart/mixed;Boundary = "$ boundary" X-Mailer: php x-Priority: 3 ";// Obtain the MIME type of the attachment file$ Mimetype =

Php timed email sending

// Request the PHPmailer class fileRequire_once ("class. phpmailer. php");// Email sending functionFunction smtp_mail ($ sendto_email, $ subject, $ body, $ extra_hdrs, $ user_name){$ Mail = new PHPMailer();$ Mail-> IsSMTP ();// Send via SMTP$ Mail->

PHP email topic

Php smtp class/***********************************Php mime smtp ver 1.0 Powered by Boss_ch, Unigenius soft ware co. LtdAll rights reserved, Copyright 2000;This class uses PHP to send MIME-type emails through smtp sock operations. You can sendBody

PHP instance: EmailAddress for generating image programs

Save the following file as index. php/*MailX Managment System 0.8 Beta*/Header ("Content-type: image/png ");$ Mailaddress = $ _ GET ['mailname'];$ Mailaddresslen = strlen ($ mailaddress );$ Mailaddressimages = imagecreate ($ mailaddresslen * 10, 25 )

Use php encoding-instance call (3)

Include_once ("mime. inc ");$ Mm = new MIME ();$ To = "customer@263.net ";$ Subject = $ mm-> encode ("mall", "gb2312"); // code$ Msg = "successfully registered member ";$ Msg. = "member name: wayne ";$ Msg. = "Password: wayne ";$ Headers = "From:

Use php to send emails with attachments

Refer to the online articles. As the saying goes, you will not copy a large copy of the article. The key is to use it for me. This is the most important thing. Let's go.In fact, sending mail is very simple. php has ready-made functions. You can

How to use PHP to send emails (2)

Mail ([recipient], [subject], [email subject], [header information]);You only need to replace the [receiver] with the next name in the list. Suppose you already have an array of email addresses:$ Addresses = array ("me@mycompany.com",

Total Pages: 12780 1 .... 9418 9419 9420 9421 9422 .... 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.