<?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: OpenVMS style filename problem with PHP in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909486#M35218</link>
    <description>Note that dga38:[phptest]php_test.dat is a valid unix file name.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
    <pubDate>Mon, 11 Dec 2006 03:58:20 GMT</pubDate>
    <dc:creator>Wim Van den Wyngaert</dc:creator>
    <dc:date>2006-12-11T03:58:20Z</dc:date>
    <item>
      <title>OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909476#M35208</link>
      <description>On a Alpha box running OpenVMS V7.3-2, we have upgraded Apache and PHP to&lt;BR /&gt;CSWS Apache V2.1 and PHP V1.3.&lt;BR /&gt;&lt;BR /&gt;The prior version the system (Apache V1.3 and PHP V1.1) allowed us to use&lt;BR /&gt;OpenVMS style file names in PHP scripts that created files (using the PHP&lt;BR /&gt;"fopen" command).&lt;BR /&gt;&lt;BR /&gt;This PHP statement that worked in the prior version now aborts:&lt;BR /&gt;&lt;BR /&gt;$outfile = fopen ("dga38:[phptest]php_test.dat", "w");&lt;BR /&gt;&lt;BR /&gt;with this error message:&lt;BR /&gt;&lt;BR /&gt;Warning: fopen(dga38:[phptest]php_test.dat): failed to open stream: i/o error&lt;BR /&gt;&lt;BR /&gt;If I change the statement to be more UNIX like and remove the VMS square&lt;BR /&gt;brackets and colons, like this:&lt;BR /&gt;&lt;BR /&gt;$outfile = fopen ("/dga38/phptest/php_test.dat", "w");&lt;BR /&gt;&lt;BR /&gt;the PHP script will now work.&lt;BR /&gt;&lt;BR /&gt;I do not see any setup/configuration docs that address this issue. I have&lt;BR /&gt;added "extension=php_openvms.exe" to our PHP.INI file, but that did not help&lt;BR /&gt;(Does anyone know what that extension does do?).&lt;BR /&gt;&lt;BR /&gt;Has anyone else seen this behavior? Is there a way to configure the system&lt;BR /&gt;to recognize the VMS type file names? Any assistance or suggestions would&lt;BR /&gt;be appreciated...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                                          im&lt;BR /&gt;&lt;BR /&gt;Ira Melamed&lt;BR /&gt;Administrative Computing&lt;BR /&gt;Farmingdale State&lt;BR /&gt;Farmingdale, New York 11735&lt;BR /&gt;Email: melameis@farmingdale.edu&lt;BR /&gt;Phone: (631) 420-2415&lt;BR /&gt;Fax  : (631) 420-2696</description>
      <pubDate>Thu, 07 Dec 2006 10:08:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909476#M35208</guid>
      <dc:creator>I. Melamed</dc:creator>
      <dc:date>2006-12-07T10:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909477#M35209</link>
      <description>Just a wild guess, but the newer C-RTL has many control logicals to setup such behaviour (only UNIX style filenames, only VMS style, a mix...).&lt;BR /&gt;The Openvms extension is demonstrated by the PHP_OPENVMS.PHP script (see installation guide).&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Thu, 07 Dec 2006 12:54:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909477#M35209</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-12-07T12:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909478#M35210</link>
      <description>&lt;BR /&gt;There are indeed lots of logical name to influence behaviour.&lt;BR /&gt;Full list:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/commercial/c/docs/5763pro_003.html#feature_logical_tab" target="_blank"&gt;http://h71000.www7.hp.com/commercial/c/docs/5763pro_003.html#feature_logical_tab&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The next page has explanations.&lt;BR /&gt;&lt;BR /&gt;Check out: SYS$POSIX_ROOT and DECC$FILENAME_UNIX_REPORT and such/&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Dec 2006 13:57:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909478#M35210</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-12-07T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909479#M35211</link>
      <description>A more likely culprit among the feature logicals would be DECC$FILENAME_UNIX_ONLY as that one tells the CRTL not to even bother thinking about VMS-style filename syntax but assume all filenames are in UNIX syntax.  Please note that the new version of PHP could enable this feature at start-up time even if it's not present in the environment in which you are running PHP.  &lt;BR /&gt;&lt;BR /&gt;You could, however, try &lt;BR /&gt;&lt;BR /&gt;$ DEFINE DECC$FILE_NAME_UNIX_ONLY DISABLE&lt;BR /&gt;&lt;BR /&gt;in the environment where your PHP script will run and see if that makes any difference.</description>
      <pubDate>Thu, 07 Dec 2006 15:52:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909479#M35211</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2006-12-07T15:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909480#M35212</link>
      <description>Ira,&lt;BR /&gt;&lt;BR /&gt;Craig wrote&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;You could, however, try &lt;BR /&gt;&lt;BR /&gt;$ DEFINE DECC$FILE_NAME_UNIX_ONLY DISABLE &lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;... and if somehow PHP manages to re-define it, you MIGHT even try to add /NOALIAS to the DEFINE.&lt;BR /&gt;&lt;BR /&gt;As always, no guarantee, but the thing I would also try.&lt;BR /&gt;&lt;BR /&gt;Just my EUR 0,02&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Thu, 07 Dec 2006 15:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909480#M35212</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-12-07T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909481#M35213</link>
      <description>Hey, Ira,&lt;BR /&gt;&lt;BR /&gt;just noted you joined the Forums today, and this is your first question, so:&lt;BR /&gt;&lt;BR /&gt;WELCOME to the VMS forum!&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Thu, 07 Dec 2006 16:00:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909481#M35213</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-12-07T16:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909482#M35214</link>
      <description>If the problem is caused by DECC CRTL feature&lt;BR /&gt;settings (like DECC$FILE_NAME_UNIX_ONLY),&lt;BR /&gt;then I wouldn't hold out much hope for a&lt;BR /&gt;logical name definition (no matter how fancy)&lt;BR /&gt;changing anything.  As can be seen in any of&lt;BR /&gt;the stuff I've worked on in recent years,&lt;BR /&gt;these features may be controlled (enabled or&lt;BR /&gt;disabled) inside a program using the&lt;BR /&gt;decc$feature_set_value() function (and its&lt;BR /&gt;friends).  The CRTL feature logical names set&lt;BR /&gt;default values, but the program can override&lt;BR /&gt;anything external.</description>
      <pubDate>Thu, 07 Dec 2006 22:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909482#M35214</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-12-07T22:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909483#M35215</link>
      <description>Ira,&lt;BR /&gt;  I would personally use the filename translation function OPENVMS_CVT_... :-&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Test the OpenVMS convert filename function&lt;BR /&gt;#&lt;BR /&gt;# openvms_cvt_filename (func_code, file_name) &lt;BR /&gt;#&lt;BR /&gt;# func_codes:&lt;BR /&gt;#       OPENVMS_CVT_VMS_TO_UNIX         Convert vms filespec to unix filespec&lt;BR /&gt;#       OPENVMS_CVT_UNIX_TO_VMS         Convert unix filespec to vms filespec&lt;BR /&gt;#&lt;BR /&gt;$VmsFn = "PHP_ROOT:[SCRIPTS]PHP_OPENVMS.PHP";&lt;BR /&gt;$UnixFn = openvms_cvt_filename (OPENVMS_CVT_VMS_TO_UNIX, $VmsFn);&lt;BR /&gt;if ($UnixFn === FALSE)&lt;BR /&gt;    echo "openvms_cvt_filename (OPENVMS_CVT_VMS_TO_UNIX, \"$VmsFn\") = &lt;B&gt;" . openvms_message (openvms_status ()) . "&lt;/B&gt;&lt;BR /&gt;\n";&lt;BR /&gt;else    &lt;BR /&gt;    echo "openvms_cvt_filename (OPENVMS_CVT_VMS_TO_UNIX, \"$VmsFn\") = $UnixFn&lt;BR /&gt;\n";&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Robert.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Dec 2006 03:48:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909483#M35215</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2006-12-08T03:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909484#M35216</link>
      <description>First, thanks to all those that have taken the time to respond to my post.&lt;BR /&gt;&lt;BR /&gt;I have tried two suggested fixes/work-arounds. I think I am able to get the&lt;BR /&gt;results I need using the second suggestion.&lt;BR /&gt;&lt;BR /&gt;First, I tried setting the DECC$FILE_NAME_UNIX_ONLY logical, but it had no&lt;BR /&gt;positive effect on my .PHP script. I placed the following lines in the&lt;BR /&gt;APACHE$WWW users LOGIN.COM and stop/started the server:&lt;BR /&gt;&lt;BR /&gt;$ SET VERIFY&lt;BR /&gt;$ SHOW LOG DECC*&lt;BR /&gt;$ DEFINE DECC$FILE_NAME_UNIX_ONLY DISABLE&lt;BR /&gt;$ SHOW LOG DECC*&lt;BR /&gt;$ SET NOVERIFY&lt;BR /&gt;&lt;BR /&gt;The following appeared in the various APACHE$SWS*.LOG'S, and seems to me to&lt;BR /&gt;indicate the logical was set as expected:&lt;BR /&gt;&lt;BR /&gt;$ SHOW LOG DECC*&lt;BR /&gt;(LNM$SYSTEM_TABLE)&lt;BR /&gt;  "DECC$CRTLMAP" = "SYS$SHARE:DECC$SHR_EV56"&lt;BR /&gt;  "DECC$SHR" = "SYS$SHARE:DECC$SHR_EV56"&lt;BR /&gt;(DECW$LOGICAL_NAMES)&lt;BR /&gt;&lt;BR /&gt;$ DEFINE DECC$FILE_NAME_UNIX_ONLY DISABLE&lt;BR /&gt;&lt;BR /&gt;$ SHOW LOG DECC*&lt;BR /&gt;(LNM$PROCESS_TABLE)&lt;BR /&gt;  "DECC$FILE_NAME_UNIX_ONLY" = "DISABLE"&lt;BR /&gt;(LNM$SYSTEM_TABLE)&lt;BR /&gt;&lt;BR /&gt;  "DECC$CRTLMAP" = "SYS$SHARE:DECC$SHR_EV56"&lt;BR /&gt;  "DECC$SHR" = "SYS$SHARE:DECC$SHR_EV56"&lt;BR /&gt;&lt;BR /&gt;$ SET NOVERIFY&lt;BR /&gt;&lt;BR /&gt;As I said, my original .PHP scripts still failed.&lt;BR /&gt;&lt;BR /&gt;The second test - ran the sample code to execute the OPENVMS_CVT_VMS_TO_UNIX&lt;BR /&gt;and OPENVMS_CVT_UNIX_TO_VMS functions. The output of this test displayed:&lt;BR /&gt;&lt;BR /&gt;openvms_cvt_filename (OPENVMS_CVT_VMS_TO_UNIX,&lt;BR /&gt;"PHP_ROOT:[SCRIPTS]PHP_OPENVMS.PHP") = /php_root/scripts/php_openvms.php&lt;BR /&gt;&lt;BR /&gt;and translated the VMS file name to a UNIX style file name...and the reverse&lt;BR /&gt;function OPENVMS_CVT_UNIX_TO_VMS worked also.&lt;BR /&gt;&lt;BR /&gt;So I guess I need to re-write my scripts to open/close files using UNIX style&lt;BR /&gt;file names and when I need access to the VMS style name use the function&lt;BR /&gt;OPENVMS_CVT_UNIX_TO_VMS. Maybe something like:&lt;BR /&gt;&lt;BR /&gt;$unix_style = "/dga38/iratest/ira_test.dat";&lt;BR /&gt;$out_file   = fopen ($unix_style, "w");&lt;BR /&gt;$vms_style  = openvms_cvt_filename (OPENVMS_CVT_UNIX_TO_VMS, $unix_style);&lt;BR /&gt;&lt;BR /&gt;It still seems a little odd to me that PHP on VMS can not handle the native&lt;BR /&gt;file format, but at least we understand a little of what is going on and&lt;BR /&gt;can deal with it.&lt;BR /&gt;&lt;BR /&gt;Thanks again to all those who commented...&lt;BR /&gt;&lt;BR /&gt;                               im</description>
      <pubDate>Fri, 08 Dec 2006 16:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909484#M35216</guid>
      <dc:creator>I. Melamed</dc:creator>
      <dc:date>2006-12-08T16:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909485#M35217</link>
      <description>&amp;gt; It still seems a little odd to me that PHP&lt;BR /&gt;&amp;gt; on VMS can not handle the native file&lt;BR /&gt;&amp;gt; format, [...]&lt;BR /&gt;&lt;BR /&gt;It probably shouldn't seem odd.  There's a&lt;BR /&gt;lot of UNIX-oriented code out there which&lt;BR /&gt;expects, for example, to parse a path name by&lt;BR /&gt;finding the slashes.  This sort of code can&lt;BR /&gt;deal with UNIX-format file specifications&lt;BR /&gt;only.  In such cases, telling the VMS C RTL&lt;BR /&gt;to use only UNIX-format file specifications&lt;BR /&gt;is much easier than re-writing a lot of the&lt;BR /&gt;code, especially when that code is subject to&lt;BR /&gt;frequent changes, and when getting&lt;BR /&gt;VMS-specific changes added to the official&lt;BR /&gt;code distribution is difficult.&lt;BR /&gt;&lt;BR /&gt;If PHP had been developed on VMS instead, the&lt;BR /&gt;situation might be different.</description>
      <pubDate>Fri, 08 Dec 2006 16:54:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909485#M35217</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-12-08T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS style filename problem with PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909486#M35218</link>
      <description>Note that dga38:[phptest]php_test.dat is a valid unix file name.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 11 Dec 2006 03:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-style-filename-problem-with-php/m-p/3909486#M35218</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-12-11T03:58:20Z</dc:date>
    </item>
  </channel>
</rss>

