"Ajai Khattri" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, Dec 06, 2003 at 07:46:07PM -0000, Shaun wrote: > > > I have installed PHP and Apache but when i try to view a PHP file i.e. > > http://127.0.0.1/hello.php i get a dialog box asking me if i want to open or > > save the file? > > > > Any ideas why this is happening? > > Assuming, your Apache is configured to load the php module: > > Your Apache is not configured to handle .php files. You need > to add directives in httpd.conf for PHP files. > > See PHP installation docs. > > -- > Aj. > Sys. Admin / Developer
Thanks for your reply, I have added the following lines to the beginning of httpd.conf LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php But am still unable to view php files... Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php