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

Your name:

Reply:


Posted by Carl Pearson on 01/28/07 14:42

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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация