Re: Php - "No input file specified." when i try to run a php script on a web server



You should paste more information... including where php is located,
and where your php file is located, usually, with windows you have to
add php to the %PATH, within the autoexec.bat

Otherwise, you'll need to manually specify it everytime you execute a
file.

try:

php /path/to/your/script.php | php5 /path/to/your/script.php
/usr/bin/php /path/to/your/script.php | /usr/bin/php5 /path/to/your/
script.php

Or if your on windows, you'll need to find where your php directory is
located.

Please specify if your using this "Web based php or CLI", beacause
that sort of error is only created directly from the php preprocessor,
and Apache normally checks if the file exists first, and then handles
execution of the preprocessor and then sends back the results to
Apache, which is then transfered to the client over HTTP..

On Jan 28, 12:08 am, "Eric Layman" <erricson@lays> wrote:
Hi,

Our webhost is setup but when we try to run a php script, we will get a "No
input file specified." instead.

This is the server signature:

Apache/2.0.58 (Unix) mod_ssl/2.0.58 OpenSSL/0.9.7e PHP/5.1.4 Server

How can we rectify this problem?

Thanks

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

.



Relevant Pages

  • Re: PHP running exec() Windows program very slow in comparison to UNIX equivalent program
    ... So, by converting a VB6 DLL into a COM and calling the COM from PHP I am able to work around the speed limitations of swetest.exe, PHP, and Windows. ... I wrote a little program in VB5 that essentially does what this other compiled C Windows program does in just one of the loops that gets executed about 140 times. ... the other thing is how long it takes to to execute the program with those statements from a command prompt. ...
    (alt.php)
  • RE: phpBB Worm
    ... the getpwent function is not supported on Windows. ... it probably depends on the web server ... I looked at the decoded Perl script, ... was invoked by PHP, which should have the Web server's permissions, ...
    (Bugtraq)
  • Re: MS Access im Intranet / Internet
    ... Ich habe nichts gegen Webanwendungen, ... dass in Access als dafuer ... > MS Windows, MS IE. ... PHP oder ASP oder ASP.net ...
    (microsoft.public.de.access)
  • Re: Developing PHP under Windows - Why?
    ... Windows 2000, Apache 2, Microsoft SQL Server, and PHP. ... We went with the Windows route mainly for human resource reason. ... I knew virtually nothing about Linux at the time - and very little about Apache. ...
    (comp.lang.php)
  • Re: Looking for e-commerce recommendations
    ... I believe Miva is a CGI/Pearl type script. ... I'm certain OS Commerce is PHP ... regarding the fp extensions/ windows environment: ... runs surprisingly well on a windows server so it'll be OK. ...
    (microsoft.public.frontpage.programming)