- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Newbe PHP
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 10:45 PM
12-08-2004 10:45 PM
Newbe PHP
I installed WASD + PHP on VMS. Now I would like to access a Sybase database with odbc_connect but I have problems with it.
Where/how do I configure odbc (the dsn) ?
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2004 11:32 PM
12-08-2004 11:32 PM
Re: Newbe PHP
I wouldn't say I'm a PHP expert, but does http://www.php.net/manual/en/function.odbc-connect.php help?
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 01:03 AM
12-09-2004 01:03 AM
Re: Newbe PHP
That is the page explaining the connect. The first parameter is the DSN that is looked up in odbc.ini.
1) where do I put odbc.ini and what must be in it ?
2) I now get "sql state unsup in sqlconnect" while all comments make me believe that it is supported. So, did I do something wrong ? Do I have to link Sybase with php ?
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:18 AM
12-09-2004 02:18 AM
Re: Newbe PHP
IIRC (and I'm no ODBC expert either) the DSN connection string should be something along the lines of
"Driver={Sybase SQL Server};Srvr=MyServer;DB=MyDatabase"
See http://sybooks.sybase.com:80/onlinebooks/group-cnarc/cng1000e/odbc_ref/@ebt-link;pt=58;lang=de?target=%25N%13_624_START_RESTART_N%25#X
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 07:57 PM
12-09-2004 07:57 PM
Re: Newbe PHP
Mark Daniel is usually very good at answering queries.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 08:12 PM
12-09-2004 08:12 PM
Re: Newbe PHP
I'll try it. But he says somewhere that he "just did the porting".
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 01:37 AM
12-16-2004 01:37 AM
Re: Newbe PHP
Do I need to install something extra ?
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 06:17 AM
12-16-2004 06:17 AM
Re: Newbe PHP
If you want to use ODBC as a client, then you need two pieces of client software, specifically an ODBC driver manager and then an ODBC driver specific to each database you want to access. This is true on any platform and has nothing to do with PHP or WASD per se.
Does PHP have its own ODBC driver manager and/or drivers included? If not, you'll need to acquire them and figure out how to build, install, and configure them. There are a number of commercial solutions, such as those from Attunity, OpenLink, and Easysoft. As far as I know all require a proprietary service running on the target server rather than having a database-native driver on the client side.
There are driver managers and native drivers that are both open source and free, but you'll need to build several pieces and figure out how to fit them all together. I've successfully tested the unixODBC driver manager on VMS; download it from http://www.unixodbc.org and give it a try. It comes with drivers for PostgreSQL and MySQL. I'm not sure the MySQL one has been ported yet but it shouldn't be too hard.
I've also used unixODBC successfully with FreeTDS, a driver that allows access to both Sybase and MS SQL Server databases. See http://www.freetds.org .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2004 06:36 PM
12-16-2004 06:36 PM
Re: Newbe PHP
That is how I understand it too.
But in the php.ini there is a note saying "Note that Mysql and ODBC support is now built in, so no dll is needed for it". (in comment too : "Windows Extensions", so, not valid for VMS ?)
But until I added extension=php_mysql.exe and
extension=php_odbc.exe (in php.ini) there was nothing about odbc and php in php_info. Now there is but I still get the same message.
So, what did I install/activate : the driver or the driver manager ?
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2004 03:29 AM
12-17-2004 03:29 AM
Re: Newbe PHP
http://h71000.www7.hp.com/openvms/products/ips/apache/csws_php.html
Does WASD support this or does it provide its own version of PHP?
As far as I can tell, the MySQL extension has nothing to do with ODBC, but is rather a custom interface specific to the MySQL database:
http://us2.php.net/manual/en/ref.mysql.php
There also appear to be Oracle extensions that have nothing to do with ODBC. There is no reason you can't access Oracle or MySQL through ODBC, but it looks like you have a choice.
The ODBC extension is probably neither a driver nor a driver manager, but rather the glue between PHP itself and the driver manager. The PHP documentation is confused and confusing because it refers to both drivers and driver managers as "databases" but see
http://us2.php.net/manual/en/ref.uodbc.php
It looks as though there are several drivers that can be linked in directly, bypassing the driver manager. That would likely give a slight performance advantage at a great loss of flexibility.
I really don't think there's a way to use ODBC without configuring and building PHP with support for a driver manager and/or driver. The good news is that OVMS Engineering appear to have done this already, if you look at the section called "ODBC Extension" in the release notes:
http://h71000.www7.hp.com/openvms/products/ips/apache/csws_php_relnotes.html
The bad news is that the driver manager they are using and for which they provide the example is from the Attunity Connect on platform package. If all you want to do is access local RMS files then you're all set, but I think for any remote databases you have to buy a server license from Attunity.
I would be strongly tempted to point the logical APACHE$ODBC_SHR to a different driver manager (such as unixODBC mentioned previously) and see what happens. I have no idea how WASD is supporting PHP so I don't know how applicable this is to your situation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2004 03:41 AM
12-17-2004 03:41 AM
Re: Newbe PHP
I found the same documents. And I found an expert a few meters from me that explained that MYSQL can also be used directly in PHP without ODBC. So I mixed up things. Thank you for clarifying it.
WASD links with libraries of CSWS-php to do the work (which you don't install but re-use). So I guess it does about the same.
So, next week I'll give it a try.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2004 07:39 AM
12-20-2004 07:39 AM
Re: Newbe PHP
http://www.pi-net.dyndns.org/anonymous/kits/axp/php_mysql_mysql_413.zip
Phpbb is used without problems by the author