Click here to Skip to main content
15,894,324 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Following the procedure on Install and Configure PHP : The Official Microsoft IIS Site[^] step-by-step. After Step 22 where I created
PHP
phpinfo.php
in my C:\Inetpub\wwwroot\ folder. Then I tried to open it on a browser: http://localhost/phpinfo.php[^]. However,the results displayed on the browser is:
C#
No input file specified.
, rather than the PHP information. What could be wrong in my setup? Thanks.
Posted

1 solution

The usual problem is: this function is disabled in PHP configuration, for safety purposes. If you use shared hosting and cannot control it, the usual solution is to do development on your local host where you can install everything.

We cannot solve your problem with "http://localhost/phpinfo.php" because you did not provide any information on what's in your file "phpinfo.php" and if this file even exists. I cannot be sure that you even installed PHP. All you need is to call phpinfo:
PHP: phpinfo - Manual[^].

There is nothing which would possibly need any explanations.

—SA
 
Share this answer
 
Comments
s yu 7-Jan-16 11:58am    
SA: Thanks for your response. Let me try to explain the scenario again and see you you can help.
I created a text document, and save it as c:\inetpub\wwwroot\phpinfo.php. Its content is
?php phpinfo(); ?
w/ enclosed by '< >'
Then I typed http://localhost/phpinfo.php on my browser, but got No input file specified, or (HTTP/1.0 404).
I also tried through my IIS Manager. In my IIS Default Web Site's Content View, I can see phpinfo.php there. Then I right-click the file > Browse. I got the message: "No input file specified."
Sergey Alexandrovich Kryukov 7-Jan-16 12:49pm    
You know everything you need to know. Please go ahead and fix your problem. Check up everything.
—SA
s yu 8-Jan-16 10:20am    
Checked over and tried again. Still got 404 through Fiddle2. Any advisory? Thanks.
Sergey Alexandrovich Kryukov 8-Jan-16 12:03pm    
Your URL and actual page address don't match. You don't have a file where you expect it.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900