- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Accessing RMS indexed files from 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
Discussions
Discussions
Forums
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
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
тАО05-14-2007 01:39 AM
тАО05-14-2007 01:39 AM
Accessing RMS indexed files from PHP
If this meant to be the OpenVMS API for PHP, why is there no documentation for it?
What function calls are available that would allow me to open an RMS indexed file in PHP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2007 03:24 AM
тАО05-14-2007 03:24 AM
Re: Accessing RMS indexed files from PHP
not a great help, I know, but have a look at this thread. In particular see Hein's response.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1081795
Regards,
Duncan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2007 03:30 AM
тАО05-14-2007 03:30 AM
Re: Accessing RMS indexed files from PHP
AFAIK, there are no PHP extension calls for accessing indexed files. You might ask HP this question directly.
PHP and most other languages are most commonly coded to communicate with sequential files and with MySQL, ProgreSQL or other similar database packages. Not RMS.
There are extensions for some languages that allow access. Python, Perl and DCL do have access to RMS indexed files. Haven't checked Ruby. There does not appear, however, to be an extension available for PHP for this purpose.
The usual database interface for most languages would likely involve acquiring and configuring an ODBC connector for RMS. These products do (did?) exist. Alternatively, rolling your own PHP interface for RMS indexed files, or convincing an outside organization to provide the interface to you, or convincing HP to extend the existing php_openvms module.
Not what you want to hear, I expect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2007 08:14 PM
тАО05-14-2007 08:14 PM
Re: Accessing RMS indexed files from PHP
I'm still left with using Attunity Connect ODBC drivers, which will allow me to read using the indexes, or scanning the whole file and breaking it up into records with PHP.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2007 08:28 PM
тАО05-14-2007 08:28 PM
Re: Accessing RMS indexed files from PHP
Retrieving all the records is what I have resorted to.
FYI: open the file for binary read access;
$fp=fopen("file.idx","rb");
then each record can be read;
$record = fgets($fp,396);
the file I'm accessing is fixed length 396 byte records and has a single key. There are also binary 2 and binary 4 numbers in each record which I would have to write code for.