Closed Thread
Results 1 to 2 of 2

Thread: eregi deprecated eroors

  1. #1
    david77 is offline x10Hosting Member david77 is an unknown quantity at this point
    Join Date
    Nov 2011
    Posts
    1

    eregi deprecated eroors

    Hi - anyway to get rid of the warning for scripts not compatible w. Php 5.3? is there a way to use an older php?
    I realize this is free, whatever quick advice you can offer would be appreciated. - thanks, David

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: eregi deprecated eroors

    3 choices:

    1. Get an updated version of the script that does not use deprecated features.

    2. Find the source of the errors and change the code buy using pregXXXX functions, etc

    3. error_reporting(E_ALL & ~E_DEPRECATED); at the top of the entry to the script (often index.php). Just hides the warnings for now. But since they are just warnings, there should be no harm. If PHP ever removes eregi, etc, then you will have to revert to #1 or #2
    Nothing is always absolutely so.

Closed Thread

Similar Threads

  1. Deprecated: Function ereg_replace() is deprecated
    By chriscrowe43 in forum Programming Help
    Replies: 2
    Last Post: 09-26-2011, 02:05 PM
  2. why is my once working code saying its deprecated?
    By linkenpark51471 in forum Free Hosting
    Replies: 3
    Last Post: 09-18-2011, 09:29 PM
  3. Replies: 1
    Last Post: 09-09-2011, 08:23 AM
  4. PHP-errors, worked before. NOT deprecated.
    By verfone in forum Free Hosting
    Replies: 8
    Last Post: 07-22-2010, 09:00 AM
  5. Replies: 2
    Last Post: 09-25-2009, 05:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers