You have to run the scripts through a web server like Apache. ---John Holmes...
> -----Original Message----- > From: Warren Massengill [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 1:08 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Form response > > > John, > > If you're seeing PHP source code when you pull up a page, your server is > not > configured correctly. What if you try a basic .php page like echo "Hello > World";, does that work? > > No. Just prints the source code. What is really strange (to me) is that > the > simple form and a more complex form (not shown here) works pefectly. The > forms open, accept input, and when you press submit ... the next script > reverts to source code, just like hello world, phpinfo(), and everything > else. ;--( > > You are running a web server right, not just using File->Open?? --- > > No again, just using the browser in Linux. > > John Holmes... > > > >From: "Cornelia Boenigk" <[EMAIL PROTECTED]> > >Reply-To: "Cornelia Boenigk" <[EMAIL PROTECTED]> > >To: "Warren Massengill" <[EMAIL PROTECTED]> > >Subject: Re: [PHP-DB] Form response > >Date: Fri, 20 Sep 2002 13:31:46 +0200 > > > >Hi Warren > > > >Did you change the php.ini? There must be the line > > > >default_mimetype = "text/html" > > I checked. The line already exists as default_mimetype = "text/html" > . I did find the mod_mime_magic module in Apache (see below for the gory > details) and installed it - to no effect as you might imagine (both Apache > and PHP are configured to accept html,php,etc...) > > > >It seems that the browser doesn't recognize the correct type and > >displays the source. Did you try to display the forms in another > >browser. > > Netscape gave the same result. > > Thanks, > Warren > > > > >Regards > >Conni > > > > > > > > > > > > > LoadModule mime_magic_module modules/mod_mime_magic.so > --------------------------------------------------- > AddModule mod_mime_magic.c > ---------------------------------------------------- > # > # TypesConfig describes where the mime.types file (or equivalent) is > # to be found. > # > <IfModule mod_mime.c> > TypesConfig /etc/mime.types > </IfModule> > --------------------------------------------------- > # > # The mod_mime_magic module allows the server to use various hints from > the > # contents of the file itself to determine its type. The MIMEMagicFile > > <IfModule mod_mime_magic.c> > MIMEMagicFile /usr/share/magic.mime > MIMEMagicFile conf/magic > </IfModule> > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php