From: mickey <mi...@il...> - 2001-01-29 14:01:41
|
I can't install phpwiki on my site because "preg_match()" is not implemented. I'm on altern.org (in France) So, a friend (who knows how to modify softwares, not like me ;o)) told me that functions like preg_match() and preg_match_all() could be replaced by ereg_replace() and "regular expressions". Is there an expert on the mailing list who tried to do that ? Or is there an old version of wiki whit these "regular expressions", or another script (not as good as phpwiki) working on my (old fashioned ?) site ? Thanks a lot mickey The error message was (on my site) : Fatal error: Call to unsupported or undefined function preg_match() in wiki_config.php3 on line 23 |
From: Steve W. <sw...@wc...> - 2001-01-29 15:50:48
|
On Mon, 29 Jan 2001, mickey wrote: > I can't install phpwiki on my site because "preg_match()" is not > implemented. I'm on altern.org (in France) So, a friend (who knows how > to modify softwares, not like me ;o)) told me that functions like > preg_match() and preg_match_all() could be replaced by ereg_replace() > and "regular expressions". > Is there an expert on the mailing list who tried to do that ? Or is > there an old version of wiki whit these "regular expressions", or > another script (not as good as phpwiki) working on my (old fashioned ?) > site ? Hi Mickey! No, there aren't any older versions that don't use preg() functions. It would be *really hard* to rewrite preg() function calls to ereg() function calls, about as hard as copying a dictionary with typewriter instead of a photocopier. Unfortunately I don't think we can help you here.. you need to upgrade your version of PHP. I really don't want to say that, but we just cannot support sites without preg(). Good luck, Steve ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |
From: Pablo R. R. <pr...@cl...> - 2001-01-29 16:51:02
|
Hi, Without doing nothing I get this error: "Warning: Safe Mode: Cannot set environment variable 'LANG' - it's not in the allowed list in /home/user/p/r/o/proca/www/lib/config.php on line 140" and in config php line 140 the code is: putenv ("LANG=$LANG"); I use the default lang C , I think this is a ISP issue nd I asked him for this error, but till now no replies. you can see this at: http://proca.nexen.net/phpwiki.php But the phpwiki works well, .... I think. :) Now some questions: 1. What is supposed to be this LANG set? Just for installing? 2. What will happen if I comment this line? ??? Thanks, Pablo Roca (pr...@cl...) Clavo Congelados, S.A. (http://www.clavo.net) La Coruna - Espana |
From: <d9...@na...> - 2001-01-29 22:08:28
|
On Mon, Jan 29, 2001 at 05:49:46PM +0100, Pablo Roca Rozas wrote: > "Warning: Safe Mode: Cannot set environment variable 'LANG' - it's not = in > the allowed list in /home/user/p/r/o/proca/www/lib/config.php on line 1= 40" >=20 > and in config php line 140 the code is: >=20 > putenv ("LANG=3D$LANG"); >=20 > I use the default lang C , I think this is a ISP issue nd I asked him f= or > this error, but till now no replies. Yes. This is a normal ISP issue. Your ISP has set PHP in safe mode. This means that you can't store environment variables that doesn't begin with the prefix stored in the variable safe_mode_allowed_env_vars in the php configuration file (/etc/php.ini on my RedHat system). That prefix is usually PHP_ The LANG environment variable is used when you want translations of PhpWiki. --=20 ___\ Jon =C5slund |