Use PHP and RSS in combination

Content Summary: RSS aggregation has recently been very popular, so at least a knowledge of RSS and how it works is an urgent need for a PHP developer. This article describes RSS basics, some of the uses of RSS for many purposes, how to create an

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

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,

PHP Batch upload five [with preview]

$path =$_server["document_root"];//server path$i = 0;foreach ($_files["Pictures"] ["error"] as $key => $error) {if ($error = = UPLOAD_ERR_OK) {$upload _file=$_files[' pictures ' [' tmp_name '] [$key the temporary filename stored in the server after

Php imagecreate instance tutorial

Php imagecreate instance tutorialDescriptionResource imagecreate ($ width, $ height)Imagecreate () returns an image identifier representing a blank image of the specified size.We recommend that you use imagecreatetruecolor ().Check itemsHeader

Php image download program

Function displayimg ($ image) {$ Image = './upload/'. imgdecode ($ image );// Echo $ image; exit;If (file_exists ($ image ))  {$ Info = getimagesize ($ image );Header ("Content-type: $ info [mime]");Switch ($ info [2])   {Case 1: $ cimage =

Php verification code generation program

Php verification code generation program$ Consts = 'bcdfghjkmnpqrstwxyz ';$ Vowels = 'aei23456789 ';For ($ x = 0; $ x  {$ Const [$ x] = substr ($ consts, mt_rand (0, strlen ($ consts)-1), 1 );$ Vow [$ x] = substr ($ vowels, mt_rand (0, strlen ($

Php screenshot code

Php screenshot code$ Browser = new COM ("InternetExplorer. Application ");$ Handle = $ browser-> HWND;$ Browser-> Visible = true;$ Browser-> Navigate ("http://www.111cn.net ");/* Still working? */While ($ browser-> Busy ){Com_message_pump (4000 );}$

PHP functions used to determine the IP format

Function is_ip ($ str ){If (! Strcmp (long2ip (sprintf ("% u", ip2long ($ ip), $ ip) return 1;Else return 0;}Or (used in earlier versions)Function is_ip ($ str ){$ Ip = explode (".", $ str );If (count ($ ip) 4) return 0;Foreach ($ ip as $ ip_addr ){

Code for implementing the screenshot function in php

PHP uses the GD library for Screenshot capturePHP5.2.2 and later versions of the GD Library implement two screenshot functionsImagegrabscreenAndImagegrabwindowIt is used to intercept the entire screen and intercept a window (same as ALT +

Sharpen images in PHP

min

// Read Image type// 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF (intel byte order ), 8 = TIFF (motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFFFunction GetImageType ($ filename) {return ($ imginfo =

PHP plot (3)

The last time we talked about using GD for various geometric figures and fill colors. This is a complicated situation.Leave it behind, which is the fill color of any polygon and any polygon.Header ("Content-type: image/png ");$ Im = ImageCreate (200,

Php mail () function sends email code

SyntaxMail (to, subject, message, headers, parameters) parameter descriptionTo is required. Specifies the email recipient.Subject is required. Specifies the subject of the email. Note: this parameter cannot contain any new line characters.Message is

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 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 mail email sending code

?> The code is as follows:Copy code send a mail to the network administrator network administrator reception Sender: Topic: Content: Hello, Webmaster: Mail. Php file codeIf (empty ($ from) or empty ($ subject) or empty ($ content

Php email sending code-mail

The code is as follows:Copy code send a mail to the network administrator network administrator reception Sender: Topic: Content: Hello, Webmaster: Php code The code is as follows:Copy code If (empty ($ from) or empty ($ subject)

Php sends an email using SMTP for authentication

This example shows how to send an email using SMTP Authentication. This example is sent using Gmail. To send smtp tls authentication as required by Gmail through SMTP. Fortunately, when we use Ali mail authentication, the connection is automatically

Email sending code-php email sending code

-- invite friends & nbsp; friend name:& Nbsp;Email address: friend name:& Nbsp;Email address: friend name:& Nbsp;Email address: Email sending function page.Mail. phpRequire (dirname (_ FILE _). "/mail/class. phpmailer. php"); //

Total Pages: 12780 1 .... 10640 10641 10642 10643 10644 .... 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.