PHP Installation Raiders: NT + Apache + PHP3

This article only discusses how to install APACHE+PHP3 under Windows NT 4.0 or Windows 2000. I use Apache for Apache_1_3_12_win32.exe. Note that you must first install PHP3 Oh, about PHP3 installation, you can check the related articles described

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

Using Phpexcel to export Excel samples in PHP

Phpexcel is a very powerful class library for PHP operations Excel, but it's a little complicated to simply export data to excel in PHP, which has a class of PHP export Excel on Google code that can be easily invoked. The code is as

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

PHP Read all directories under the directory and subdirectories under the file

The code is as follows Copy Code $dirname = @opendir ("abc") Or Die ("Open Directory unsuccessful ");Readdir ($dirname). " ";Readdir ($dirname). " ";while (($filess =readdir ($dirname))!=false){if (Is_dir ("abc/". $filess)){echo

Free space Abroad-free PHP space abroad

Shengxin Network: First open free 100M space Limited applicationIIS Connection amount/apache Connection amount not LimitedSend a free level two domain name, you can bind 3 domain namesOnline Control Panel, support for online decompression, setting

JQuery ajax+php return JSON data Instance tutorial

JSON (JavaScript Object notation) is a lightweight data interchange format. Easy for people to read and write, but also easy to machine parsing and generation. JSON plays a very good role in the process of background interaction in the front. Please

PHP defines the validation code graphic size function

PHP defines the validation code graphic size function ?function Vcode ($num =4, $size =20, $width =0, $height =0) {$width && $width = $num * $size *4/5+5;! $height && $height = $size + 10;Removed 0 1 O l etc$str =

The Monkey King algorithm for PHP questions

The Monkey King algorithm for PHP questions /** filename:kingmonkey.php* Author:luochuan Wang* Date:april 2nd, 2009* Descript:an arithmetic to a* Program:A group of monkeys in a circle, press 1,2,..., n sequentially numbered.And then starting from

Php dom reading xml document code (1/4)

  jack herrington php Tutorial hacks o 'Reilly jack herrington podcasting hacks o 'Reilly Xml in 1 contains a list of books. The parent tag contains a set of tags. Each tag contains , , and tags.After the xml document's tag structure and

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 =

Example of converting php array to xml

Example 1The following multi-dimensional array is supported.Test Code: test. phpInclude './ArrayToXML. Php ';Header ('content-Type: text/XML ');$ Data = array ("name" => "zhangsan", "sex" => "0", "address" => array ("sheng" => "chongqing ", "shi" =>

How does php curl call the interface to display HTTP Status 415?

Use php curl to call the interface provided by the other party and receive the following error message:HTTP Status 415The server refused this request because the request entity is in a format not supported by the requested resource for the requested

Example of uploading multiple files to the server in PHP

Instance descriptionUploading images to the server is an essential feature in program development. It not only achieves the purpose of image sharing, but also increases the website access volume and enriches the website content. In this example, we

Example of automatically filling white edges with thumbnails generated by php

Creating thumbnails after a website uploads images should be a very common function. Generally, for the sake of beautiful website display, the thumbnails will be of the same size. For example, a website I recently developed, the thumbnails must be 16

PHP uses CURL to forge source IP address and source URL address program code

Test. Php file The code is as follows:Copy code Ob_start ();$ Ch = curl_init ();Curl_setopt ($ ch, CURLOPT_URL, "http://www.xxx.cn/test/test2.php ");Curl_setopt ($ ch, CURLOPT_HTTPHEADER, array ('x-FORWARDED-FOR: 1.1.1.1 ', 'client-IP: 2.2.2.2');

Php curl counterfeit IP source program implementation code

Define false user browser information HTTP_USER_AGENT The code is as follows:Copy code $ Binfo = array ('mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0 ;. net clr 2.0.50727; InfoPath.2; AskTbPTV/5.17.0.25589; Alexa Toolbar) ',

Php file directory operation functions

Mkdir (); functionPhp creates folders and files/// Create a folder The code is as follows:Copy code Function createdir ($ dir){If (file_exists ($ dir) & is_dir ($ dir) {// if this file exists and this file is a directory, no action will be taken.

Introduction to variable scopes and Super global variables in php

I. Variable assignmentYou can assign values to variables after they are declared. There are two methods: value assignment and reference assignment.1. Value assignment$ Color = "red ";$ Sum = 12 + "15";/* $ sum = 27 */2. If you want two variables to

Php defines constants define () and common variables

1. define the constant define ("constant", "hello world .");Constants can only contain scalar data (boolean, integer, float, and string ).When calling a constant, you only need to obtain the constant value with a simple name, instead of adding the "$

Total Pages: 12780 1 .... 1912 1913 1914 1915 1916 .... 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.