Skip to content

Some Quick Fixes and Resolutions by Linux Enthusiast

BunnyTech Blog

  • Home
  • Contact
HomePHP warning: Function ereg() is deprecated in includes/file.inc

PHP warning: Function ereg() is deprecated in includes/file.inc

In Php 5.3, ereg() should be replaced with preg_match

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)) {

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Like Loading...

Top Posts & Pages

  • [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
  • How to change hostname in interworx server

Archives

  • May 2021
  • December 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • October 2019
  • September 2019
  • August 2019
  • March 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018

Enter your email address to follow this blog and receive notifications of new posts by email.

January 2026
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« May    

Category Cloud

apache AWS CentOS cPanel Devops DNS Drupal Exim Ftp htaccess interworx IPtables jenkins joomla Linux maven MySQL nagios PHP plesk qmail scripts Ubuntu Uncategorized vagrant virtual box WHMCS windows wordpress Xen

Categories

Follow BunnyTech Blog on WordPress.com

Translate

Blog Stats

  • 30,617 hits
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • BunnyTech Blog
    • Already have a WordPress.com account? Log in now.
    • BunnyTech Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d
    Design a site like this with WordPress.com
    Get started