PHP generates RSS subscriptions for program code

RSS, also called aggregated content, is a format for describing and synchronizing web site content. The following code to generate an RSS subscription:RSS XML Structure Website name http://www.111cn.net/ website Description! rss tutorial

PHP website Installation Implementation program

This time by doing a install.php to find that the difficulty is actually not big, or file write operation, installation in fact, the main operation is still the contents of the database, first to see how the file to write: (or the use of codeigiter,

PHP Filter Unsafe character functions

PHP Filter Unsafe character functions Function uh ($STR){$farr = Array ("/\s+/",//filtering excess blank"/]*?) >/isu ",//filter "/(]*) on[a-za-z]+\s*= ([^>]*>)/isu",//filter JavaScript on event);$tarr = Array (" ",' ',//If you want to clear the

Example of a PHP json-to-turn array

Converting arrays into JSON in PHP Powerful PHP already provides built-in functions: Json_encode () and Json_decode (). It's easy to understand that Json_encode () is converting a PHP array into JSON. Instead, Json_decode () converts JSON into a

Summary of the usage of Set_error_handler in PHP

Set_error_handler () PHP provides a functional function of custom error handling handles Set_error_handler () from 4.1.0, but very few scripting people know. Set_error_handler This function is a good way to prevent the wrong path from leaking, and

Example of PHP reading Excel date type data

Provides a read function: The code is as follows Copy Code Excel Date conversion functionfunction Exceltime ($date, $time = False) {if (function_exists (' Gregoriantojd ')) {if (Is_numeric ($date)) {$JD = GREGORIANTOJD (1

Simple PHP Database Processing class

Recently looking at the backing network of PHP video, the main content is related to the production of a blog system, the feeling is still very rewarding. A simple database processing class Here is a simple database processing class, see source

PHP Read and write Excel form program code

The first step in working is to get the data out of Excel.  Here I use an open source PHP processing Excel class: Phpexcel. The details of the project are http://phpexcel.codeplex.com/. I am currently using the phpexcel1.7.3 version, after

PHP pcntl_fork Multi-process Download Picture instance

Attention: PHP has a pcntl_fork function to implement multiple processes, but to load pcntl expansion, and only under Linux to compile this extension 1. First in the Ubuntu compiler pcntl.so, my Ubuntu can not find a pcntl bag, so Create a folder

PHP's Curlopt_postfields parameter uses the difference between the array and the string

The Curl component of PHP is a very common HTTP request emulator. Usually when I send post data, I'm used to writing this:curl_setopt ($ch, Curlopt_postfields, $post _data);But when a request is sent to a server, the server returns 500. and use the

Windows install IIS7 configuration PHP Environment graphics and text tutorial

PHP5.2.17 Official Download: Http://windows.php.net/downloads/releases/php-5.2.17-Win32-VC6-x86.zip PHP5.3.5 Official Download: Http://windows.php.net/downloads/releases/php-5.3.5-Win32-VC9-x86.zip First install good IIS7

Graphics and text Tutorial of PHP environment configuration under Windows Server

1th Step: Extract the php5.0 to the local, the following figure: The 2nd step: Copy PHP This folder to C disk, the following figure: Step 3rd: Create a new Temp

Php DOMDocument creation, loading, parsing xml document code

The code is as follows:Copy code $ Xml_str = " ";$ Xml_str. = " ";$ Xml_str. = " ";$ Xml_str. = " harry potter ";$ Xml_str. = " j. k. rowling ";$ Xml_str. = " warner bros. ";$ Xml_str. = " 39.0 ";$ Xml_str. = " ";$ Xml_str. = " ";$ Dom = new

View. php

VML Drawing Board work presentation // The variable num is the total number of saved vml documents, which is simply specified here. Adjust according to the actual organization

Php image verification code generation program code

Session_start ();Class authnum {// Image object, width, height, and verification code lengthPrivate $ im;Private $ im_width;Private $ im_height;Private $ len;// Random string, Y axis coordinate value, and random colorPrivate $ randnum;Private $

Php calculates the age based on the ID card number

The code is as follows:Copy code Function getAgeByID ($ id ){        // After this year's birthday, you will be 1 year old.If (empty ($ id) return '';$ Date = strtotime (substr ($ id, 6, 8 ));// Obtain the date of birth, month, and day$ Today =

Explanation of error_reporting function usage in php

Basic informationE_NOTICE indicates that it is not recorded in general cases and used only when the program has an error, for example, an attempt to access a non-existent variable or call the stat () function to view a non-existent file.E_WARNING is

PHP overview.

1. What is PHP?2. What does PHP mean?3. What is the relationship between versions?4. Can I run different PHP versions at the same time?5. What is the difference between PHP 3 and PHP 4?6. I think I found a BUG. Who should I tell?1. What is

Solution to PHP file download corruption and opening garbled characters

Recently updated a project. The download part follows the download code of the previous project. But this time there was a small problem. The downloaded word and other files will prompt garbled characters, when downloading files such as rar, the

Php smarty foreach function **/

Php smarty foreach function **/$ Tpl = new Smarty ();$ Tpl-> template_dir = $ cfg ['path'] ['template'];$ Tpl-> compile_dir = $ cfg ['path'] ['root']. 'Www .111cn.net/111cn /';  $ Tpl-> compile_check = $ cfg ['debug'];$ Tpl-> debugging = false;$ Tpl-

Total Pages: 12780 1 .... 2526 2527 2528 2529 2530 .... 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.