SZero Posted September 23, 2007 Share Posted September 23, 2007 hi every1 i am having the annoying "Undefined Function" message, anyway i read many threads on how to solve it but here's the problem, when i use phpinfo();, i didn't find the part with MySql info, i searched and found that if it doesn't exist then i need to recompile PHP with MySQL support before starting editing php.ini and that other stuff please please i really need some help on this one thanks guys... Quote Link to comment https://forums.phpfreaks.com/topic/70344-how-to-recompile-php-with-mysql-support/ Share on other sites More sharing options...
wildteen88 Posted September 23, 2007 Share Posted September 23, 2007 "Undefined Variable" notices has nothing to do with mysql? Do you mean "Undefined mysql_connect"? If you do then what OS (Window, Mac, *nix) is PHP running on. If you're on Windows, PHP does not need recompiling. Instead please read this FAQ. If you're on a Mac/*nix then yes you do need to recompile PHP with the --with-mysql="PATH/TO/MYSQL" command when recompiling. Quote Link to comment https://forums.phpfreaks.com/topic/70344-how-to-recompile-php-with-mysql-support/#findComment-353351 Share on other sites More sharing options...
SZero Posted September 23, 2007 Author Share Posted September 23, 2007 yah sorry i meant undefined function mysql_connect my mistake Quote Link to comment https://forums.phpfreaks.com/topic/70344-how-to-recompile-php-with-mysql-support/#findComment-353356 Share on other sites More sharing options...
SZero Posted September 23, 2007 Author Share Posted September 23, 2007 i real it, i just read in another website that it's not gonna work if i don't have mysql info already viewd with phpinfo(); and i have to "recompile PHP with MySQL support" Quote Link to comment https://forums.phpfreaks.com/topic/70344-how-to-recompile-php-with-mysql-support/#findComment-353357 Share on other sites More sharing options...
wildteen88 Posted September 23, 2007 Share Posted September 23, 2007 recompiling is only need when PHP is used on non-Windows based operating system. The PHP package for windows is all pre-compiled - no need to recompile anything on windows. All you have to do is enable the mysql extension within the php.ini. The FAQ I linked to tells you how to enable the mysql extension on windows. if you are not using windows then I can't provide instructions for recompiling, except from what I read form the manual you have to use the --with-mysql="PATH/TO/MYSQL" command when recompiling. Quote Link to comment https://forums.phpfreaks.com/topic/70344-how-to-recompile-php-with-mysql-support/#findComment-353358 Share on other sites More sharing options...
SZero Posted September 23, 2007 Author Share Posted September 23, 2007 ty Quote Link to comment https://forums.phpfreaks.com/topic/70344-how-to-recompile-php-with-mysql-support/#findComment-353369 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.