This paper illustrates the method of Php+jquery+ajax to achieve the point-praise effect. Share to everyone for your reference, specific as follows:
Database design
First prepare two tables, the PIC table holds the picture information, including
A daemon (Daemon) is a special process running in the background. It is independent of the control terminal and periodically performs a task or waits to handle certain occurrences. The daemon is a very useful process. PHP can also implement the
The_post_thumbnailThe_post_thumbnail is mainly used in WordPress to print the thumbnails set in the article, and the Get_the_post_thumbnail function can return the HTML code you need as a string.
The use of The_post_thumbnail functions
Copy Code code as follows:
Class Phptelnet {
var $show _connect_error=1;
var $use _usleep=0; Change to 1 for faster execution
Don ' t change to 1 on Windows servers unless for you have PHP 5
var $sleeptime = 125000;
var $loginsleeptime =
A PHP this,self,parent One of the differences in this articleObject-oriented programming (Oop,object oriented programming) is now a basic skill for programmers. Using OOP for advanced programming in PHP is very useful for improving PHP programming
The following section of code to introduce PHP to the HTML into Word, the details are as follows:
This is tested, this method is not good, HTML page code to write in PHP, but at least can run, look at the program
; function Save ($path) {echo '
Discuz 7.2 faq.php Automatic use of tools, Getshell and dump data, the Python version of the Uc_key Getshell part of the code from the Internet (thanks to the author)
Implementation code:
#!/usr/bin/env python #-*-CODING:GBK-*-#-*-coding:gb2312
1. Improve PHP's operational efficiency
One of the advantages of PHP is that the speed of the general Web application, can be said to be enough. However, if the site's access is high, with narrow or other factors causing the server performance
Practice the truth, write a simple file PHP file include a JS file, the implementation of no error or warning information, and see the contents of the file containing JS is printed. It is therefore concluded that the include target file can be of
PHP sprintf () function
Replace the percent sign (%) symbol with a variable that is passed as a parameter:
Definitions and usage
The sprintf () function writes the formatted string to the variable.
The Arg1, arg2, + + parameters are
Copy code code as follows:
/*
Code features: Use PHP to skillfully store pictures by creation time;
Picture file properties must cancel read-only property, otherwise you cannot remove
by lost63
/
//Delay setting
The following are:
$a = ' 2tóngdòng dong 3 ' ;echo preg_replace ('/[^/', ', $a);
Will prompt:
Warning:preg_replace (): Unknown modifier ' P ' in E:\phpLearn\test.php on line 12
The reason is:
In regular
There is a set of objects that map to the data types in the SWF animation: Child graphics, graphics, text, bitmaps, and so on. In this article, I used the precompiled Extensions Php_ming.dll library for Windows version of PHP.
Listing 2 shows a
In fact, someone on the internet has already analyzed this, and written a tool, but I tested a lot of, no one can use, so I decided to analyze from the beginning.
Open the shield after the encryption of the source code, you can see that
It is
One: Structure and invocation (instantiation):Class classname{}, calling: $obj = new ClassName (), and when the class has a constructor, it should also pass in the argument. such as $obj = new ClassName ($v, $v 2 ...);two: constructors and
This article is an example of how PHP implements sending mail. Share to everyone for your reference, specific as follows:
Mail Send Class
debug = FALSE;
$this->smtp_port = $smtp _port;
$this->relay_host = $relay _host; $this->time_out = 3
Under the Apache Integration fastcgi mode operation of the PHP-FPM, it seems that little online materials, even the English version of the material is less. As long as it is php-fpm, basically with Nginx collocation. Check a large number of relevant
1.?? Operator (NULL merge operator)put this in the first place because I think it's very useful. Usage:
$a = $_get[' A ']?? 1;
It is equivalent to:
We know that ternary operators can be used in this way:
$a?: 1
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