Jump to content

how to recompile PHP with MySQL support??


SZero

Recommended Posts

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...

Link to comment
Share on other sites

"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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.