From owner-freebsd-questions Sat Jul 15 8:14:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www3.pacific-pages.com (www3.pacific-pages.com [192.41.48.219]) by hub.freebsd.org (Postfix) with ESMTP id 85F4737B623 for ; Sat, 15 Jul 2000 08:14:10 -0700 (PDT) (envelope-from David@www3.pacific-pages.com) Received: from www3.pacific-pages.com ([216.191.60.106]) by www3.pacific-pages.com (8.8.5) id JAA00933; Sat, 15 Jul 2000 09:13:41 -0600 (MDT) Message-ID: <39707F7F.C765CB89@www3.pacific-pages.com> Date: Sat, 15 Jul 2000 11:13:03 -0400 From: David Banning Reply-To: David@SkytrackerCanada.com Organization: Sky-Tracker of Canada Inc. X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Danny Cc: questions@freebsd.org Subject: Re: newbie of php problem - code shows no output References: <3.0.6.32.20000715151018.007f84f0@192.168.1.194> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems like httpd.conf has been configured for php3 (I uninstalled php4 and installed php3 to see if it would make a difference); LoadModule unique_id_module libexec/apache/mod_unique_id.so #LoadModule php4_module libexec/apache/libphp4.so LoadModule php3_module libexec/apache/libphp3.so and; AddModule mod_so.c AddModule mod_setenvif.c #AddModule mod_php4.c AddModule mod_php3.c and; DirectoryIndex index.php index.php3 index.html DirectoryIndex index.php3 index.html DirectoryIndex index.php index.html DirectoryIndex index.html Is that all that's needed? Danny wrote: > > You have to modify httpd.conf to support the php4 extension. > > And remember to restart your Apache server after you modified httpd.conf > > At 06:19 PM 7/14/00 -0400, you wrote: > >Actually my file is /usr/David/php/test.php so it does have a .php > >extension. > > > >I tried your script, with do difference - it does seem to read the > >script, > >as for a moment in netscape - at the bottom it says "reading file...", > >then "DONE." > > > > > >David Daugherty wrote: > >> > >> Try naming the file with a .php extension. Also try this instead, it tells > >> you a whole lot more: > >> > >> Example > >> > >> > >> > >> > >> > >> > >> David > >> Software Engineer - NetManage > >> Work email: david.daugherty@netmanage.com > >> Home email: doc@wcug.wwu.edu > >> ICQ 21106703 > >> Washington State Resident > >> > >> On Fri, 14 Jul 2000, David Banning wrote: > >> > >> > > >> > > >> > Hi - I am starting out 1st time with PHP4 - just installed. > >> > > >> > My first script called test.php4 gives a blank screen in Netscape; > >> > > >> > > >> > > >> > > >> > > >> > >> > > >> > $myvar = "Hello World"; > >> > echo $myvar; > >> > > >> > ?> > >> > > >> > > >> > > >> > > >> > > >> > > >> > I know the code is there, as when I save the netscape screen to a file, > >> > the code is there. Any idea what could cause this? > >> > > >> > > >> > To Unsubscribe: send mail to majordomo@FreeBSD.org > >> > with "unsubscribe freebsd-questions" in the body of the message > >> > > > > >-- > >"Honesty is the best policy, but insanity is a better defense" > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-questions" in the body of the message > > -- "It was a virgin forest, a place where the Hand of Man had never set foot." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message