Forum Moderators: coopster

Message Too Old, No Replies

Weird output when testing php code

php mysql

         

backpacker

5:30 am on Nov 10, 2005 (gmt 0)

10+ Year Member



php-5.0.5(from php-4)
apache-2.0.55
mysql-5

I hava been testing <?php $link=mysql_connect()......?> and <?php phpinfo()......?>.Always I get strange behavior of php when test with [localhost...] message let me download these testing php files instead of showing phpinfo() page.

I have already chanched the httpd.conf in /usr/local/apache2/conf/httpd.conf, and added "LoadModule php_module modules/libphp5.so",and "AddType application/x-httpd-php.php".

What wrong with my configurations?
Thanks.

Grapper

12:33 pm on Nov 10, 2005 (gmt 0)

10+ Year Member



check your vhosts.conf and .htacces files to make sure .php extension is setup correctly