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

  • Longhorn Volumes stuck in attaching/detaching mode
  • class Redis not found
  • curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
  • The command could not be located because '/bin' is not included in the PATH environment variable. ls: command not found
  • “Cannot open /var/log/sysstat/sa18: No such file or directory."
  • Test Remote MSSQL connection
  • How to display original IP accessing the website which uses cloudflare nameservers
  • Japanese character were displaying blank in pdf file converted using wkhtmltopdf
  • change wordpress theme from the database using phpMyadmin
  • Dockerfile build hanged at Configuring tzdata

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.

August 2026
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« 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,422 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