discuz!5.0 Forum display style PHP code highlighting plugin,
The PHP code syntax coloring, like a comrade PHP can easily see the code.
Also added the HTML code run function.
This plugin was modified on the basis of a previous comrade's discuz!4 PHP
The PHP glob () function returns the file name or directory that matches the specified pattern. So we can use the Glob function to find the file, or we can implement the directory traversal.
Function Description: Array glob (string $pattern [, int $
This article describes the implementation of PHP compression merge JS method. Share to everyone for your reference, specific as follows:
test.php files are as follows:
Require_once (' jsmin.php ');
$files = Glob ("Js/*.js");
$js =
The example of this article is about how to judge the user behavior by debugging the interface parameters of the PHP version micro-communication platform. Share to everyone for your reference, specific as follows:
Micro-credit development, found
This example describes the PHP form and validation. Share to everyone for your reference, specific as follows:
demo1.php
demo2.php
demo3.php
name:
demo4.php
read who asked the chant
Copy Code code as follows:
? Php
PHP Whole station Anti-injection program, need to require_once the document in the public file
Judge the state of MAGIC_QUOTES_GPC
if (@get_magic_quotes_gpc ()) {
$_get = sec ($_get);
$_post = sec ($_post);
Needless to say, you have to find the PHP configuration file php.ini trouble:Open PHP.ini, first find; File uploads;Area, there are several parameters that affect file uploads:File_uploads = on; whether to allow the switch to upload files over HTTP.
Let's look at some basic concepts first.
One, PHP script and dynamic page.
PHP script is a server-side scripting, can be embedded and other methods and HTML files mixed, but also class, function encapsulation, such as the form of templates to the
The way to output static pages in PHP, as I know, has 2 kinds, one is using template technology, the other is using OB series functions. Both methods look the same, but in fact, they are different.
The first: the use of templates。 The current PHP
In the development process, often because the form error and return to the page when the information is missing, in order to support page bounce, can be achieved in two ways.
First, use the header method to set the message header
To assign a value to a variable's pass address
In PHP 3, variables are always assigned values. PHP 4 provides another way to assign a value to a variable: to send an address assignment. Using a pass address assignment, simply appends a (&) symbol
First, the use of related technical keywords: PHP, Apache,
Mod_rewrite (rewritecond,rewriterule) address rewrite,
OB series function buffering
File_put_contents Generate HTML
Second, the process: the user issued a request url?id=x, to determine
First, remove the semicolon in the php.ini file, Extension=php_pdo_mssql.dll Extension=php_pdo_odbc.dll, and the corresponding way to connect MSSQL. Be aware that you want to restart the service for it to take effect.
First, establish the
The idea of the template engine comes from the MVC Model View Controller, which is the model layer, the view layer, and the controller layer.
On the web side, the model layer is the operation of the database; The view layer is the template, which
First, directory structure
Passing values between pages in two or two times
By passing small amounts of data between pages two, you can use get commits, or post submissions, and the differences are not.
1, get submit
Use get commit to pass the
This example for you to share the PHP micro-letter Text message automatically reply code, for your reference, the specific content as follows
1.PHP Sample code DownloadDownload Address 1:http://xiazai.jb51.net/201608/yuanma/phpwx (jb51.net).
This example for you to share the PHP micro-letter speech message Recognition code for your reference, the specific contents are as follows
1. Open speech recognition (closed by default)
2. Speech recognition
Note that after the speech
With the company's business needs, it took two weeks to implement a small payment system, though small spite, all kinds of necessary modules such as account lock, transactional assurance, running water reconciliation are fully realized, the whole
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