After destoon is upgraded, the frontend and backend become blank.Generally, the file write permission is incorrect.Most of them are cache or file. If you do not consider security issues during the test, you can set all files as writable.
Therefore,
The result I want is nothing more than removing index. php from the URL path.
First, configure. htaccess
RewriteEngine onRewriteCond % {REQUEST_FILENAME }! -DRewriteCond % {REQUEST_FILENAME }! -FRewriteRule ^ (. *) $ index. php/$1 [QSA, PT, L]
There are many functions that intercept strings in php, and php functions can also be used directly in thinkphp. This article will give you a brief introduction to the specific usage of intercept strings in the thinkPHP template, hope to help you.
1. Functions of the C methodA. Load the configuration of the Setting user and save it in the static variable $ _ config in a C function.
B. Read user configuration (read from $ _ congig)
2. Demand Analysis:
1. Set Variables
1. Two-dimensional
You can modify the php. ini file:
1. Modify
Copy codeThe Code is as follows:Session. save_hander = memcache;Session. save_path = "tcp: // host: Port Number"; // For example, session. save_path = "tcp: // 127.0.0.1: 11211 ";
2. The value of the
I. Introduction to Functions1. This function has four parameters. Generally, the first two parameters are used. For specific parameters, see the manual.
2. The first parameter is a string in json format, and the second parameter is a boolean value (
Using system commands is a dangerous operation, especially when you try to use remote data to construct the command to be executed. If contaminated data is used, the command injection vulnerability is generated.Exec () is a function used to execute
Since php 4.1.0, the preferred method for getting external variables is to use the hyperglobal variables mentioned below. Prior to this, people were either dependent on register_globals or long pre-defined PHP array ($ HTTP _ * _ VARS ). From PHP 5.0
1. PrefacePaging display is a very common method for browsing and displaying large amounts of data. It is one of the most common events in web programming. For veterans of web programming, writing such code is as natural as breathing, but for
There is no difference in itself, habits, but sometimes it involves the operator priority problem, the results will be different, record.For example:Copy codeThe Code is as follows:$ P = 6 or 0;Var_dump ($ p); // int (6)$ P = 6 | 0;Var_dump ($ p); //
Save the following code as uploads. phpCopy codeThe Code is as follows: simple File Upload Select a file: Function file_list ($ dir, $ pattern = ""){$ Arr = array ();$ Dir_handle = opendir ($ dir );If ($ dir_handle ){While ($ file = readdir ($
Principle
Generally, there are two ways to export doc FILES. One is to use com and install it on the server as an extension library of php, and then create a com and call its method. The server that has installed the office can call a name called
You can use the table () method or join method for join queries (that is, multi-table joint queries) in ThinkPHP. The following example is used:
1,Native QueryExample:
$ Model = new Model (); $ SQL = 'select. id,. title, B. content from think_test1
If ThinkPHP's string truncation function cannot display ellipsis, the solution is as follows:Open the Common/extend. php page and modify the msubstr function as follows:
function msubstr($str, $start=0, $length, $charset="utf-8", $suffix=true){
18. fleet activities (FlyingFleetHandler. php)
In the previous article, we have initially studied the source code of the fleet activity and mentioned the triggering of the fleet activity. Now I will further analyze the Xnova fleet activities, which
ThinkPHP session cross-domain issues many developers have encountered!In fact, whether it is ThinkPHP or php, you need to set session. cookie_domain when solving session cross-domain problems.In ThinkPHP, You need to modify the configuration file
There are many methods to call session data in the ThinkPHP framework template, which can be used flexibly as needed. The following are common methods:1. Call {$ Think. session} in the template to obtain the session;2. Write php Code directly on the
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