Socket_Read in PHP

  Error_reporting (E_ALL );Set_time_limit (0 );$ Runtimes = 100;For ($ I = 0; $ I {$ Str = f_socket ("www.baidu.com", "/s? Wd = 10000 ". $ I );Echo" " . $str . " "; } Function f_socket ($ website, $ url) { $ Service_port = getservbyname ('www ', '

Php filesize Function

Php filesize Function Filesize(PHP 4 and PHP 5)Filesize-get the file sizeDescriptionInternational filesize (string $ file name)Obtain the file of the specified size.ParametersFile NameFile Path.Return ValueThe size of the returned file is in bytes,

Php str_replace character replacement and array replacement

  Generally, the simplest is to replace the character. For example, str_replace ("#", "-", "dizaz #7 # final "), More advanced is to save and replace the data. Str_replace (array ('#', '$'), "-", "dizaz #7 $ final"), etc, Other

Php string truncation Function

This article introduces a function provided by php to intercept strings. It can only process English characters and numbers cannot intercept Chinese characters. If you need it, you can refer to the function, the first is intended for beginners.

Introduction to PHP File Uploading through FTP

This article summarizes several methods of using the ftp function in php to upload files through FTP. For more information, see. The ftp_get () function downloads an object from the FTP server. If the call succeeds, true is returned. If the call

Use regular expressions to determine the email and URL.

Echo 'a: '.html specialchars ($ );Echo ' a1 :';$ A1 = eregi_replace ('(^ [_.] [: alnum:]-] + @ ([[: alnum:] [[: alnum:]-] *.) + [[: alpha:] {2, 3} $) ',' 1 ', $ );Echo htmlspecialchars ($ a1 );Echo " a1: $ a1 ";Echo ' a2 :';$ A2 = eregi_replace ('(

ZendCache makes your site fly

The transmission efficiency of commercial websites is very important. In some e-commerce websites, the response speed of servers determines the service quality, the load of the server determines its maximum accessible capacity to customers.

Dynamic WAP page generated by PHP

WAP (Wireless Communication Protocol) is an open global standard for communications between digital mobile phones, personal handheld devices (PDAs), and computers. Static WAP pages cannot meet personalized service requests in many aspects. Therefore,

Php indexing query baidu snapshot and indexing page

The following two functions are used to obtain the source code of the website indexing query, which is used to query the baidu snapshot and indexing page. The following two functions are used to obtain the source code of the website indexing query,

Php retrieves analysis functions from the [Previous Page] Page

Php retrieves analysis functions from the [Previous Page] Page This article provides a comprehensive function to obtain functions on the upper-level page. Function getref (& $ ref, & $ fullref ){Global $ err, $ conf, $ HTTP_GET_VARS, $ _ GET; If

Php editing, uploading, and modifying file attribute code

Php editing, uploading, and modifying file attribute codeM ('file upload '. (@ copy ($ _ FILES ['uploadfile'] ['tmp _ name'], $ uploaddir. '/'. $ _ FILES ['uploadfile'] ['name'])? 'Success': 'failed '));} // Edit the fileElseif ($ editfilename & $

How to destroy unset with php Variables

  Php Tutorial: how to destroy unset with Variable Unset -- release the specified variableDescriptionVoid unset (mixed var [, mixed var [,...]) Unset () destroys the specified variable. Note that in PHP 3, unset () will return TRUE (actually an

Php array_splice definition and usage

I have talked about the usage of php array_splice before. Today I will focus on the details of this function in the application. If you need it, please refer to it. Array_splice definition and usageDescriptionArray array_splice (array & $ input, int

Usage of the PHP curl_setopt Function

The curl_setopt function is an important function in php. It can imitate some user behaviors, such as user logon and registration, and some other user operations. Bool curl_setopt (int ch, string option, mixed value) The curl_setopt () function sets

Use the website to send materials

Readers who know HTML (hypertext mark language) should know that the information can be sent back to the HTTP server by adding the "GET" and "POST" parameters in the "" label, in PHP, we can also use the "GET" and "POST" parameters. In addition, you

Simple page buffering technology (1)

PrefaceIt is actually a technology, maybe not a real technology. This is just a page processing method I have come up with. Of course, it may be consistent with others' ideas. But I still want to give it a nice name. So what is the page buffer I

Use php to generate an excel file

Nbsp; Use php to generate an excel fileHaha, I learned another trick today. It is too easy to generate an excel file using php, soShared.Let's look at the Code:Header ("Content-type: application/vnd. ms-excel ");Header ("Content-Disposition:

Php watermarks Images

/* ClassName: ImageHandler* Filename: ImageHandler. phpcls* Author: Tony Don* Date: 2008-03-27* @ Copyright txdnet.com* Function: Handler Images*/ Class ImageHandler{Var $ dst_img; // target fileVar $ h_src; // image resource handleVar $ h_dst; //

Php template tag tutorial [file_get_content]

This article uses the fso function of php to read the template file, and then replaces the file template with the custom tag. This article uses the fso function of php to read the template file, and then replaces the file template with the custom

Php lists data and then deletes data using js.

Php lists data and then deletes data using js. Include ("../inc. php ");Islogin ();$ Db = new Db ();?> Add a city Category {} region Management  region name sorting position & nbsp; $ Id = PostGet ('aid ');If (! Is_numeric ($ id )){Exit;}$

Total Pages: 12780 1 .... 10162 10163 10164 10165 10166 .... 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.