Re: Is there a special directory in which php scripts are to be placed

From: Date: Mon, 11 Sep 2000 15:28:14 +0000
Subject: Re: Is there a special directory in which php scripts are to be placed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16190@lists.php.net to get a copy of this message
PHP is an embedded scripting language. You put it right alongside your HTML -- in the same file in many cases. If you're running PHP as CGI, you probably do need a script alias -- I've never dealt with this issue. But if you're running PHP as a module, then you can put PHP files wherever you want. You get a PHP file in the URL and you get plain HTML back on the client (in most cases). You don't need to set up a script alias for PHP files. Dean. On Mon, 11 Sep 2000, Manas wrote: > Hi, > I am asking this question because when I give a "script alias" for > the php script the server gives 500 Interval Server Error while trying > to execute the script.But when i don't give script alias and try to > execute it in htdocs directory it executes perfectly. When I asked my > colleague, he told me that php scripts are basically html files. > Therefore, the script alias won't work for php scripts. > I want to know if this statement is correct. If not, how do I > initialize a script alias for the php scripts. > Thanks > Manas > > > >

« previous php.general (#16190) next »