[PHP] Re: eregi_replace problem

2001-09-22 Thread Derek Truong

Hmm... It works for me?

$welcome_html = hihih [i]hihih[ei] gogogog[c]brfdsfdsf[ec];
$welcome_html = eregi_replace(\[i],I,$welcome_html);
$welcome_html = eregi_replace(\[ei],/I,$welcome_html);
$welcome_html = eregi_replace(\[c],center,$welcome_html);
$welcome_html = eregi_replace(\[ec],/center,$welcome_html);
echo $welcome_html;

Regards,
Derek Truong
IntenseHost.com LLChttp://www.intensehost.com


Daniel Goldin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 The following does what it's meant to do: replace [i} and [ei} with the
html
 eqivalenets.

 $welcome_html = eregi_replace(\[i],I,$welcome_html);
 $welcome_html = eregi_replace(\[ei],/I,$welcome_html);

 Why does the following NOT work?

 $welcome_html = eregi_replace(\[c],center,$welcome_html);
 $welcome_html = eregi_replace(\[ec],/center,$welcome_html);

 Any help gratefully appreciated.

 

 Daniel Goldin   [EMAIL PROTECTED]
 Creative Director   323.225.1926

  BlueLamp Productions
www.blue-lamp.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Compiling PHP4.04 with PEAR - PROBLEM!

2001-07-18 Thread Derek Truong

While trying to recompile php with PEAR, I came across this error..

Making install in pear
make[1]: Entering directory
`/home/detain/Apachetoolbox-1.5.33/src/php-4.0.6/pear'
make[2]: Entering directory
`/home/detain/Apachetoolbox-1.5.33/src/php-4.0.6/pear'
shtool:mkdir:Error: invalid number of arguments (at least 1 expected)
shtool:mkdir:Hint:  run
`/home/detain/Apachetoolbox-1.5.33/src/php-4.0.6/build/shtool mkdir -h' or
`man shtool' for details
+--+
| The installation process is incomplete. The following resources were |
| not installed:   |
|  |
|   Self-contained Extension Support   |
|   PEAR: PHP Extension and Add-on Repository  |
|  |
| To install these components, become the superuser and execute:   |
|  |
|   # make install-su  |
+--+
make[2]: *** [install-data-local] Error 5
make[2]: Leaving directory
`/home/detain/Apachetoolbox-1.5.33/src/php-4.0.6/pear'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/home/detain/Apachetoolbox-1.5.33/src/php-4.0.6/pear'
make: *** [install-recursive] Error 1
root@degree [/home/detain/Apachetoolbox-1.5.33/src/php-4.0.6]#

I dunno why it's not installing and asking me to su as a superuser and run
make install-su..
I am root! =P .. I tried removing the whole php-4.0.6 directory and untar it
to compile fresh.. but still getting this error.

My compile string is:
./configure  --prefix=/usr/local --with-apache=/home/detain/Apachetoolbox-1.
5.33/apache_1.3.20 --with-pear --with-mcrypt --with-dom --with-pcre --enable
-exif --enable-track-vars --with-calendar=shared --enable-safe-mode --enable
-magic-quotes --enable-trans-sid --enable-wddx --enable-ftp --with-gd --enab
le-gd-native-ttf --with-t1lib=/usr/local/lib/php/t1libs --with-jpeg-dir=/hom
e/detain/Apachetoolbox-1.5.33/src/jpeg-6b --with-png-dir=/home/detain/Apache
toolbox-1.5.33/src/libpng --with-zlib-dir=/home/detain/Apachetoolbox-1.5.33/
src/zlib --with-ttf --with-freetype-dir=/usr --with-mhash --with-openssl --w
ith-curl=/usr/local --enable-sysvshm --with-bcmath --with-mysql=/usr --with-
pgsql




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]