When calling the controller method, no input file specified. appears.
MRW
MRW 2020-05-16 17:37:57
0
8
1605

QQ截图20200516165844.jpg

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

A.jpg

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?

MRW
MRW

reply all(4)
MRW

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/get

!

It’s usually a pseudo-static problem. Take a look at the configuration of the .htaccess file

小萝卜头

Not Baidu Big Brother企业微信截图_*58****777**5*.png

  • reply Baidu has gone through various attempts I have read all the posts including related issues within the forum, but the problem remains...
    MRW author 2020-05-16 18:16:52
  • reply tp5? Is the php version 7? Reason: The PHP7 version access path will report the error No input file specified. This is because of routing problems. solve: 1: Open the public/.htaccess file; 2: Change the last line of code to :RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
    小萝卜头 author 2020-05-19 14:27:47
  • reply If you are studying, I recommend tpadmin. You can take a look. It is written in the tp5.0 framework.
    小萝卜头 author 2020-05-19 14:28:59
  • reply If not, re-git tp framework code down
    小萝卜头 author 2020-05-19 14:30:07
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template