Skip to content

Some Quick Fixes and Resolutions by Linux Enthusiast

The Linux Admin Turned Kubestronaut

  • 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:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
Like Loading...

Top Posts & Pages

  • configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing

Archives

  • February 2026
  • 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.

October 2026
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Feb    

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 The Linux Admin Turned Kubestronaut on WordPress.com

Translate

Blog Stats

  • 31,664 hits
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
    The Linux Admin Turned Kubestronaut

    Have a WordPress.com account? Log in now.

  • The Linux Admin Turned Kubestronaut
    Copy shortlinkView post in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar
%d
    Create your own website, free on WordPress.com.Create your own website.
    Start free