Some Questions about PHP

Source: Internet
Author: User
Tags spl

* Composer Automatic loading mechanism

* fcgi, CGI principle

* MySQL Current version 8.0

https://www.mysql.com/

5.6

* Redis is applied in the project

* Golang Project

* Process of project development

* Design mode

===========================2018.07.30===================================

1. Load balancing [to is done]

61615876

2. Indexing and querying and indexing scenario creation

3. Routing of thinkphp [ongoing]

https://www.kancloud.cn/manual/thinkphp5/118030

./application/route.php

Some common SPL functions in 4.PHP [to is done]

http://php.net/manual/en/book.spl.php

5.mysql master-Slave separation of the ID hash understanding hash

Some common commands for 6.linux are familiar with Linux [done]

7. Recursive n! [Done]

8. PHP Single-instance mode

9. mysql Sub-table

CAS certification, Ucenter certification

  

* PHP program sends HTTP request

-Curl

$ch = Curl_init (); Curl_setopt_array ($ch, [    curlopt_url = ' https://www.baidu.com ',    curlopt_header = 1,    Curlopt_returntransfer = 1]); $data = curl_exec ($ch); Curl_close ($ch); Echo $data. Php_eol;

-socket


* MySQL Storage engine MYISAM/INNODB Select COUNT (*) ... With which storage engine is fast

MyISAM Saves the total number of rows in the table, and select COUNT (*) executes in the MyISAM storage engine, MyISAM simply reads out the saved row count.

The InnoDB storage engine does not save the exact number of rows in the table, so executing this code in the InnoDB storage engine InnoDB to scan through the entire table to calculate how many rows.

* MySQL function Pconnect/connect

mysql_pconnect- Open A persistent connection to a MySQL server


* Linux Shell Timer script

Crontab


* Likes are limited to 3 times per minute per person, 10 times per hour; Each IP 30 times per minute, 100 times a day


* Crawler Architecture


* PHP implements a cross-request queue (Redis?)


* Upload File security restrictions

* the "Hello World Blog Control" string is separated by a space, divided into arrays, all converted to lowercase, sorted alphabetically

(the Sort method of Php sort and JavaScript does not return calls SORT_STRING )

<?PHPclassTestarrayobject {Private $s= "";  Public function__construct ($s) {    $this->s =$s; }      Public functionrun () {$ao=NewArrayobject (Array_map(function($word) {      return Strtolower($word); },Explode(‘ ‘,$this-s)); $ao-Uasort(function($a,$b) {      return strcmp($a,$b);     }); return $ao-getarraycopy (); }   } $o=NewTestarrayobject ("Hello World Blog controll Hola Hi Shalom");$a=$o-run ();Var_dump($a);
testarrayobject.php   

  

Some Questions about PHP

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.