Date: Sun, 16 Jul 2000 00:55:41 -0400 From: David Banning <David@www3.pacific-pages.com> To: Danny <dannyh@idx.com.au> Cc: questions@freebsd.org Subject: Re: newbie of php problem - code shows no output Message-ID: <3971404D.55618AF8@www3.pacific-pages.com> References: <Pine.LNX.3.96.1000714150746.9496A-100000@sloth> <3.0.6.32.20000715151018.007f84f0@192.168.1.194> <3.0.6.32.20000716144530.007c5ba0@192.168.1.194>
next in thread | previous in thread | raw e-mail | index | archive | help
Danny wrote: > > Have you checked your AddType application directive for php3 ? > it looks like is not part of your httpd.conf Sorry I goofed and din't show it, but here it is; <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s </IfModule> # # And for PHP 4.x, use: # <IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> > > I can't prove it 100% because I am now using Windows as the OS instead of > FreeBSD. > > At 11:13 AM 7/15/00 -0400, David Banning wrote: > >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; > > > ><IfModule mod_dir.c> > > <IfModule mod_php3.c> > > <IfModule mod_php4.c> > > DirectoryIndex index.php index.php3 index.html > > </IfModule> > > <IfModule !mod_php4.c> > > DirectoryIndex index.php3 index.html > > </IfModule> > > </IfModule> > > <IfModule !mod_php3.c> > > <IfModule mod_php4.c> > > DirectoryIndex index.php index.html > > </IfModule> > > <IfModule !mod_php4.c> > > DirectoryIndex index.html > > </IfModule> > > </IfModule> > ></IfModule> > > > >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: > >> >> <html> > >> >> <head><title>Example</title> > >> >> <body> > >> >> <?php phpinfo() ?> > >> >> > >> >> </body> > >> >> </html> > >> >> > >> >> 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; > >> >> > > >> >> > <html> > >> >> > > >> >> > <body> > >> >> > > >> >> > <?php > >> >> > > >> >> > $myvar = "Hello World"; > >> >> > echo $myvar; > >> >> > > >> >> > ?> > >> >> > > >> >> > </body> > >> >> > > >> >> > </html> > >> >> > > >> >> > > >> >> > 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." > > -- Coincidences are spiritual puns. -- G. K. Chesterton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3971404D.55618AF8>