Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal-6.14\includes\file.inc on line 902
Hello,
This message appear because I use latest wamp software that utilize php 5.3.0 where ereg() function is deprecated.
Solutions:
step 1: Goto Folder Drupal\includes
step 2: Select File “file.inc”
step 3:
Goto 902 Line
elseif ($depth >= $min_depth && ereg($mask, $file)) {
Change the function ereg to mb_ereg
elseif ($depth >= $min_depth && mb_ereg($mask, $file)) {
Thnx
Categories: Drupal, PHP
Function ereg() is deprecated when install Drupal
Hi,
Thanku for ur post…its really working………………..
Thank You. It works.
Thanks A Lot For this code..
It really works when installing drupal !!!
Hi! this change doesn’t solve all the problems. There are several drupal modules that continue not working. See that:
http://drup.org/drupal-and-php-53
I use calendar and i cannot find any solution yet.
Bye!
NIce workk!!!!!!!!!!!!!!
tnx it work for me in joomla.
Its really helpful me . Thank you buddy
better solution is using the preg_match replacement
so
elseif ($depth >= $min_depth && ereg($mask, $file)) {
becomes
elseif ($depth >= $min_depth && preg_match("/$mask/", $file)) {
thanks guy ..