I am new to PHP and am using phpstrom phpstudy
The index method of the index controller can be accessed
--- -The url is: www.demo.coml
index controller's test1 method. Access prompt: No input file specified.
----The url is: www. demo.coml/test1
----The url is: www.demo.coml/index/test1
I have tried both of the above urls
When accessing the get method under the user controller under the admin module, the following message appears: No input file specified.
-- --url is: www.demo.com/admin/user/get
I just started to learn php, could you please tell me what is the problem in this situation?
Uniform reply
Thank you for your enthusiastic reply
After the boss’s advice, the problem was solved
The processing method is as follows:
.htaccess file Change to:
Options FollowSymLinks -IndexesRewriteEngine OnRewriteCond %{HTTP:Authorization} .RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} ! -fRewriteRule ^ index.php [L]
Problem Solving
It may be a pseudo-static problem. If there is no configuration, add index.php after the domain name
##www.demo.com/index.php/admin/user/getIt’s usually a pseudo-static problem. Take a look at the configuration of the .htaccess file
Not Baidu Big Brother