I am running The following on a Windows 7 platform:
Setting Value
PHP Built on: Windows NT EMIL-PC 6.1 build 7600 ((null)) i586
Database Version: 5.1.41
Database Collation: utf8_general_ci
PHP Version: 5.3.1
Web Server: Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
Web Server to PHP interface: apache2handler
Joomla! Version: Joomla! 1.5.15 Stable [ Wojmamni Ama Mamni ] 05-November-2009 04:00 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
with the following code I get a deprecated warning:
$vr_str="";
foreach ($var_hsh as $key => $value )
{
$var_t="
";
$value=ereg_replace ($var_t , "", $value);
$vr_str=$vr_str.$key.$dlmtr.$value."
";
}
I change the sixth line to preg_replace
and I get the foloowing warning:
Warning: preg_replace() [function.preg-replace]: Empty regular expression in
I gather they are trying to replace a newline with nulls????
This is a Joomla component and they are not running the latest PHP version (I assume).
I am just getting back into PHP coding and this has me stumped.