- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- preg_replace not supported in CSWS_PHP0102?
Operating System - OpenVMS
1753522
Members
6838
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО11-13-2003 12:02 AM
тАО11-13-2003 12:02 AM
preg_replace not supported in CSWS_PHP0102?
I took this from the php manuals:
#
# Display the header
#
echo " Testing the preg_replace () function
\n";
$patterns = array ("/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/",
"/^\s*{(\w+)}\s*=/");
$replace = array ("\\3/\\4/\\1\\2", "$\\1 =");
print preg_replace ($patterns, $replace, "{startDate} = 1999-5-27");
?>
when I run it, I get:
Testing the preg_replace () function
Fatal error: Call to undefined function: preg_replace() in /sys_dr/public_html/test.php on line 14
The same happens with other preg functions.
Do I have to load an additional module?
Regards
Dieter
#
# Display the header
#
echo " Testing the preg_replace () function
\n";
$patterns = array ("/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/",
"/^\s*{(\w+)}\s*=/");
$replace = array ("\\3/\\4/\\1\\2", "$\\1 =");
print preg_replace ($patterns, $replace, "{startDate} = 1999-5-27");
?>
when I run it, I get:
Testing the preg_replace () function
Fatal error: Call to undefined function: preg_replace() in /sys_dr/public_html/test.php on line 14
The same happens with other preg functions.
Do I have to load an additional module?
Regards
Dieter
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2003 12:47 AM
тАО11-13-2003 12:47 AM
Re: preg_replace not supported in CSWS_PHP0102?
The docs here:
http://us3.php.net/manual/en/function.preg-replace.php
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.
I think the next step would be to either download the source code from
http://h71000.www7.hp.com/openvms/products/ips/apache/csws_php.html
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.
http://us3.php.net/manual/en/function.preg-replace.php
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.
I think the next step would be to either download the source code from
http://h71000.www7.hp.com/openvms/products/ips/apache/csws_php.html
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2003 07:02 AM
тАО11-13-2003 07:02 AM
Re: preg_replace not supported in CSWS_PHP0102?
The source code helped, thank you:
the extention php_pcre.exe has to be activated in php.ini
Now it works
Thank you
Dieter
the extention php_pcre.exe has to be activated in php.ini
Now it works
Thank you
Dieter
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP