Research on PHP SOCKET technology

Today try to write a PHP and C language through the socket communication program, read the PHP manual, found that there are several ways to establish a socket client. 1, through the fsockopen () to establish a socket connection, and then use the

Reading XML data in PHP

xml| data There was a problem at work today because our project data is so small that we need to borrow data from web search, and they only provide us with an XML interface. Therefore, we need to transform the XML data into HTML to present to

Creating and parsing XML files using PHP dom-xml

dom|xml| Create /** * Topic:create and parse XML files using PHP dom-xml * Source:http://www.php.net/domxml * reference:http://www.zugeschaut-und-mitgebaut.de/php/extension.domxml.html * author:urs@circle.ch, 16-1-2001 * */ Creating and parsing XML

Actual combat PHP Invoke Java class to complete related operations by Java class Read database (Inber Write)

Data | database 1 Establish the System ODBC data source photo (this time using Oracle 9i, detailed configuration if you do not understand this place and I will contact)2 Compile the Databaseconnection.java file and put it into the PHP-supported

PHP Learning Notes Array Traversal implementation code

Copy CodeThe code is as follows: /* Traversal of arrays * * 1. Looping through an array using a For statement * 1. Other languages (only this one way) * 2.PHP in this way is not the preferred way * 3. The array must be an indexed array, and the

PHP design mode OBSERVER (Observer mode)

Copy CodeThe code is as follows: /** * Observer mode * * Defines a one-to-many dependency between objects so that when an object's state changes, all objects that depend on it are notified and automatically refreshed * The ability to easily create

The principle of sending a PHP cache class

Define (' Cache_root ', DirName (__file__). /cache '); Cache storage Directory define (' Cache_time ', 1800);//cache time Unit seconds define (' Cache_fix ', '. html '); $CacheName =md5 ($_server[' Request_uri ')). Cache_fix; Cached filename

Two methods of generating random numbers in PHP instance code output random IP

I am an ASP programmer, this is the first time to write PHP program, a little experience sent to share Copy CodeThe code is as follows: $ip 2id= Round (rand (600000, 2550000)/10000); The first method, which directly generates $ip 3id= Round (rand (6

10 PHP tips for dramatically improving the performance of your site

The recommendations in this article cover most of the PHP code performance issues. If you are doing small Web sites or small projects, then there is reason to ignore these suggestions, but when you provide a large number of users with long-term

Talking about PHP drawing (ii.)

Last said a simple way to avoid the GD, and then use GD to make the simplest of a "picture"-Straight line. This time I'm going to draw straight down and say. The part that was explained in detail in the last code, this time no longer

PHP $

Such as: Copy CodeThe code is as follows: Then the upload.php can be used directly $_files $_post $_get Functions to get the contents of the form. Today we focus on the $_files function. When the client commits, we get a $_files array The $

PHP thumbnail Generation Program

program | thumbnail image $FILENAME = "Image_name"; Build the width of the picture $RESIZEWIDTH = 400; Height of the build picture $RESIZEHEIGHT = 400; function Resizeimage ($im, $maxwidth, $maxheight, $name) { $width = Imagesx ($im); $height =

A simple PHP starter source program

Examples of programs quoting "Star Prodigal" php Chinese documents: Chat room, is the WEB site to send boring people's secret weapon. At the same time, the webmaster or other personnel can also be killed here. Even if there is a vigorous network

Easy to use PHP RSS parsing class

Rss /*** Rss Parse Class ver0.1** @link http://www.ugia.cn/?p=42* @author: Legend (PASiOcn@msn.com)* @version 0.1*/ Class Rssparse { var $encoding = "Utf-8";var $rssurl = "http://www.ugia.cn/wp-rss2.php"; var $resource = "";var $tag = ""; var

snoopy--php version of the network client

Client | network Magpierss in the Snoopy, which makes me a little interested to study this. Then SF, find the source code. Actually is a class, but do not laugh to see Oh, the function is very powerful. The official introduction, I translated the

Use PHP through the socket to send the source code, support letter Certification

A small program that uses PHP to open the socket port directly for a letterThe feature is the use of SMTP authentication, can better use to meet the needs of general users to build stations.The entire source code attached to this article, the same

An encrypted library of Encryptlib PHP

Encryption function Kphpcrypt ($strDataIn) {Return Strrevcrypt (Rot13crypt ($strDataIn));} function Rot13crypt ($strDataIn) {AbcdefghijklmNopqrstuvwxyz $newString = "";for ($i = 0; $i $temp = substr ($strDataIn, $i, 1);$ASC = Ord ($temp); $newChar

Understand the basics of PHP and its security issues

Security | issues Sometimes, your business may involve the security of your PHP application. When you encounter an audit task, do you know how to perform a lookup? This series will take you into PHP and help you understand it in a certain

"Data Structure" PHP implementation lookup table

Data | structure "Basic Algorithm" Suppose you have an array, you need to find out where the value is in the array. Binary lookup Function Bin_sch ($array, $low, $high, $k) {     if ($low          $mid = Intval (($low + $high)/2);         if

Configure OpenSSL to implement signature verification in PHP environment

Configured as follows 1: Edit openssl,php5 need more than 0.96 version 2: Put the compiled libeay32.dll,ssleay32.dll into the system32 directory. 3: PHP.ini in front of the Openssl.dll; 4: The PHP directory under the Php_openssl.dll copy to the

Total Pages: 12780 1 .... 1457 1458 1459 1460 1461 .... 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.