browser downloads PHP files instead of server executing them

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
smash
-


Joined: 10 Oct 2003
Posts: 2

PostPosted: Fri Jul 29, 2005 9:52 pm    Post subject: browser downloads PHP files instead of server executing them Reply with quote

Hi
I upgraded my PHP version from 4.x to 5.1. I followed the tutorials I found on this site and trustabyss.com.

I have mysql 4 installed and was in the process of installing phpmyadmin (according to the tutorial).

I have two problems now.

1: when I go to my phpmyadmin directory in my browser as per the tutorial i get this error:

cannot load mysql extension;
please check PHP configuration
and a link to Documentation.

I've followed the installation of PHP and phpmyadmin to the letter as far as I know.

2:I have various php files on my server. I have a directory of stuff that is just files I've written to practice php coding. When I open these files, for instance one that has the phpinfo() function or othere with simple math functions they all work. When I point the browser at an old phpbb install the browser tries to download the file instead of pricessing it as a script and giving me a PHP error message like when there is no connection to a DB or an undeclared variable.

Anyone want to take a stab at what might be happening here or what i might have done wrong?
Back to top View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Fri Jul 29, 2005 10:43 pm    Post subject: Re: browser downloads PHP files instead of server executing Reply with quote

smash wrote:
Hi
I upgraded my PHP version from 4.x to 5.1. I followed the tutorials I found on this site and trustabyss.com.

I have mysql 4 installed and was in the process of installing phpmyadmin (according to the tutorial).

I have two problems now.

1: when I go to my phpmyadmin directory in my browser as per the tutorial i get this error:

cannot load mysql extension;
please check PHP configuration
and a link to Documentation.

I've followed the installation of PHP and phpmyadmin to the letter as far as I know.

2:I have various php files on my server. I have a directory of stuff that is just files I've written to practice php coding. When I open these files, for instance one that has the phpinfo() function or othere with simple math functions they all work. When I point the browser at an old phpbb install the browser tries to download the file instead of pricessing it as a script and giving me a PHP error message like when there is no connection to a DB or an undeclared variable.

Anyone want to take a stab at what might be happening here or what i might have done wrong?


http://www.aprelium.com/forum/viewtopic.php?t=7321
The second one is related to the first, the 'call to undefined function' is because you dont have that modue enabled which makes the mysql functions.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
smash
-


Joined: 10 Oct 2003
Posts: 2

PostPosted: Sat Jul 30, 2005 1:04 am    Post subject: Reply with quote

thanks.
I went and downloaded the configured package of php5 and installed it. Things seem to be working ok so far. I'll see what happens when I try to install my CMS
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group