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

  • R1soft issue : Socket timed out after waiting for more than 1,800 seconds to read/write

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.

April 2026
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« 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

  • 30,864 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
    • Already have a WordPress.com account? Log in now.
    • The Linux Admin Turned Kubestronaut
    • 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