Building a simple interactive website (iii)
6. Password verification
Maybe you want to put your photo collection on your website, and just want to show your intimate friends that you need a password verification program.
6.1 HTTP-based
PHP Resources
PHP Resources
You can learn more about PHP3 through the many resources on the web. Many mailing lists and books are very useful to you.
12.1 Site
PHP's explosive popularity has led to the advent of many PHP-based sites overnight, many
Third party platform pits
1. Cannot receive Component_verify_ticket
The server pushes a third-party message receiving address once every 10 minutes component_verify_ticket
The document says Component_verify_ticket sent to the "authorization
The first is to ensure that the text file can read and write, before the file is ready to write, we have to do is to handle the user message!
This work can be done before the submission of the form, we will get the data are separated by a specific
The precondition for establishing a foreign key is that the column of this table must be the same as the foreign key type (the foreign key must be the outer primary key).
Foreign key effect: make two tables to form an association, foreign key can
Sorting algorithm learning, inserting sort, PHP code implementation.
Idea: According to the order from small to large, the newly inserted data compared with the previous, if the newly inserted data than the previous small swap order.
';
This article describes how PHP compiles and installs PHP-AMQ extensions. Share to everyone for your reference, as follows:
Purpose: This extension is used to operate the RABBITMQ server
First, the installation of the overall
1. Compile and install
This app can be used to browse the data in MySQL, you can make a good MySQL browser with a little modification.
*/
/*
? cmd=db
? cmd=table&db={}
? cmd=record&db={}&table={}
*/
$host = ' localhost ';
$user = ' Test ';
$password = ";
if (!isset ($cmd))
Encapsulation of database operations in PHP
In the dynamic network design, many involve the operation of the database, but sometimes it is necessary to use other back-end database, you need to modify the program a lot. This is a tedious,
The following is quoted from Stackouverflow-----------------
Http://stackoverflow.com/questions/15852884/nginx-connect-failed-error
The error message is as follows:
2013/04/06 17:52:19 [ERROR] 5040#0: * Connect () failed
"Q" When defining constants in PHP, what is the difference between const and define?
The "answer" uses the const to make the code easy to read, and the const itself is a language structure, and define is a function. In addition, const is much
Defined:
The method that begins with the two line "__" in the PHP class is called the Magic method.
Classification:
For example: Construction method: __construct; destructor: __destruct; dynamic reload: __set (), __get (), __call (), __callstatic ()
Use Str-replace instead of Ereg-replace
Programmers who are accustomed to programming with Perl are more likely to use ereg_replace to do string substitution work, because the use of ereg_replace in PHP is similar to that of pattern matching in Perl.
Check if date is legal
function Check_date ($date) {//check date is legal date
$DATEARR = Explode ("-", $date);
if (is_numeric ($dateArr [0]) && is_numeric ($DATEARR [1]) && is_numeric ($DATEARR [2])) {//Open source
Original link: http://coderoncode.com/2013/07/24/introduction-hhvm.html"HHVM (HIpHop Virtual Machina) translates the PHP code into a high-level bytecode (generally considered an intermediate language). The bytecode is then dynamically converted to x6
Copy Code
Modified to:
Copy Code
Put the above code in the previous found in the code below, save after refreshing, then go to the settings to see, the bottom of more than two to fill in the input box, fill in the relevant
Usage:copy code above to encoder.php place this file to your Web server root directory, install all the requried too LS needed to use ffmpeg-php now place some Video.avi and video.srt or video.sub etc video.idx subtitle, to encode video wi Th SRT
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