Php - "No input file specified." when i try to run a php script on a web server
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
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 [at] 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
Re: Php - "No input file specified." when i try to run a php script on a web server
Wow. Thanks!
But it's hosted on a web hosting company at the moment. How are we going to
find out the details?
We have done our part to develop the scripts and we are ..sort of expecting
the scripts to work. It's fine on all of our development machines.
"d43m0n AT shaw DOT ca" <barryd.it [at] gmail.com> wrote in message
news:1169917420.572504.64570 [at] p10g2000cwp.googlegroups.com...
> 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 [at] 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
>
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Re: Php - "No input file specified." when i try to run a php scripton a web server
Eric Layman wrote:
> Wow. Thanks!
>
> But it's hosted on a web hosting company at the moment. How are we going to
> find out the details?
Put this in a file with a .php extension:
<?php phpinfo(); ?>
Upload it to your server and call it from the browser.
If it doesn't work, there's something wrong with the server's PHP setup
(unlikely though that prospect is if you're on a shared host).
If it does work, your script probably has some hard-coded paths in it
that need to be fixed.
Re: Php - "No input file specified." when i try to run a php script on a web server
Thanks.
The problem is,
It doesn't run any files with php extension. It will say "no input file
specified"
a simple
<?php echo "hello world";?>
doesn't work
"Carl Pearson" <jman_spam_trap_.org [at] gmail.com> wrote in message
news:45bbbbd4$0$24511$4c368faf [at] roadrunner.com...
> Eric Layman wrote:
>> Wow. Thanks!
>>
>> But it's hosted on a web hosting company at the moment. How are we going
>> to find out the details?
>
> Put this in a file with a .php extension:
>
> <?php phpinfo(); ?>
>
> Upload it to your server and call it from the browser.
>
> If it doesn't work, there's something wrong with the server's PHP setup
> (unlikely though that prospect is if you're on a shared host).
>
> If it does work, your script probably has some hard-coded paths in it that
> need to be fixed.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Re: Php - "No input file specified." when i try to run a php script on a web server
Alright, well, youll need to install mod_php in apache, and set the
types and magic mime.
On Jan 28, 12:38 pm, "Eric Layman" <erricson [at] lays> wrote:
> Thanks.
>
> The problem is,
>
> It doesn't run any files with php extension. It will say "no input file
> specified"
>
> a simple
>
> <?php echo "hello world";?>
>
> doesn't work
>
> "Carl Pearson" <jman_spam_trap_.... [at] gmail.com> wrote in messagenews:45bbbbd4$0$24511$4c368faf [at] roadrunner.com...
>
>
>
> > Eric Layman wrote:
> >> Wow. Thanks!
>
> >> But it's hosted on a web hosting company at the moment. How are we going
> >> to find out the details?
>
> > Put this in a file with a .php extension:
>
> > <?php phpinfo(); ?>
>
> > Upload it to your server and call it from the browser.
>
> > If it doesn't work, there's something wrong with the server's PHP setup
> > (unlikely though that prospect is if you're on a shared host).
>
> > If it does work, your script probably has some hard-coded paths in it that
> > need to be fixed. Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com
Re: Php - "No input file specified." when i try to run a php scripton a web server
Eric Layman schrieb:
> Thanks.
>
> The problem is,
>
> It doesn't run any files with php extension. It will say "no input file
> specified"
>
> a simple
>
> <?php echo "hello world";?>
>
> doesn't work
What I have seen, that some hosters require you to set the php file to
be executable.
Maybe this helps.
Regards,
Chris
Re: Php - "No input file specified." when i try to run a php scripton a web server
Eric Layman wrote:
> Thanks.
>
> The problem is,
>
> It doesn't run any files with php extension. It will say "no input file
> specified"
>
> a simple
>
> <?php echo "hello world";?>
>
> doesn't work
OK, one other thing to try before contacting the host.
Edit your .htaccess file (or create one in the root of your web space if
it doesn't already exist) and add this:
AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
If that doesn't work, then Apache's AllowOverride setting for your web
space does not have FileInfo (which allows for user modification of file
types). Nothing you can do about it but contact them.
PHP » alt.php » Php - "No input file specified." when i try to run a php script on a web server