10 little-known but very useful functions in PHP

PHP has a rich set of built-in functions that we have used. However, most of us are not familiar with, but they are very useful. In this article, I have listed some little-known PHP functions that will highlight your eyes. Levenshtein () Have you

A small program that determines whether oicq is online

? // Haha, take the Alpha brother's icq version to change the functionget_status ($ uin) {$ fp @ fsockopen (infocenter.tencent.com, 80, $ errno, $ errstr, 30); if (! $ Fp) {return error;} else {fputs ($ fp, GET/$ uin/l/00/0/http en ""

Example: use PHP3 to send a MIME-format email (attachments can be sent)

This has an example:/** Classmime_mail * OriginalimplementationbySaschaSchumannsascha@schumann.cx * ModifiedbyTobiasRatschillertobias@dnet.it: *-Generalcodeclean-up *-separatebody-a which has an example: /* * Class mime_mail * Original

A program to test shared memory in linux

1share. php allocate/delete shared memory? Phpif ($ stop! 1) {// Determine whether $ shm_id @ shmop_open (0xff3, a, 0644,100) has been created; if ($ shm_id) {echo memory block has been created \ n; exit ();} // create a 100-byte shared memory block

Can you try this code to determine whether ICQ is online or not?

? Functionget_status ($ uin) {$ fpfsockopen (wwp.icq.com, 80, $ errno, $ errstr, 30); if (! $ Fp) {echo $ errstr ($ errno) br \ n;} else {fputs ($ fp, GET/scripts/online. dll? Icq $ uinimg5HTTP Function get_status ($ uin) { $ Fp = fsockopen

Analyze HTML and save the result to an array. Let's take a look at the annotations. :)

? Php/** parseHtml. php * Author: CarlosCostaJordao * Email: carlosjordao@yahoo.com ** Mynotationofvariables: * I _integer, ex: I _count * a_array, a_html * B _boolean, * s_string ** What /* * ParseHtml. php * Author: Carlos Costa Jordao * Email:

My PHP tree code can be nested at any layer

P? $ Handleora_plogon (sender, password) ordie (database connection failed !); $ Cursorora_open ($ handle); file: // public cursor $ cursor_treeora_open ($ handle); file: // create a dedicated tree cursor $ num0; file: // Save the cursor value

Using XML technology to construct remote services in PHP (I)

In the future, the Web will be service-centered. XML_RPC makes writing and application services very simple. This article introduces the XML_RPC standard and its PHP implementation, and demonstrates how to develop the XML_RPC service and customer

Use PHP to send MIME Mail

Are you tired of sending monotonous text notifications and emails to your friends and customers? I have considered sending attachments or embedding HTML in Mail. The answer is MIME. The following pages explain the basic knowledge of MIME, create

The PHP mail feature we have seen before is good or not.

P? /* Pop3Functions. SmtpFunctions. [Addedlater, goingtosplit] Forarealexampletakealookat: http://www.triple-it.nl/pop3/IhavejuststartedtoexploretheworldofPHP3,soexcus P> /* Pop3 Functions.Smtp Functions. [Added later, going to split] For a real

94CoolBT website BT release system v1.3

The BT website has a complete set of systems, including the Tracker program of the BT server and the Web interface for publishing the list. Has the following advantages: 1. simple configuration: The server only needs to have a Web environment and

A php chat room attack

Hello Tom gave me a chat room ip address and asked me to check it out. I tried to intrude into its server. I probably didn't get into the system even after 10 minutes. So I was looking for any bugs in this chat room. The chat room can be seen that

Instance parsing: migrate from ASP in IIS to PHP in APACHE

Currently, in the website server software market, open-source Apache servers account for 60% of the market share, while Microsoft ranks second among the free-bound IIS servers in the operating system, with a market share of 31%, in general, the

C/C ++ Extension Programming in php in linux

How can I use php to call a function compiled into the so file? One method is to write a php module (phpextension), call the functions in this module in php, and then call the functions in so through this module. Below is a simple example, the

Innovation, passion, and new future

PHP5.3.0 is not too short, but any program in China has kept up with the new pace. Some domestic virtual hosts also support PHP4. We should discard the past and embrace new things. PHP5.3.0 is not too short, but any program in China has kept up

Three-step static deployment of phpwind

Simple three steps to help the webmaster who is not familiar with the php language to deal with PHPWIND static deployment EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> Three-step static deployment of phpwind _ PHP _ China Network

PHP: 10 uncommon but useful PHP functions

You can obtain the system load. This function returns an array containing three elements, each representing the average load of the system in the past 1, 5, and 15 minutes. 1. sys_getloadavg () Sys_getloadavt () can obtain the system load. This

PHP development in multi-memcached and mysql master-slave environments

The general practice of a large site is to use memcached as a database with memory, as well as a good read/write splitting and backup mechanism (mysql master/slave ). EN "" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> PHP development

Three tips for enabling the PHP engine to run at full speed

As a popular Web programming language, the biggest advantage of PHP is speed. PHP is already doing very well in this regard, and you can hardly find a script programming language that is faster than it. However, if your application load is large and

Five excellent PHP code reconstruction tools are recommended.

In software engineering, refactoring code usually refers to modifying the source code without changing the external behavior of the code. Software refactoring requires the help of tools, and the refactoring tool can modify the code and modify all

Total Pages: 12780 1 .... 11775 11776 11777 11778 11779 .... 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.