PDA

View Full Version : Fatal error: Cannot redeclare money php 4.3.2



ray928
06-22-2003, 12:53 AM
Hi all,

I am using 1.04. european notation,euro.
http://www.belgavastgoed.be/

My isp is migrating to php version php 4.3.2. and now i get the following error .
I am not a php programmer :-(
Any ideas,how to solve this?

TIA

Raymond





Fatal error: Cannot redeclare money_format() in
/data/ispman/domains/belgavastgoed.be/vhosts/www/htdocs/include/common.php on
line 66
./include/common.php:
$config[money_sign] = '€'; // default is dollars, but it could be "£"
for pounds or "€" for euros
./include/common.php:
function money_format ($number)
./include/common.php:
//$output = $config[money_sign].$number; // usa, uk - $123,345
./include/common.php:
$output = "$number $config[money_sign]"; // germany, spain -- 123.456,78
./include/common.php:
// $output = "$config[money_sign] $number"; // honduras -- 123,456.78
./include/main.php:
echo "<td align=\"left\" class=\"row_main\">$money_sign<input type=\"text\"
name=\"$field_name\" value=\"$default_text\" width=\"100\"> .00 </td>";
./include/main.php:
echo "<td align=\"left\" class=\"row_main\">$money_sign<input type=\"text\"
name=\"$field_name\" value=\"$field_value\" width=\"100\"> .00 </td>";
./template/generic/style.php:
//$money_amount = international_num_format($field_value);
./template/generic/style.php:
//echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/generic/style.php:
$money_amount = international_num_format($field_value);
./template/generic/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/generic/style.php:
$money_amount = international_num_format($field_value);
./template/generic/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/generic/style.php:
$money_amount = international_num_format($field_value);
./template/generic/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/generic/style.php:
$money_amount = international_num_format($field_value);
./template/generic/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/generic/style.php:
$money_amount = international_num_format($field_value);
./template/generic/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/generic/style.php:
$money_amount = international_num_format($field_value);
./template/generic/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/vertical-menu/style.php:
//$money_amount = international_num_format($field_value);
./template/vertical-menu/style.php:
//echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/vertical-menu/style.php:
$money_amount = international_num_format($field_value);
./template/vertical-menu/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/vertical-menu/style.php:
$money_amount = international_num_format($field_value);
./template/vertical-menu/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/vertical-menu/style.php:
$money_amount = international_num_format($field_value);
./template/vertical-menu/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/vertical-menu/style.php:
$money_amount = international_num_format($field_value);
./template/vertical-menu/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/vertical-menu/style.php:
$money_amount = international_num_format($field_value);
./template/vertical-menu/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./template/vertical-menu/style.php:
$money_amount = international_num_format($field_value);
./template/vertical-menu/style.php:
echo "<br><b>$field_caption</b>: ".money_format($money_amount);
./listingsearch.php:
//echo "$config[money_sign]".number_format($field_value, 2, '.', ',');
./listingsearch.php:
$money_amount = international_num_format($field_value);
./listingsearch.php:
echo money_format($money_amount); :cry:

greengiant
06-22-2003, 08:13 AM
This bug has been in fixed in the latest version of open-realty. You will need to update to 1.0.7, if this isn't a option for you then you wil have to search all of hte php files and find all ocurances of money_format() and replace it with money_formats()... php 4.3 added a new money_format function that is conflicting with teh one we had..

Ryan