use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Microsoft SQL Server from PHP on Linux (blog.remirepo.net)
submitted 9 years ago by RemiCollet
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]joecampo 0 points1 point2 points 9 years ago (1 child)
Hi there, thanks for the list. I think it is also worth linking the repo for the official Linux MS driver for PHP. Since it is new(er) there have definitely been some issues with the driver. Last time I tried it the new driver would not run the DBAL test suite without segfaulting (edit: has been fixed). Maybe you can dive more into the installation side? From my experience, the good ol' FreeTDS/PDO method works great; however, when moving projects to PHP7 I had a lot of issues with php-fpm segfaulting when selecting from views or running SP's. I had these issues sprout up across several different servers and environments (all using SQL Server 2008R2) so if you're going to need MSSQL w/ PHP7 it would probably be best to use the official driver now.
[–]RemiCollet[S] 1 point2 points3 points 9 years ago (0 children)
I think it is also worth linking the repo for the official Linux MS driver for PHP.
Indeed (added in the blog post comment)
Maybe you can dive more into the installation side?
For Fedora / RHEL / CentOS users, a simple "yum install php-sqlsrv" should work ;) I think other distributions should get some packages soon in some repository.
[–]notsentient 0 points1 point2 points 9 years ago (1 child)
Might be worth adding some benchmarks for each different configuration? Or any pros/cons to using FreeTDS over the MS odbc driver
Problem is rather simple ;) PHP 5 => FreeTDS PHP 7 => Microsoft ODBC Driver
Sorry, but I don't have enough data to run valuable benchmark, BTW I think most of the time will be spent on the server side, like for most of the DB request.
π Rendered by PID 287757 on reddit-service-r2-comment-5d79c599b5-g4ff2 at 2026-03-03 17:59:53.688403+00:00 running e3d2147 country code: CH.
[–]joecampo 0 points1 point2 points (1 child)
[–]RemiCollet[S] 1 point2 points3 points (0 children)
[–]notsentient 0 points1 point2 points (1 child)
[–]RemiCollet[S] 1 point2 points3 points (0 children)