I've RTFM'd and searched google and Zend and still am having a problem
loading php_mssql.dll.
First, background:
I'm using PHP Version 4.3.10
Apache/2.0.52
MySQL Server 4.1
Windows 2000 Professional OS
I installed Apache successfully, index.html works.
I've successfully downloaded and created a test page with simple php
instructions and that's working.
I've been using MySQL and have a running database.
Now I'm trying to be able to use dbx functions to access MySQL via PHP.
According to the manual, (since I'm using PHP4, not 5) I need to load
php_mssql.dll. I've updated the php.ini to the following:
extension_dir = c:/php/extensions/
and uncommented:
extension=php_m ssql.dll
But got the famous error from Apache:
Unable to load dynamic library 'c:/php/extensions/php_mssql.dll' -
The specified module could not be found
After looking at the php.ini above and seeing:
; Windows: "\path1;\pa th2"
;include_path = ".;c:\php\inclu des"
I switched the forward slashed to backslashes and I get the same error
(showing the backslashes this time) that it could load/find.
I searched Google archives and Zend mailing list archives and some say
to put the extension_dir to just C:\php\ and copying the php_mssql.dll
to that directory. Did both, get the same error, can't find the file in
C:\php...
Some of the archives say that I they've copied the file to the windows
dir (C:\WINNT for me) and some say to the system dir (C:\WINNT\syste m32
for me), and each time still get the error can't load/find.
Any other suggestions would be appreciated.
There is a mention in the manual about loading via dl(). Is this a
consideration?
Thanks for any help :)
Glenn 5 6822
On Sat, 18 Dec 2004 16:59:42 GMT, Glenn <ba******@yahoo .com> wrote: Now I'm trying to be able to use dbx functions to access MySQL via PHP. According to the manual, (since I'm using PHP4, not 5) I need to load php_mssql.dl l. I've updated the php.ini to the following:
php_mssql.dll is for Microsoft SQL Server.
php_mysql.dll is for MySQL. Surely you mean this DLL instead?
--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
Andy Hassall wrote: On Sat, 18 Dec 2004 16:59:42 GMT, Glenn <ba******@yahoo .com> wrote:
Now I'm trying to be able to use dbx functions to access MySQL via PHP. According to the manual, (since I'm using PHP4, not 5) I need to load php_mssql.dll . I've updated the php.ini to the following:
php_mssql.dll is for Microsoft SQL Server. php_mysql.dll is for MySQL. Surely you mean this DLL instead?
But this is PHP4, not 5.. therefore, there is no php_mysql.dll in this
version. From reading the documentation, it's my understanding that
php_mysql.dll is in version 5, not 4. Please correct me if I'm wrong.
Thanks
Glenn
On Sat, 18 Dec 2004 17:43:14 GMT, Glenn <ba******@yahoo .com> wrote: Andy Hassall wrote: On Sat, 18 Dec 2004 16:59:42 GMT, Glenn <ba******@yahoo .com> wrote: Now I'm trying to be able to use dbx functions to access MySQL via PHP. According to the manual, (since I'm using PHP4, not 5) I need to load php_mssql.dl l.
Please post a reference to the bits of the manual that have given you this
impression?
php_mssql.dll is for Microsoft SQL Server. php_mysql.dll is for MySQL. Surely you mean this DLL instead?
But this is PHP4, not 5.. therefore, there is no php_mysql.dll in this version. From reading the documentation, it's my understanding that php_mysql.dl l is in version 5, not 4. Please correct me if I'm wrong.
Yes, you're quite right that there is no php_mysql.dll in the current 4.3
Windows binary distribution, because as the manual and php.ini notes, MySQL
support is compiled directly into this build of PHP, so no additional php_*
extension DLLs are required. It's got MySQL support straight out of the box.
However, php_mssql.dll has always been for Microsoft SQL Server and has
nothing whatsoever to do with MySQL, and without SQL Server client libraries
installed you won't be able to load it.
PHP5 has an additional php_mysqli.dll for the MySQL-improved extension, which
gives access to MySQL 4.1 features, and php_mysql.dll returns as a separate
optionally loadable extension DLL for the "classic" interface.
--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
Andy Hassall wrote: On Sat, 18 Dec 2004 17:43:14 GMT, Glenn <ba******@yahoo .com> wrote:
Andy Hassall wrote:
On Sat, 18 Dec 2004 16:59:42 GMT, Glenn <ba******@yahoo .com> wrote:
Now I'm trying to be able to use dbx functions to access MySQL via PHP. According to the manual, (since I'm using PHP4, not 5) I need to load php_mssql.d ll.
Please post a reference to the bits of the manual that have given you this impression?
php_mssql.dll is for Microsoft SQL Server. php_mysql.dll is for MySQL. Surely you mean this DLL instead?
But this is PHP4, not 5.. therefore, there is no php_mysql.dll in this version. From reading the documentation, it's my understanding that php_mysql.d ll is in version 5, not 4. Please correct me if I'm wrong.
Yes, you're quite right that there is no php_mysql.dll in the current 4.3 Windows binary distribution, because as the manual and php.ini notes, MySQL support is compiled directly into this build of PHP, so no additional php_* extension DLLs are required. It's got MySQL support straight out of the box.
However, php_mssql.dll has always been for Microsoft SQL Server and has nothing whatsoever to do with MySQL, and without SQL Server client libraries installed you won't be able to load it.
PHP5 has an additional php_mysqli.dll for the MySQL-improved extension, which gives access to MySQL 4.1 features, and php_mysql.dll returns as a separate optionally loadable extension DLL for the "classic" interface.
OMG.. in the manual "Microsoft SQL Server" & "MySQL" are right next to
each other, and I can see that the link for "Microsoft SQL Server" has
been clicked, but not for "MySQL"... a thousand pardons! I clicked the
wrong link and was following the instructions for including php_mssql.dll.
So, for my concerns.. I can re-comment out php_mssql.dll and I should be
good to go. Do I still use the dbx commands?
Still curious about the module not loading.. but I guess for me the
point is moot.
Thank you for pointing out my error.
Glenn
On Sat, 18 Dec 2004 19:59:33 GMT, Glenn <ba******@yahoo .com> wrote: On Sat, 18 Dec 2004 17:43:14 GMT, Glenn <ba******@yahoo .com> wrote:
So, for my concerns.. I can re-comment out php_mssql.dll and I should be good to go. Do I still use the dbx commands?
Well, that's up to you. I've never used dbx so can't offer much in the way of
informed comment. I see it's a database abstraction layer; so long as it
transparently emulates placeholders for MySQL then that'd be a good thing.
From looking at the manual, it doesn't appear to. In fact at a glance it
appears to force you to embed variables in literal SQL, even for databases that
support placeholders - so forcing you into the classic cases for SQL injection,
and crippling scalability on databases like Oracle. If this is the case, and
I've not missed something obvious, I'd say this is a particularly useless
abstraction layer.
Personally, I recommend ADOdb. In the end, you should research and find out
which one best suits your own requirements.
Still curious about the module not loading.. but I guess for me the point is moot.
Here's the explanation again... However, php_mssql.dll has always been for Microsoft SQL Server and has nothing whatsoever to do with MySQL, and without SQL Server client libraries installed you won't be able to load it.
--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert Brewer |
last post by:
Playing around with bytecodes some more:
>>> def g(x):
.... if x:
.... y
.... else:
.... z
....
>>> dis.dis(g)
2 0 LOAD_FAST 0 (x)
|
by: Andrew Baker |
last post by:
What is the best way to lock an individual row in the following
scenerio:
--TODO - LOCK THIS ROW
-- Return the next id
SELECT next_id
INTO next_id_out
FROM owner.my_id_table
WHERE app_id = app_id_in;
|
by: Dominic Olivastro |
last post by:
Hi all:
I'm new to this newsgroup, and new to XML.
We receive documents in XML, and I am trying to tear them apart to obtain
information. I decided that, for my purposes, it would be fairly easy to
write a simple XML parser, which it was. But now suddenly I find that some
of the information I need is in the form of a Processing Instruction, and
not tagged in the usual way. So I get information like this:
|
by: Griff |
last post by:
What I'm trying to achieve is to have a title followed by a horizontal
rule on the same line. For example:
Living on Mars ----------------
Living on Mars would be at best
impractical for the following
reasons: blah blah blah
Living on Earth ---------------
Life has evolved on earth for
|
by: Zlatko Matiæ |
last post by:
Hello.
I have finished my MS Access application and now I would like to embedd some
users manual in the aplication.
Is it possible and how to create it ? In which format, by which tools ?
Thanks in advance.
Zlatko
| |
by: Mark |
last post by:
I get the following error (see stacktrace) while loading
an XMLDocument. The document is huge and it has PI's
created from Arbortext's editor. Works fine when I use
MSXML2 to load the Document. Fails only on .NET
XMLDocument.Load().
Document loads on IE, XML Spy etc. without a problem.
The PI's look like these in the document
|
by: adolfo |
last post by:
I am at the very beginning of the DISLIN 9.3 Manual: 1.4 Quickplots
Some quickplots are added to the DISLIN module which are collections
of DISLIN routines for displaying data with one command. For example,
the function ’plot’ displays two-dimensional curves. Example:
from Numeric import *
from dislin import *
x = arange (100, typecode=Float32)
plot (x, sin (x/5))
disfin ()
|
by: chardish |
last post by:
Hello,
I'm trying to build an executable with py2exe, but unfortunately the
version I have is 0.6.6, which has a rather annoying bug that doesn't
let you rename the executable file if you bundle everything in a
single executable. It seems fairly unacceptable to tell our customers
that they can't rename a file we send them.
I hear this problem is fixed in 0.6.8, but unfortunately there's no
standalone installer for py2exe 0.6.8 - the...
|
by: saverio.post |
last post by:
What does this represent?
unsigned int n : 6;
???
Saverio
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |