<?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 Paramater passing - PHP in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029692#M35499</link>
    <description>Gents,&lt;BR /&gt;&lt;BR /&gt;Further to my last thread in which I got PHP to work at DCL level, I now need to know how to pass paramaters to a PHP script called from DCL. I assume this can be done but can't find any references either on the web or in the manual. &lt;BR /&gt;&lt;BR /&gt;Thanks for any hints&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt; PS. for anyone interested, I am experimenting with the FPDF package to create PDFs from text files. With some interesting anomolies, it seems to work well and I can recommend it (so far!)&lt;BR /&gt;&lt;BR /&gt;PB</description>
    <pubDate>Wed, 21 Feb 2007 10:13:25 GMT</pubDate>
    <dc:creator>Paul Beaudoin</dc:creator>
    <dc:date>2007-02-21T10:13:25Z</dc:date>
    <item>
      <title>Paramater passing - PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029692#M35499</link>
      <description>Gents,&lt;BR /&gt;&lt;BR /&gt;Further to my last thread in which I got PHP to work at DCL level, I now need to know how to pass paramaters to a PHP script called from DCL. I assume this can be done but can't find any references either on the web or in the manual. &lt;BR /&gt;&lt;BR /&gt;Thanks for any hints&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt; PS. for anyone interested, I am experimenting with the FPDF package to create PDFs from text files. With some interesting anomolies, it seems to work well and I can recommend it (so far!)&lt;BR /&gt;&lt;BR /&gt;PB</description>
      <pubDate>Wed, 21 Feb 2007 10:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029692#M35499</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-21T10:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Paramater passing - PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029693#M35500</link>
      <description>Somewhere on this forum I posted txt2pdf that I corrected to show larger files too (e.g. 300 char/line listings we like to show on the screen).&lt;BR /&gt;&lt;BR /&gt;I also saw a2html that converts normal listings with cobol style tables to html with tables (that you can move to XL with the right mouse button).&lt;BR /&gt;&lt;BR /&gt;Fwiw&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 21 Feb 2007 10:16:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029693#M35500</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-02-21T10:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Paramater passing - PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029694#M35501</link>
      <description>Paul, this is documented at &lt;A href="http://uk2.php.net/manual/en/features.commandline.php" target="_blank"&gt;http://uk2.php.net/manual/en/features.commandline.php&lt;/A&gt; (including some useful examples) :-&lt;BR /&gt;&lt;BR /&gt;"Like every shell application, the PHP binary accepts a number of arguments but your PHP script can also receive arguments. The number of arguments which can be passed to your script is not limited by PHP (the shell has a certain size limit in the number of characters which can be passed; usually you won't hit this limit). The arguments passed to your script are available in the global array $argv. The zero index always contains the script name (which is - in case the PHP code is coming from either standard input or from the command line switch -r). The second registered global variable is $argc which contains the number of elements in the $argv array (not the number of arguments passed to the script)."&lt;BR /&gt;&lt;BR /&gt;Rob.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 11:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029694#M35501</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2007-02-21T11:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Paramater passing - PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029695#M35502</link>
      <description>Wim&lt;BR /&gt;&lt;BR /&gt;Ummm... wow... that (at first attempt!) seems to do the trick. 20 out of 10!&lt;BR /&gt;&lt;BR /&gt;Thanks muchly&lt;BR /&gt;&lt;BR /&gt;(Though for general interest I'd still like to know how to pass the params so I don't have to ask again in another contect)&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 11:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029695#M35502</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-21T11:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Paramater passing - PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029696#M35503</link>
      <description>Robert,&lt;BR /&gt;I'm sorry - I missed your message earlier- it is entirely correct as I since discovered. Using this call:&lt;BR /&gt;php test_param.php P1=1 P2=2 P3=3&lt;BR /&gt;&lt;BR /&gt;Where the file is:&lt;BR /&gt;print_r($argv);&lt;BR /&gt;print_r($argc);&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Produces:&lt;BR /&gt;&lt;BR /&gt;&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;Array&lt;BR /&gt;(&lt;BR /&gt;    [0] =&amp;gt; test_param.php&lt;BR /&gt;    [1] =&amp;gt; p1=1&lt;BR /&gt;    [2] =&amp;gt; p2=2&lt;BR /&gt;    [3] =&amp;gt; p3=3&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;As you can see, arg 0 is the script name followed by args 1-n in the array. I bet if I echoed $argc it would have given the correct result.&lt;BR /&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;Paul&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Feb 2007 05:00:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029696#M35503</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-22T05:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Paramater passing - PHP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029697#M35504</link>
      <description>Thanks to all for the replies - original problem solved and a possibly better solution found! Doesn't get better than that.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Feb 2007 05:50:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/paramater-passing-php/m-p/5029697#M35504</guid>
      <dc:creator>Paul Beaudoin</dc:creator>
      <dc:date>2007-02-22T05:50:48Z</dc:date>
    </item>
  </channel>
</rss>

