PHP Sockets Extended Installation Configuration detailed

ini

Today, the installation cacti found that the PHP sockets extension is required, and now the LNMP is not installed, so I thought of the Phpzie tool installation extension, installation method is as follows: Open Sockets extension in Linux

PHP File Upload size modification in Windows/linux

Linux system 1,/usr/local/nginx/conf/nginx.confModify Client_max_body_size 2,/usr/local/php/etc/php.ini Modify Post_max_sizeUpload_max_filesize 3, restart Lnmp/root/lnmp restart Windows system The default post_max_size for PHP is 2M. If the

PHP Hessian Detailed Introduction

What is Hessian?See this word I still do not know how to read, the phonetic transcription is [hes] read Hesse.Hessian is a lightweight, remote data Exchange tool that provides the functionality of RMI (remote method invocation) using simple methods.

PHP common File Upload class

PHP common File Upload class /*** Flie Class* (Jpg,gif,png)*/Class Upload {var $_file;var $_filetype;var $target = ' upload/';/*** Construct for this class** @param string $name* @return Upload*/function Upload ($name) {if (Isset ($_files[$name])) {

PHP Implementation Code Conversion

PHP to implement the conversion of code, here will convert gb2312 into Utf-8 function Gb2utf8 ($GB) {if (!trim ($GB)) return $GB;$utf 8 = ';while ($GB) {if (Ord (substr ($GB, 0,1)) > 127) {$t =substr ($GB, 0,2);$GB =substr ($GB, 2);$utf 8. = $this->

PHP generated Chinese Verification Code program

Session_Start ();# get random charactersfunction Getrandstr ($length = 4, $mode = 1){$str 1 = ' 123456789 ';$str 2 = ' abcdefghijklmnopqrstuvwxyz ';$str 3 = ' abcdefghijklmnpqrstuvwxyz ';$str 4 = ' _ ';$str 5 = ' ~!@#$%^&* ()-+=\| {}[];:'",./?';$str

PHP generates XML classes

 class Majax extends Blogadmin {      var $result = ' ";   function Majax ($db) {     $this->db = $db;     $this-> AdminName = $_session[' AdminName '];   }   function Checklogin () {    if ($this->islogin ()) {      return 0;    }else{

PHP generates static [HTML] page code

The code is as follows Copy Code Class makehtml{var $fileName; Filenamevar $dirRoot; Directory Address function GetFile ($name, $root) {$this->filename = $name;$this->dirroot = $root;if (file_exists ($root)) {$this->makeroot ($root);

PHP file_get_contents reads remote files and outputs

PHP file_get_contents read the remote file and output, so good to do is not in the Flash playback code to display the other side of the site's file address, the following is my own use of a. It's for the reader's video file. Require_once ("s/s.php")

how PHP executes. sql files

$hostname = ' localhost '; $dbname = ' test '; $username = ' root '; $pw = ' Vivian ' ; $sqlfile = ' gb.sql '; $sql = file_get_contents ($sqlfile); Echo ($dbname); Echo ($sql); $conn = mysql_connect ($hostname, $username, $PW) or die

PHP Calendar Code

php Calendar Code Day Two Three Four Five Six ?@date_default_timezone_set (' +8 '); function Week2day ($STR) {$days = Array (' Mon ', ' Tue ', ' Wed ', ' Thu ', ' Fri ', ' Sat ', ' Sun ');Return Array_search ($STR, $days) + 1;}

PHP Article _ page-pagination code

To avoid errors caused by duplicate inclusion of files, add a condition that determines whether a function exists:if (!function_exists (Pageft)) {/function Pageft ($totle, $displaypg =20, $url = ') { Define several global variables:$page: current

PHP reads two-dimensional arrays

PHP reads a two-dimensional array, and today it's a problem when you're writing a multiple file upload. Let's give an example to illustrate, please see the following topic. $a 1 =array (' A1 ', ' A2 ', ' A3 ');$b 2 =array (' B1 ', ' B2 ', ' B3

PHP SMS Interface Program

$loginname = ""; Interface account number$pass = ""; Interface password$code = "";$subid = "";$sender = "";$receivers = ""; Receive number, multiple numbers used; Separated$settimer = ""; Timed Send time format: Yyyy-mm-dd hh:mm$message = UrlEncode (

PHP Picture Verification Code

PHP Verification Code Program Verification Code code PHP PHP picture Verification Code /*@date 20080514@author Hluan Session_Start ();Class Icode{function __construct () {Header (' content-type:image/png ');}function __destruct () {Imagedestroy ($

PHP Delete directories and files

Deletedir ($dir)//This delete file and directory code can be placed in the win Lin U system Delete, { if (RmDir ($dir) ==false && is_dir ($dir)) { if ($DP = Opendir ($dir)) { while (($file=readdir ($DP))!= false) { if (Is_dir ($file) && $file!= '. '

PHP foreach Usage

Today we'll give you a simple example of php foreach usage and php foreach key . $test = "BB|CCCS|AAA"; $array =explode (' | ', $test);$j = 1;foreach ($array as $key) {$vote = ' vote_r '. $j;if (0== $rs [' vote_times ']) {$n = 1;}else{$n = $rs ['

Example of removing index. php from rewrite of CI on Nginx server

The CI framework configures rewrite on the nginx server to remove index. php:Vim/usr/local/webserver/nginx/conf/nginx. confInstance configuration code:Server  {Listen 80;Server_name www.111cn.net;Index index.html index.htm index.

PHP regular expressions (without escaping) in the CI framework

When writing PHP regular expressions, the modifier of the regular expressions is usually defined /, the trouble caused by the definition of "/" is that if the regular expression contains "/", the escape character must be written as "\/", which makes

JQuery + FCK editor + PHP implement article paging code

Insert a paging character in fck, as shown in the following figure.Paging code Function pagebreak ($ content){ $ Content = $ content;$ Pattern = "/ /";$ Strsplit = preg_split ($ pattern, $ content,-1, preg_split_no_empty );$ Count = count ($

Total Pages: 12780 1 .... 9372 9373 9374 9375 9376 .... 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.