Page 1 of 1

Call to undefined function

Posted: Sat Nov 01, 2008 2:00 pm
by saman_artorious
Hi
it's a long time that i use mysql and php
i already created a site and have everything fixed

today i tried to access my site via apache but i recieved the following error:
call to undefined function mysql_connect

everything works fine
1)apache is running
2)mysql -u root -p connects to the mysql server and it runs

but what is the problem?????????
besides i tried other php files some of them works fine but some of them still send an error for the specified function used in them such as building graph function?
but everything was running correctly before today???????????!!!!!!!!!!!!!!!!!!!!!!!!!!!!

(today i installed ntfs package to run windows files from my linux but i don't think that the problem is related to it--i am sure somehow- LAMP works fine in my linux)

do you have any idea?

Re: Call to undefined function

Posted: Sat Nov 01, 2008 3:15 pm
by Hannes2k
Hi,
maybe you have not installed php with mysql?

Re: Call to undefined function

Posted: Sat Nov 01, 2008 4:00 pm
by Ziq
Try to open your php.ini file and uncomment this

Code: Select all

 
...
;extension=.....
[b]extension=php_mysql.dll[/b]
;extension=...
...
 
Uncomment = delete ";"

Re: Call to undefined function

Posted: Tue Nov 04, 2008 9:39 am
by saman_artorious
thanks