Did you give that file a .php extension? And if you did, did you point your browser directly at the file? Apache won't recognize index.php unless you tell it to.
On Tue, 2002-04-16 at 12:00, Roy Pluschke wrote: > On Tue, 16 Apr 2002 08:19:57 -0400 > "Kurc, Marcin A." <[EMAIL PROTECTED]> wrote: > > > why don't you just uncomment the line an restart apache? > > > > Marcin Kurc > > CAD Systems Administrator > > Cooper-Standard Automotive > > > > That was the first thing that I tried but when it didn't work > I thought you may have to use apacheconfig. > Note that I am running woody and also have the following lines > uncommented in httpd.conf > > # And for PHP 4.x, use: > # > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > Plain html files render fine from my public_html directory > but the following doesn't work > > <html> > <head> > <title>Example</title> > </head> > <body> > <?php > echo "Hi, I'm a PHP script!"; > ?> > </body> > </html> > > Is the a way to query apache as to what modules are loaded?? > perhaps a permissions problem or something else which must > be configured ? > > Thanks in advance, > Roy Pluschke <[EMAIL PROTECTED]> > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]