Re: Php - "No input file specified." when i try to run a php script on 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.
.



Relevant Pages

  • Re: Which ISP
    ... (preferably with PHP) ... and access to newsgroups which seems to rule ... unlimited web space with php. ... just a very satisfied customer with 2.7GB web space ...
    (comp.sys.acorn.misc)
  • directory security question
    ... I read an installation procedure that suggested moving several directories out of web space. ... Two of them make sense, but the third directory, houses configuration options in php files. ...
    (comp.lang.php)
  • Re: directory security question
    ... Couple that with the fact that the config files aren't holding anything too risky, and it sounds like keeping the config directory in web space outweighs editing every file that reads them. ... Two of them make sense, but the third directory, houses configuration options in php files. ... You lose the Apache directives that cause it to treat .php files ... "The files are secure if PHP is working" is less secure than "The ...
    (comp.lang.php)
  • Re: directory security question
    ... directories out of web space. ... houses configuration options in php files. ... You lose the Apache directives that cause it to treat .php files ...
    (comp.lang.php)
  • Re: newbie php question
    ... I am assuming you are talking about your local ISP, ... to FTP your php code to your web space and then use touy local web page ...
    (alt.php)