From fsanta@arrakis.es Tue Mar 26 16:26:23 2002 From: steve To: users@lists.opensuse.org Subject: how to test php script in 7.3 Date: Tue, 26 Mar 2002 18:34:35 +0100 Message-ID: <200203261628.g2QGSh520957@partagas.dragonet.es> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3731559472061236391==" --===============3731559472061236391== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi When I check a php script all I get is a listing of the script. I have the php stuff installed from 7.3 and tried it in the /usr/local/httpd/htdocs as localhost but still only text. Thanks, Steve. --===============3731559472061236391==-- From jpjesiva@ramapo.edu Tue Mar 26 16:41:27 2002 From: Jelena Pjesivac To: users@lists.opensuse.org Subject: Re: [SLE] how to test php script in 7.3 Date: Tue, 26 Mar 2002 11:41:55 -0500 Message-ID: In-Reply-To: <200203261628.g2QGSh520957@partagas.dragonet.es> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4475936096828917533==" --===============4475936096828917533== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, make sure that apache is recognizing the extension. in httpd.conf you should have something like: AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps AddType application/x-httpd-php3 .phtml # # And for PHP 4.x, use: # AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps If you don't have those lines, add them. restart apache and it should work On Tue, 26 Mar 2002, steve wrote: > Hi > > When I check a php script all I get is a listing of the script. I have the > php stuff installed from 7.3 and tried it in the /usr/local/httpd/htdocs as > localhost but still only text. > > Thanks, Steve. > > -- > To unsubscribe send e-mail to suse-linux-e-unsubscribe(a)suse.com > For additional commands send e-mail to suse-linux-e-help(a)suse.com > Also check the archives at http://lists.suse.com > > -- Jelena Pjesivac - Pjesa CCIS http://orion.ramapo.edu/~jpjesiva --===============4475936096828917533==-- From fsanta@arrakis.es Tue Mar 26 20:49:48 2002 From: steve To: users@lists.opensuse.org Subject: Re: [SLE] how to test php script in 7.3 Date: Tue, 26 Mar 2002 22:58:46 +0100 Message-ID: <200203262052.g2QKq6W23258@partagas.dragonet.es> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3744872013325939303==" --===============3744872013325939303== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi. Getting really close now! OK this works: PHP Test   

But this gives 'Parse error in line 2'    Insert Link

Add Link

What is going wrong? What is the parse error on line 2 here? The databse exists and I can query it as user clara no problem on localhost. Changing clara to clara(a)localhost retains the same error. What are we missing! Love Clara x x x On Tuesday 26 March 2002 17:41, you wrote: > Hi, > make sure that apache is recognizing the extension. > in httpd.conf you should have something like: > > AddType application/x-httpd-php3 .php3 > AddType application/x-httpd-php3-source .phps > AddType application/x-httpd-php3 .phtml > > # > # And for PHP 4.x, use: > # > > AddType application/x-httpd-php .php > AddType application/x-httpd-php .php4 > AddType application/x-httpd-php-source .phps > > If you don't have those lines, add them. > restart apache > and it should work > > On Tue, 26 Mar 2002, steve wrote: > > Hi > > > > When I check a php script all I get is a listing of the script. I have > > the php stuff installed from 7.3 and tried it in the > > /usr/local/httpd/htdocs as localhost but still only text. > > > > Thanks, Steve. > > > > -- > > To unsubscribe send e-mail to suse-linux-e-unsubscribe(a)suse.com > > For additional commands send e-mail to suse-linux-e-help(a)suse.com > > Also check the archives at http://lists.suse.com --===============3744872013325939303==--