LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FC3 and PHP_MSSQL (https://www.linuxquestions.org/questions/linux-newbie-8/fc3-and-php_mssql-328203/)

Fredstar 05-29-2005 08:14 AM

FC3 and PHP_MSSQL
 
hello,

i have not fooled to much with this yet but i figured i would ask first. Does the installation of PHP on FC3 come with the PHP_MSSQL already installed? i heared that to do this you would have to recompile PHP with the appropriate modules. Or is it as easy as yum or apt-get?

thanks

tuxrules 05-29-2005 10:07 AM

You mean MySQL.
Quote:

Does the installation of PHP on FC3 come with the PHP_MSSQL already installed?
It depends on the installation you opted for. If it is not installed you can easily get it through yum or apt-get. I am almost always on slackware so can't give you much insight into this. One way to check it to if mysql is installed it to try and locate it

$ locate mysql

Secondly, if mysql is installed you can do this to see if PHP recognizes it...

create a file phpinfo.php

edit the file and put the following lines

<?php
phpinfo();
?>

and put this file in to your webserver root directory...open up your browser and point it to the file location...

Hope this helps...
Tux

Fredstar 05-29-2005 10:27 AM

no not mysql.

there is a function module that allows php to connect and execute quires to an Microsoft SQL database server under php.

Its not pre-installed with the windows manual install version. However on my FC3 web server i would like to be able to execute qureys and connect to my MSSQL database via php scripts.

Just a few of the commands it allows are

MSSQL_CONNECT
MSSQL_CLOSE
MSSQL_EXECUTE

to learn more of these you can always read up on them at

www.php.net and search for mssql for a full listing!!

tuxrules 05-29-2005 11:29 AM

Sorry...no idea about that

Tux


All times are GMT -5. The time now is 06:09 PM.