Re: PostgreSQL drivers not working?



AnrDaemon wrote:
Greetings, Jerry Stuckle.
In reply to Your message dated Monday, June 9, 2008, 21:57:09,

Looks like too much & duplicating stuff, when you take php.ini into
account.
Seriously... read documentation.
There are absolutely no duplications.
Apache loads sql module, then loads php module that loads the same sql module?
Wrong.
Apache loading shared libraries (MySQL, openSSL, PHP) to make them available
for any modules that need them.
Then Apache calling PHP Apache SAPI module.
It look aroung for php4ts and see it already loaded. "Fine!" though it and
feeding the php5ts with PHPIniDir and it reading the php-<SAPI>.ini file from
there (or default php.ini, if no corresponding SAPI configuration present)
Then it loading MySQL extension, that extension looks for libMySQL.dll and see it
already loaded in application. Same way.

That's how shared libraries work: if you have one loaded, it will be shared
between all modules of your application.

P.S.
Dear Jerry, if I need to move from one library to another, I will include
other .conf file, with different library set. Obviously.
The "truble" you have mentioned is a "normal" problem of poor-minded computer
user, who don't know, how the program he are using works.
LoadFile intended to use it the way i'm ising it.
Sorry if I ruined your day :(


Yep, the trouble is a problem with a poor-minded computer user (such as yourself) who unnecessarily complicates matters by loading the same modules in multiple places.
kk, tell me how to point PHP to specific 3rd party library?


You're so smart. You figure it out. Hint: ensure your environment is set up properly!
But don't push your crap on other people.
PHP, not entire system.
It is not production environment. I have 3 MySQL servers installed, 2 Apache
and 2 PHP installations.

And I'm loading needed modules only once every time i'm loading them.
It is how operating system works. If you don't know anything about base OS
functionality, sorry.



Believe me, I know a hell of a lot more about OS's than you do. And once again, you've proven it.

You have no idea how to properly set up the OS environment to do what you want with out the crap you have.

For the record, I have *production systems* set up with different MySQL
and PHP versions. And they all do it WITHOUT extraneous LoadModule statements in the httpd.conf.

The fact you don't know how to do it properly is no excuse.

That most likely because you're using CGI interface. It is only one way to
have specific libMySQL loaded from the same directory as where executable
resides. (Besides recompilation of everything)


Nope.

And to the "extraneous" - it is documented behaviour and as I said, it is
intended to be used that way.
http://httpd.apache.org/docs/2.2/mod/mod_so.html#loadfile

Nex time, please, if you do not have other arguments, than "I'm right because
I'm old", hold 'em with yourself. They are not related to the truth.

And you still not answered to my two other posts, where you have argued the
same manner. Forgot or lost them? It is one about quoting characters and
expanding "\n" to "\r\n" in PHP under Windows.



No, I haven't forgotten them. I'm just tired of arguing with an idiot.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • Re: PostgreSQL drivers not working?
    ... Apache loads sql module, then loads php module that loads the same sql module? ... Apache loading shared libraries to make them available ... Then it loading MySQL extension, that extension looks for libMySQL.dll and see it ...
    (comp.lang.php)
  • Re: PostgreSQL drivers not working?
    ... Apache loading shared libraries (MySQL, openSSL, PHP) to make them available ... Then it loading MySQL extension, that extension looks for libMySQL.dll and see it ...
    (comp.lang.php)
  • mysql_connect under WAMP
    ... I am running Apache with PHP5 and everything seems to be working OK: example sites that I have built display successfully. ... I am now trying to connect to a mysql database (on a local server but not Localhost) and when I try to connect I get the message ... ... I therefore trawled through httpd.conf and php.ini to see which settings I could adjust. ... Indeed, I am a newcomer to WAMP, so I would be interested to know how PHP handles libraries. ...
    (alt.php)
  • Re: PostgreSQL drivers not working?
    ... Apache loads sql module, then loads php module that loads the same sql module? ... Apache loading shared libraries to make them available ... Then it loading MySQL extension, that extension looks for libMySQL.dll and see it ...
    (comp.lang.php)
  • Re: Extension files not loading
    ... them in the Apache configuration. ... And shared database libraries are for sure used by ... You want to use more than one PHP version? ... For instance, if you want to use MySQL, then the MySQL bin directory should be in the path. ...
    (comp.lang.php)