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@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_....@xxxxxxxxx> wrote in messagenews:45bbbbd4$0$24511$4c368faf@xxxxxxxxxxxxxxxxx



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

.



Relevant Pages

  • Re: [PHP] Question before upgrading to 5
    ... anyway I see you did do a dual apache setup, cool, and got it working properly. ... but it sure is a cool trick if you really need to run php4 sites and php5 sites on one production ... install of apache would allow you to do. ... php in so far as you can also specify a custom prefix to have ...
    (php.general)
  • Re: PHP Tutorials
    ... >> In this tutorial we assume that your server has activated support for PHP ... install a web server locally (not just Apache). ...
    (comp.lang.php)
  • Re: Two newbie questions
    ... Apache to install OK but when I then tried to install PHP ... The packages mean it generally takes less skill and effort to install - ...
    (comp.lang.php)
  • Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
    ... I run from apache for my family website. ... some of the nice new features that I hear about with Fedora Core 5. ... don't work anymore would be a real problem. ... Format and install fresh would be a real nice way to go and I ...
    (comp.os.linux)
  • Need Help with Adding mod_ssl to Apache
    ... Solaris 9 system and I am using the relevant version of mod_ssl. ... rather than to install the web server from another source. ... Well, first of all, why are you using the Sun Freeware apache? ...
    (comp.unix.solaris)