Page 1 of 1
Fatal Error :- on line 338
Posted: Sun May 22, 2005 2:46 pm
by poise
IM useing
xp pro
apache2
php5
mysq 4.1.12
smarty
I have dl this twice, when I run the install package I recieve the following
fatal error: call to undefined function mysql_connect() in
root\htdocs\lib\adodb\drivers\adodb-mysql.inc.php on line 338
I have tried the OLD_PASSWORD reset and tried installing with the Mysql ver 3/4 option. Im not sure whether im missing some file or its a path error, Ive only been useing php/apache/mysql a week so im a real noob.
any help would be appreciated as Im getting dizzy

Re: Fatal Error :- on line 338
Posted: Sun May 22, 2005 7:07 pm
by Ted
How did you install php? What package are you using?
Re: Fatal Error :- on line 338
Posted: Mon May 23, 2005 10:19 am
by poise
the package I have installed is version 5.0.4. which I DL 'ed from php.org. I did a manual install as that was the method recommended by the included install instruction.
I did origannly have mysql ver5 as well, but due to problems I have changed that to ver 4.1.12
Re: Fatal Error :- on line 338
Posted: Mon May 23, 2005 11:55 am
by Ted
It looks like the mysql driver isn't installed, which seems weird, because I'm pretty sure the php.org packages have it by default.
Best thing to do is a make a new php page called phpinfo.php. In there, put the following code:
Then load the page in your browser. Search for mysql. If nothing comes up, then it's not installed for some strange reason or another.
Re: Fatal Error :- on line 338
Posted: Mon May 23, 2005 12:33 pm
by poise
I have used the phpinfo() call, and it works fine,and I have also so used php with no prob following various tutorials in a book I bought. However, after doing some reading at phpnet and mysql, it appears that I have a experimental setup, I went for these packages php5/mysql5/apache2 because of the book I have on php5 web development, so I took my setup from there.
( lol I should know better, than to use the latest releases, especially when its an area thats new to me, but I wanted to follow the exersises in the book without getting errors)
I am going to uninstall it all and start again, this time with stable releases php 4.3.11 / mysql 4.1.12, I may just take apache2 off as well as I have read that some applications have reported errors using it.
Ill get back to you and let you know how I get on after I have re-installed it all.
thx for your time

Re: Fatal Error :- on line 338
Posted: Mon May 23, 2005 11:00 pm
by poise
just an update Wishy, so you know that it wasnt the cms package at fault
ok, Ive reinstalled php/apache/mysql and installed cms, cms installed smoothly.
nice package, off to play

Re: Fatal Error :- on line 338
Posted: Mon May 23, 2005 11:04 pm
by Ted
*whew* That's what I like to hear.
