<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Newbe PHP in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439848#M4340</link>
    <description>Rob,&lt;BR /&gt;&lt;BR /&gt;I'll try it. But he says somewhere that he "just did the porting".&lt;BR /&gt;&lt;BR /&gt;Wim</description>
    <pubDate>Fri, 10 Dec 2004 04:12:13 GMT</pubDate>
    <dc:creator>Wim Van den Wyngaert</dc:creator>
    <dc:date>2004-12-10T04:12:13Z</dc:date>
    <item>
      <title>Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439843#M4335</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I installed WASD + PHP on VMS. Now I would like to access a Sybase database with odbc_connect but I have problems with it.&lt;BR /&gt;&lt;BR /&gt;Where/how do I configure odbc (the dsn) ?&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 09 Dec 2004 06:45:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439843#M4335</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-12-09T06:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439844#M4336</link>
      <description>Hi Wim,&lt;BR /&gt;&lt;BR /&gt;I wouldn't say I'm a PHP expert, but does &lt;A href="http://www.php.net/manual/en/function.odbc-connect.php" target="_blank"&gt;http://www.php.net/manual/en/function.odbc-connect.php&lt;/A&gt; help?&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Thu, 09 Dec 2004 07:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439844#M4336</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2004-12-09T07:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439845#M4337</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;That is the page explaining the connect. The first parameter is the DSN that is looked up in odbc.ini.&lt;BR /&gt;&lt;BR /&gt;1) where do I put odbc.ini and what must be in it ?&lt;BR /&gt;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 ?&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 09 Dec 2004 09:03:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439845#M4337</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-12-09T09:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439846#M4338</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;IIRC (and I'm no ODBC expert either) the DSN connection string should be something along the lines of&lt;BR /&gt;&lt;BR /&gt;"Driver={Sybase SQL Server};Srvr=MyServer;DB=MyDatabase"&lt;BR /&gt;&lt;BR /&gt;See &lt;A href="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" target="_blank"&gt;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&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Thu, 09 Dec 2004 10:18:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439846#M4338</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2004-12-09T10:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439847#M4339</link>
      <description>Wim, I'd try putting the question on the WASD list (info-wasd@vsm.com.au) as well.&lt;BR /&gt;&lt;BR /&gt;Mark Daniel is usually very good at answering queries.&lt;BR /&gt;&lt;BR /&gt;Rob.</description>
      <pubDate>Fri, 10 Dec 2004 03:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439847#M4339</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2004-12-10T03:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439848#M4340</link>
      <description>Rob,&lt;BR /&gt;&lt;BR /&gt;I'll try it. But he says somewhere that he "just did the porting".&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Fri, 10 Dec 2004 04:12:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439848#M4340</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-12-10T04:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439849#M4341</link>
      <description>I would like to repeat the question for mysql : what do I do to use mysql ???&lt;BR /&gt;Do I need to install something extra ?&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 16 Dec 2004 09:37:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439849#M4341</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-12-16T09:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439850#M4342</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;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.  &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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 &lt;A href="http://www.unixodbc.org" target="_blank"&gt;http://www.unixodbc.org&lt;/A&gt; 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.&lt;BR /&gt;&lt;BR /&gt;I've also used unixODBC successfully with FreeTDS, a driver that allows access to both Sybase and MS SQL Server databases.  See &lt;A href="http://www.freetds.org" target="_blank"&gt;http://www.freetds.org&lt;/A&gt; .</description>
      <pubDate>Thu, 16 Dec 2004 14:17:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439850#M4342</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2004-12-16T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439851#M4343</link>
      <description>Craig,&lt;BR /&gt;&lt;BR /&gt;That is how I understand it too.&lt;BR /&gt;&lt;BR /&gt;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 ?)&lt;BR /&gt;&lt;BR /&gt;But until I added extension=php_mysql.exe and&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;So, what did I install/activate : the driver or the driver manager ?&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Fri, 17 Dec 2004 02:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439851#M4343</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-12-17T02:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439852#M4344</link>
      <description>Ah, your original question was about Sybase, but it seems now you are more interested in MySQL.  I'm assuming you are using CSWS_PHP v1.2, which is the first version that includes MySQL support.  See:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/openvms/products/ips/apache/csws_php.html" target="_blank"&gt;http://h71000.www7.hp.com/openvms/products/ips/apache/csws_php.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Does WASD support this or does it provide its own version of PHP?&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us2.php.net/manual/en/ref.mysql.php" target="_blank"&gt;http://us2.php.net/manual/en/ref.mysql.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us2.php.net/manual/en/ref.uodbc.php" target="_blank"&gt;http://us2.php.net/manual/en/ref.uodbc.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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.  &lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/openvms/products/ips/apache/csws_php_relnotes.html" target="_blank"&gt;http://h71000.www7.hp.com/openvms/products/ips/apache/csws_php_relnotes.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Fri, 17 Dec 2004 11:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439852#M4344</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2004-12-17T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439853#M4345</link>
      <description>Craig,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;So, next week I'll give it a try.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Fri, 17 Dec 2004 11:41:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439853#M4345</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-12-17T11:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Newbe PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439854#M4346</link>
      <description>It seems you need the latest Mysql  extension for   Php at &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.pi-net.dyndns.org/anonymous/kits/axp/php_mysql_mysql_413.zip" target="_blank"&gt;http://www.pi-net.dyndns.org/anonymous/kits/axp/php_mysql_mysql_413.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Phpbb is used without problems by the author&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Dec 2004 15:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/newbe-php/m-p/3439854#M4346</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2004-12-20T15:39:20Z</dc:date>
    </item>
  </channel>
</rss>

