<?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 preg_replace not supported in CSWS_PHP0102? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/preg-replace-not-supported-in-csws-php0102/m-p/3118134#M31062</link>
    <description>I took this from the php manuals:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Display the header&lt;BR /&gt;#&lt;BR /&gt;echo "    Testing the preg_replace () function&lt;BR /&gt;\n";&lt;BR /&gt;&lt;BR /&gt;$patterns = array ("/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/",&lt;BR /&gt;&lt;BR /&gt;                   "/^\s*{(\w+)}\s*=/");&lt;BR /&gt;&lt;BR /&gt;$replace = array ("\\3/\\4/\\1\\2", "$\\1 =");&lt;BR /&gt;&lt;BR /&gt;print preg_replace ($patterns, $replace, "{startDate} = 1999-5-27");&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;when I run it, I get:&lt;BR /&gt;&lt;BR /&gt;Testing the preg_replace () function&lt;BR /&gt;&lt;BR /&gt;Fatal error: Call to undefined function: preg_replace() in /sys_dr/public_html/test.php on line 14&lt;BR /&gt;&lt;BR /&gt;The same happens with other preg functions.&lt;BR /&gt;Do I have to load an additional module?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Dieter&lt;BR /&gt;</description>
    <pubDate>Thu, 13 Nov 2003 08:02:39 GMT</pubDate>
    <dc:creator>Dieter Rossbach</dc:creator>
    <dc:date>2003-11-13T08:02:39Z</dc:date>
    <item>
      <title>preg_replace not supported in CSWS_PHP0102?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/preg-replace-not-supported-in-csws-php0102/m-p/3118134#M31062</link>
      <description>I took this from the php manuals:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Display the header&lt;BR /&gt;#&lt;BR /&gt;echo "    Testing the preg_replace () function&lt;BR /&gt;\n";&lt;BR /&gt;&lt;BR /&gt;$patterns = array ("/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/",&lt;BR /&gt;&lt;BR /&gt;                   "/^\s*{(\w+)}\s*=/");&lt;BR /&gt;&lt;BR /&gt;$replace = array ("\\3/\\4/\\1\\2", "$\\1 =");&lt;BR /&gt;&lt;BR /&gt;print preg_replace ($patterns, $replace, "{startDate} = 1999-5-27");&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;when I run it, I get:&lt;BR /&gt;&lt;BR /&gt;Testing the preg_replace () function&lt;BR /&gt;&lt;BR /&gt;Fatal error: Call to undefined function: preg_replace() in /sys_dr/public_html/test.php on line 14&lt;BR /&gt;&lt;BR /&gt;The same happens with other preg functions.&lt;BR /&gt;Do I have to load an additional module?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Dieter&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Nov 2003 08:02:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/preg-replace-not-supported-in-csws-php0102/m-p/3118134#M31062</guid>
      <dc:creator>Dieter Rossbach</dc:creator>
      <dc:date>2003-11-13T08:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: preg_replace not supported in CSWS_PHP0102?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/preg-replace-not-supported-in-csws-php0102/m-p/3118135#M31063</link>
      <description>The docs here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us3.php.net/manual/en/function.preg-replace.php" target="_blank"&gt;http://us3.php.net/manual/en/function.preg-replace.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;state that preg_replace is present in all versions of PHP 4, and the kit you have claims to be based on 4.1.1.  So it seems to me it should be there.&lt;BR /&gt;&lt;BR /&gt;I think the next step would be to either download the source code from&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;and try to track down how this got omitted from the hp kit, or, if you have a support contract, log a call and get hp support to do that for you.</description>
      <pubDate>Thu, 13 Nov 2003 08:47:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/preg-replace-not-supported-in-csws-php0102/m-p/3118135#M31063</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2003-11-13T08:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: preg_replace not supported in CSWS_PHP0102?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/preg-replace-not-supported-in-csws-php0102/m-p/3118136#M31064</link>
      <description>The source code helped, thank you:&lt;BR /&gt;&lt;BR /&gt;the extention php_pcre.exe has to be activated in php.ini&lt;BR /&gt;&lt;BR /&gt;Now it works&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;Dieter</description>
      <pubDate>Thu, 13 Nov 2003 15:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/preg-replace-not-supported-in-csws-php0102/m-p/3118136#M31064</guid>
      <dc:creator>Dieter Rossbach</dc:creator>
      <dc:date>2003-11-13T15:02:15Z</dc:date>
    </item>
  </channel>
</rss>

