Function eregi
Posted by: TheKillerR (81.196.87.---)
Date: April 07, 2010 08:01PM

Im trying to run a PHP Script and im getting this error....
on my Linux server is ok but not on wamp ... how may i fix it ?

Deprecated: Function eregi() is deprecated in C:\wamp\www\IP\TEST.PHP on line 58

Options: ReplyQuote
Re: Function eregi
Posted by: TheKillerR (81.196.86.---)
Date: April 08, 2010 05:44PM

ok

i heard that the eregi() Function is not supported in 5.3.0 PHP Version anymore and it was replaced by preg_match()

This is what i have at that line:


if (eregi($_SERVER['HTTP_ACCEPT_LANGUAGE'],$Match))


but if i replace eregi with preg_match

it gives this error:
Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in C:\wamp\www\IP\TEST.PHP on line 244


Could Someone Write that line for me ?

Options: ReplyQuote
Re: Function eregi
Posted by: c2dan (---.15-1.cable.virginmedia.com)
Date: April 08, 2010 06:54PM

You should learn how to use the preg_*() based functions before using them. They have different syntax compared to ereg*() based functions.

Link to function documentation -> [php.net]

Options: ReplyQuote
Re: Function eregi
Posted by: TheKillerR (81.196.86.---)
Date: April 08, 2010 11:34PM

i su*k at PHP and i got no idea about this two functions
could you give me a hand in re making the code :|

Options: ReplyQuote
Re: Function eregi
Posted by: yfastud (Moderator)
Date: April 09, 2010 01:42AM

this forums is for wamp and thus, for scripting problem you should join some other coding forums for more help or discussions; thanks winking smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides



Edited 1 time(s). Last edit at 04/09/2010 01:42AM by yfastud.

Options: ReplyQuote


Sorry, only registered users may post in this forum.