Current location - Quotes Website - Personality signature - What is the difference between common.inc.php signed and unsigned?
What is the difference between common.inc.php signed and unsigned?

The Dreamweaver background login verification code is in the wrong place and cannot be displayed! This is caused by the gd library extension not being loaded. The local test is normal, but the upload does not show up. It is recommended that you find a service provider in Kongzhong and ask if the GD library is activated, and they can activate it for you.

If it is already open but it does not show up, make sure the version you are using is the utf8 version of Dreamweaver, which should be the GBK version. You can try this method, find common.inc.php in the data folder, use a text editor that does not come with Windows, it is recommended to use emeditor, open the file, and then find the lower right corner. If it is signed, save it as unsigned and save inc_safe_config.php in the safe folder. This is how I solved it before.

Reference:/article/5d368D1E3af5973f60c057de.html

Explanation of code basic terms?

Code is a source file written by programmers in a language supported by development tools. It is a set of clear rule systems that represent information in a discrete form by characters, symbols or signal symbols. The principles of code design include unique certainty, standardization and versatility, scalability and stability, easy recognition and memory, striving to be short and consistent in format, and easy to modify, etc. Source code is a branch of code. In a sense, source code is equivalent to code. In modern programming languages, source code can appear in the form of books or tapes, but the most commonly used format is a text file. The typical purpose of this format is to compile a computer program. The ultimate goal of computer source code is to translate human-readable text into binary instructions that the computer can execute. This process is called compilation, which is completed by a compiler.

In computers, code is a set of code specifications used by computer programmers when developing software or programs. This work is called programming. Code in computer terms is called programming and language. There are many programming languages. The more popular operating system programming languages ??include C, Pascal, Perl, Basic, C++, Java, Delphi, and Python. Among the web programming languages, there are the most basic markup language HTML, and the programming languages ??ASP (ActiveServerPage), PHP ( HypertextPreprocessor), JSP (JavaServerPages), CGI (CommonGatewayInterface), ASP.NET, etc., as well as some auxiliary scripting languages, such as CSS (CascadingStyleSheets), XML (ExtensibleMarkupLanguage), VBScript (VisualBasicScript), JavaScript, etc.

How to generate a QR code from a transaction order number?

1. When we choose to use scan QR code to pay, the WeChat sdk package will appear to download first. Select the PHP sdk package to download. After downloading it locally, you will find that it is a tp5 framework, but there is a Common folder missing. Put the downloaded sdk package into it.

Waiting for the call...

2. Set the payment authorization directory and the callback address after successful scanning

3. Payment mode two

4. Implementation code: php

namespaceappindexcontroller;

classIndex

{

publicfunctionindex()

{

require_onceAPP_PATH.'common/WxpayAPI/lib/WxPay.Api.php';

$input=newWxPayUnifiedOrder();

//Set product description

$input->SetBody('Test product');

//Set the order number---the time used here is actually generated by yourself

$input- >SetOut_trade_no(date('YmdHis'));

//Set the order amount (unit: cents)

$input->SetTotal_fee('1');

//Set the asynchronous notification address

$input->SetNotify_url('mon/lib/WxPay.Api.php's strict validation true is changed to false

$code_url=$ result;

$img='img src=/example/qrcode.php?data='.urlencode($code_url).'/>';

echo$img;< /p>

}

} >

5. Please note that the callback address in the asynchronous processing of WeChat payment must not be your authorized address, which is used to process the asynchronous request of WeChat payment. Code, Notify/index.php: php

namespaceappindexcontroller;

classNotify

{

publicfunctionindex()

{

require_onceAPP_PATH.'common/WxpayAPI/lib/WxPay.Api.php';

$msg='';

WxPayApi::notify( function($result){

//Signature verification passed

//Query the order number, if it does not exist, return;

//If the order has been exists, and the order has been processed, return;

//If the order has not been processed, process the order

},$msg);

}< /p>

} >

Note: If you use WxPay.Api.php to perform signature verification on indx.php during asynchronous verification, you will not be able to access this method.

What are the naming rules for tp6?

The correct naming convention of ThinkPHP6 is as follows

Directories and files

1. Use lowercase + underline for directories: admin_manage

2. Class library , function files are uniformly suffixed with .php: common.php

3. The file names of classes are defined in namespaces, and the path of the namespace is consistent with the path of the class library file, which is automatically loaded. Mechanism requirements

4. Class (including interfaces and traits) files are named in camel case (the first letter is capitalized), and other files are named in lowercase + underline: user_email

5. Class name ( Including interfaces and Traits) and class file names are consistent, and the camel case naming method is uniformly used: StaffController.php

Function, class, and attribute naming

1, and the class naming uses the camel case method ( The first letter is capitalized). By default, no suffix is ??required, for example: User, UserType

2. Functions are named using lowercase letters and underscores (starting with lowercase letters), for example: get_client_ip

3. Methods are named using camel case (the first letter is lowercase), for example: getUserName

4. Attributes are named using camel case (the first letter is lowercase), for example: tableName, instance

5. Special case: functions or methods starting with double underscore __ are used as magic methods, for example: __call and __autoload

Constants and configurations

1. Constants are in capital letters and underlined Name, for example: APP_PATH

2. Configuration parameters are named with lowercase letters and underscores, for example: url_route_on and url_convert

3. Environment variable definitions are named with uppercase letters and underscores, for example: APP_DEBUG

Data tables and fields

Data tables and fields are named in lowercase and underlined, and be careful not to start the field name with an underscore