<?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: Interactive PHP? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029435#M35494</link>
    <description>Because PHP needs to hook into the HTTP server at such a low level, I don't think it'll run properly at CGI level.&lt;BR /&gt;&lt;BR /&gt;I can't find any documentation that says it supports PHP either, although you could check with Process or Hoff.&lt;BR /&gt;&lt;BR /&gt;To be honest, CSWS (Apache) is so easy to install and set up, I wouldn't even bother with trying to get Purveyor working. The VAMP (VMS-Apache-MySQL-PHP) board at &lt;A href="http://vamp.issinoho.com/" target="_blank"&gt;http://vamp.issinoho.com/&lt;/A&gt; will help you get going if you have any problems.&lt;BR /&gt;&lt;BR /&gt;If you don't fancy Apache, then WASD (&lt;A href="http://wasd.vsm.com.au/)" target="_blank"&gt;http://wasd.vsm.com.au/)&lt;/A&gt; is just as good, and supports all the lastest code sets.&lt;BR /&gt;&lt;BR /&gt;Rob.&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Feb 2007 09:48:44 GMT</pubDate>
    <dc:creator>Robert Atkinson</dc:creator>
    <dc:date>2007-02-21T09:48:44Z</dc:date>
    <item>
      <title>Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029426#M35485</link>
      <description>Gents,&lt;BR /&gt;&lt;BR /&gt;I have been playing with and goten to 'moderately experienced' with PHP when run under CSWS. I now have a requirement to use some of the logic in the PHP routines in other languages (predominatly COBOL). Is there any reasonable way to:&lt;BR /&gt;A) Run PHP interactively from the DCL prompt (i.e. no web server)&lt;BR /&gt;B) Call (or otherwise interface) PHP code to lower level languages?&lt;BR /&gt;&lt;BR /&gt;Many thanks for any hints&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Feb 2007 10:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029426#M35485</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-20T10:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029427#M35486</link>
      <description>I use PHP in WASD (or better, I did some years ago).&lt;BR /&gt;&lt;BR /&gt;I have a symbol php:=$cgi-bin:[000000]php&lt;BR /&gt;and use&lt;BR /&gt;$ php openvms.php&lt;BR /&gt;to execute the php file. This generates output (html) but simply on the screen.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 20 Feb 2007 11:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029427#M35486</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-02-20T11:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029428#M35487</link>
      <description>Hi Wim &lt;BR /&gt;&lt;BR /&gt;I just tried &lt;BR /&gt;&lt;BR /&gt;php:==$disk:[directory-where-php-is]php&lt;BR /&gt;&lt;BR /&gt;You have also to define the logical phpshr&lt;BR /&gt;&lt;BR /&gt;DEFINE phpshr disk:[directory-where-php-is]phpshr&lt;BR /&gt;&lt;BR /&gt;After definig the logical name I can execute php scripts e.g.&lt;BR /&gt;&lt;BR /&gt;$ php search_file.php&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Heinz</description>
      <pubDate>Tue, 20 Feb 2007 11:44:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029428#M35487</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2007-02-20T11:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029429#M35488</link>
      <description>Wim, Heinz,&lt;BR /&gt;&lt;BR /&gt;Thanks for the replies they got me started, however after defining the symbol and logical this happens: (sorry about the formatting)&lt;BR /&gt;&lt;BR /&gt;MGTAS1&amp;gt;php PHP_OPENVMS.PHP;1&lt;BR /&gt;Content-type: text/html&lt;BR /&gt;X-Powered-By: PHP/4.3.2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Warning&lt;/B&gt;:  dl(): Unable to load dynamic library '/php_root/extensions/php_openvms' - no such file or directory in &lt;B&gt;/apache$c&lt;BR /&gt;ommon/php/scripts/php_openvms.php&lt;/B&gt; on line &lt;B&gt;7&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;H1&gt;&lt;CENTER&gt;Testing the OpenVMS extension&lt;/CENTER&gt;&lt;/H1&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Fatal error&lt;/B&gt;:  Call to undefined function:  openvms_cvt_filename() in &lt;B&gt;/apache$common/php/scripts/php_openvms.php&lt;/B&gt; on lin&lt;BR /&gt;e &lt;B&gt;29&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Apparently when run this way, the PHP exe can't find the modules needed to complete the operation. This is consistant when running a number of different scripts. It also can't find other script modules in the same directory (Function libraries) These work fine when run from the web server. Is there further incantation to let PHP.EXE know where these are? - They are there!&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 04:10:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029429#M35488</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-21T04:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029430#M35489</link>
      <description>Paul, you coulod try this in the top of your script as a work-around :-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if (!extension_loaded('php_openvms')) {&lt;BR /&gt;   if (!dl('php_openvms.exe')) {&lt;BR /&gt;       die("Unable to load OpenVMS extension");&lt;BR /&gt;   }&lt;BR /&gt;}&lt;BR /&gt;?&amp;gt;</description>
      <pubDate>Wed, 21 Feb 2007 04:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029430#M35489</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2007-02-21T04:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029431#M35490</link>
      <description>Having said that, the extension should load from PHP.INI.&lt;BR /&gt;&lt;BR /&gt;Check PHP.INI and make sure this line is uncommented :-&lt;BR /&gt;&lt;BR /&gt;'extension=php_openvms.exe'&lt;BR /&gt;&lt;BR /&gt;Rob.</description>
      <pubDate>Wed, 21 Feb 2007 04:32:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029431#M35490</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2007-02-21T04:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029432#M35491</link>
      <description>One last thing, you should have these logicals and files for PHP to operate correctly. From the output you gave, it looks like soemthing's not quite right with your installation :-&lt;BR /&gt;&lt;BR /&gt;GAMMA_ROB$$ sh log *php*&lt;BR /&gt;&lt;BR /&gt;(LNM$SYSTEM_TABLE)&lt;BR /&gt;&lt;BR /&gt;  "PHPSHR" = "APACHE$COMMON:[PHP.BIN]PHPSHR.EXE"&lt;BR /&gt;  "PHP_ROOT" = "$1$DGA114:[APACHE.APACHE.PHP.]"&lt;BR /&gt;&lt;BR /&gt;(LNM$SYSCLUSTER_TABLE)&lt;BR /&gt;&lt;BR /&gt;(DECW$LOGICAL_NAMES)&lt;BR /&gt;GAMMA_ROB$$ &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;GAMMA_ROB$$ dir php_root:[extensions]&lt;BR /&gt;&lt;BR /&gt;Directory PHP_ROOT:[EXTENSIONS]&lt;BR /&gt;&lt;BR /&gt;PHP_BCMATH.EXE;1                     72/105      16-SEP-2005 10:08:24.24  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_BZ2.EXE;1                       226/245      16-SEP-2005 10:08:29.60  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_CALENDAR.EXE;1                   56/70       16-SEP-2005 10:08:44.20  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_CTYPE.EXE;1                      26/35       16-SEP-2005 10:08:49.65  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_DBA.EXE;1                       159/175      16-SEP-2005 10:09:26.27  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_EXIF.EXE;1                      101/105      16-SEP-2005 10:09:36.55  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_FTP.EXE;1                      1742/1750     16-SEP-2005 10:09:55.84  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_GD.EXE;1                        528/560      16-SEP-2005 10:11:20.29  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_ICONV.EXE;1                      19/35       16-SEP-2005 10:11:24.99  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_LDAP.EXE;1                       83/105      16-SEP-2005 10:11:35.62  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_MHASH.EXE;1                     285/315      16-SEP-2005 10:11:40.23  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_MYSQL.EXE;1                     362/385      16-SEP-2005 10:13:45.57  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_OCI8.EXE;1                      184/210      16-SEP-2005 10:14:00.93  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_ODBC.EXE;1                      156/175      16-SEP-2005 10:14:18.37  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_OPENSSL.EXE;1                  2347/2380     16-SEP-2005 10:14:33.86  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_OPENVMS.EXE;1                   109/140      16-SEP-2005 10:14:44.95  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_ORACLE.EXE;1                     76/105      16-SEP-2005 10:14:53.21  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_PCRE.EXE;1                      207/210      16-SEP-2005 10:15:23.14  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_POSIX.EXE;1                      36/70       16-SEP-2005 10:15:30.89  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_SESSION.EXE;1                    99/105      16-SEP-2005 10:15:50.03  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_SOCKETS.EXE;1                    98/105      16-SEP-2005 10:16:02.90  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_XML.EXE;1                       362/385      16-SEP-2005 10:16:41.70  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_ZIP.EXE;1                       112/140      16-SEP-2005 10:16:46.55  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;PHP_ZLIB.EXE;1                      201/210      16-SEP-2005 10:17:00.87  [AP_HTTPD,APACHE$WWW  (RWED,RWED,RE,RE)&lt;BR /&gt;&lt;BR /&gt;Total of 24 files, 7646/8120 blocks.&lt;BR /&gt;GAMMA_ROB$$ &lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 04:36:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029432#M35491</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2007-02-21T04:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029433#M35492</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;Thanks for your (numerous!) replies. It was the last one that worked. The PHP_ROOT logical seems to let PHP.EXE know where everything is.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 05:20:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029433#M35492</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-21T05:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029434#M35493</link>
      <description>Our CSWS config has a file &lt;BR /&gt;APACHE$COMMON:[000000]PHP_SETUP.COM. I ran it at the DCL prompt and was then able to run PHP, here is what I tried:&lt;BR /&gt;$ @APACHE$COMMON:[000000]PHP_SETUP&lt;BR /&gt;$ php&lt;BR /&gt;echo test&lt;BR /&gt; Exit&lt;BR /&gt;Content-type: text/html&lt;BR /&gt;X-Powered-By: PHP/4.3.10&lt;BR /&gt;&lt;BR /&gt;echo test&lt;BR /&gt;&lt;BR /&gt;Hope this helps...By the way, this thread has me wondering...would it be possible to have the Purveyor webserver (old but capable system from Process Software) run PHP? We have CSWS and Purveyor installed on the same OpenVMS box using different ports, but Purveyor does not have "LoadModule" type functionality and does not "talk" PHP. I guess I could try and setup PHP in the CGI-BIN directory. Any thoughts on how to configure this would be appriciated...&lt;BR /&gt;&lt;BR /&gt;Ira M.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 09:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029434#M35493</guid>
      <dc:creator>I. Melamed</dc:creator>
      <dc:date>2007-02-21T09:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029435#M35494</link>
      <description>Because PHP needs to hook into the HTTP server at such a low level, I don't think it'll run properly at CGI level.&lt;BR /&gt;&lt;BR /&gt;I can't find any documentation that says it supports PHP either, although you could check with Process or Hoff.&lt;BR /&gt;&lt;BR /&gt;To be honest, CSWS (Apache) is so easy to install and set up, I wouldn't even bother with trying to get Purveyor working. The VAMP (VMS-Apache-MySQL-PHP) board at &lt;A href="http://vamp.issinoho.com/" target="_blank"&gt;http://vamp.issinoho.com/&lt;/A&gt; will help you get going if you have any problems.&lt;BR /&gt;&lt;BR /&gt;If you don't fancy Apache, then WASD (&lt;A href="http://wasd.vsm.com.au/)" target="_blank"&gt;http://wasd.vsm.com.au/)&lt;/A&gt; is just as good, and supports all the lastest code sets.&lt;BR /&gt;&lt;BR /&gt;Rob.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 09:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029435#M35494</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2007-02-21T09:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029436#M35495</link>
      <description>Ira,&lt;BR /&gt;&lt;BR /&gt;Thanks for the aditional info - it is much the same as Robert gave but maybe in a more concise format :-). &lt;BR /&gt;&lt;BR /&gt;I have another related question (paramater passing) but think I should open a new thread.&lt;BR /&gt;&lt;BR /&gt;Thanks again to all&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 10:07:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029436#M35495</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-21T10:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029437#M35496</link>
      <description>Thread closed - thanks to all. Problem solved</description>
      <pubDate>Wed, 21 Feb 2007 10:24:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029437#M35496</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-21T10:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029438#M35497</link>
      <description>There are some open security bugs reported against Purveyor.  That aside, probably the biggest problem with Purveyor here is this:&lt;BR /&gt;&lt;BR /&gt;"Support for Purveyor was discontinued in 1997"&lt;BR /&gt;&lt;BR /&gt;I'd be a little surprised if you could not get php to work via CGI, whether Purveyor or otherwise.  I regularly ran DCL-based CGI underneath Purveyor.  It'll be fairly slow and inefficient, since you'll probably end up using subprocesses and the "text path" into the web server.&lt;BR /&gt;&lt;BR /&gt;As for calling php from another language, the hideously inefficient and massively brute-force solution would be a connection into port 80, or 443 or other local port from the compiled code, and to pass http/https commands back and forth.  But if you have the CPU cycles to spare...&lt;BR /&gt;&lt;BR /&gt;Apache / SWS or WASD would be likely options as the web server, and a LightTPD port (if it doesn't exist) might be an interesting project.&lt;BR /&gt;&lt;BR /&gt;You could jacket the calls and run in a subprocess or server process or such, too.  (That's basically what connecting into port 80 does, and it's a bit more local work to create and maintain.  Using port 80 or 443 is arguably somewhat more flexible and somewhat less work, and probably not really any more inefficient. :-) )&lt;BR /&gt;&lt;BR /&gt;I don't know of a compiled php around (and particularly one that produced VAX, Alpha or Itanium object code for use with OpenVMS), but I haven't made a serious look for a compiler.  That lack would eliminate a more direct call into the php code.  All I've worked with have been interpreters.&lt;BR /&gt;&lt;BR /&gt;Stephen Hoffman&lt;BR /&gt;HoffmanLabs&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 12:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029438#M35497</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-02-21T12:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029439#M35498</link>
      <description>Thanks Hoff for the pointers. I had in mind that, once I established how (and if) PHP could be run from the command line a simple LIB$SPAWN would do the call with logicals /symbols used as appropriate to do any necessary return. I have not got the full details of requirements yet but given the answers, this approach seems OK. Not, as you point out, in the most efficiant manner.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Feb 2007 03:50:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/interactive-php/m-p/5029439#M35498</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-22T03:50:56Z</dc:date>
    </item>
  </channel>
</rss>

