problems with Function eregi()

yamenj / 2010-05-08 23:21:10   

Hi
I have installed Indexhibit on local Wamp server but i get lots of "Function eregi()" errors in different lines in different php files.

is there any problem with the function "Function eregi()"?
how do i get rid off these error?

my wamp server has : Apache/2.2.11 (Win32) PHP/5.3.0

thanks
Yamen

Vaska A / 2010-05-08 23:39:19   

We can't support WAMP setups...there are too many things that can go wrong with local environments.

And, eregi can be replaced with preg_replace and the 'i' operator.

yamenj / 2010-05-08 23:44:44   

ok.

but do you have any solution for that?

i'm new with Indexhibit and i need to check it locally before i go online, or and how can i be sure that nothing will go wrong after i upload to my server?

is there any other local servers other than wamp that can help?

Vaska A / 2010-05-08 23:45:56   

No. For people to doing local development they should know some things about programming...as I said...there are just too many things that could be wrong and we simply can't support the local setups.

yamenj / 2010-05-08 23:49:19   

ok.

thank you anyways.

yamenj / 2010-05-09 09:48:43   

thanks Vaska,

i replaced the eregi as you said and it worked .

have a nice day .

Vaska A / 2010-05-09 13:00:42   

For others reference...changing...

  1. eregi( ... );

To something like...

  1. preg_replace("/ ... /i");
yamenj / 2010-05-10 17:28:59   

and instead of

set_magic_quotes_runtime(0);

use :

ini_set("magic_quotes_runtime", 0);

Njoy

Vaska A / 2010-05-10 17:30:42   

Thanks for posting that...this is becoming a very useful thread.

I'll do an updated Indexhibit with these changes before the end of the week.

danischo / 2011-05-09 07:10:58   

sorry it might be php 5.3 instead of 4.3

This thread has been closed, thank you.