![](https://seccdn.libravatar.org/avatar/97521604d5b309189e29d7ce0e20db74.jpg?s=120&d=mm&r=g)
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.
![](https://seccdn.libravatar.org/avatar/32946926b5f57a3e563ba086cf7b1b38.jpg?s=120&d=mm&r=g)
Hi, make sure that apache is recognizing the extension. in httpd.conf you should have something like: <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps AddType application/x-httpd-php3 .phtml </IfModule> # # And for PHP 4.x, use: # <IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps </IfModule> 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@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
-- Jelena Pjesivac - Pjesa CCIS http://orion.ramapo.edu/~jpjesiva
![](https://seccdn.libravatar.org/avatar/97521604d5b309189e29d7ce0e20db74.jpg?s=120&d=mm&r=g)
Hi. Getting really close now! OK this works: <html> <head> <title>PHP Test</title> </head> <body> <H1 align="center"> <?php print("Hello world!"); ?> </H1> </body> </html> But this gives 'Parse error in line 2' <? $usr = "clara"; $pwd = "claudia"; $db = "linksdb"; $host = "localhost"; # connect to database $cid = mysql_connect($host,$usr,$pwd); if (!$cid) { echo("ERROR: " . mysql_error() . "\n"); } ?> <HTML> <HEAD> <TITLE>Insert Link</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <P><FONT SIZE=5><B> Add Link </B> </FONT></P> 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@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: <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps AddType application/x-httpd-php3 .phtml </IfModule> # # And for PHP 4.x, use: # <IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps </IfModule> 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@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
participants (2)
-
Jelena Pjesivac
-
steve