Date: 06/26/01
- Next message: William Sandman III: "[phplib] Problem with php lib upon session startup."
- Previous message: marion schmid: "Re: [phplib] hidden variable or session variables?"
- In reply to: Brant Smith: "Re: [phplib] Sigh, one error solved...another arises"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 26 Jun 2001, Brant Smith wrote:
> Interesting. I'll look into this. I thought one of the strengths of
> PHPLIB was that it was PHP from the ground up, unlike, say,
> FastTemplates which was originally developed in Perl.
>
> B.
>
> At 5:43 PM -0400 6/26/01, Mike Green wrote:
> >Does your web hosting service support Perl regular expressions in their
> >instance of PHP? [I believe preg_quote() is a Perl regular expression
> >function and PHP must be compiled to include the Perl regular expression
> >functions.]
> >
PHP uses two diffrent regular expression engines: ereg (POSIX complaint
regular expresstion, native to the PHP engine) and PCRE or Perl Compatible
Regular Expressions, which come from the seperate PCRE lib (bundeled with
your php source distro for convenice) ereg RE's are more portable, are
slower and looked upon as slightly less robust, PCRE RE's are taken from
PERL, which can make some syntactially nasty but quite fast and powerful
RE's.
the preg function are native PHP, based on a library that in turn is based
on the RE engine of perl. PHP it's self is fairly inspired by perl, just
we have less ways of doing things.
phplib's template engin makes use of the PCRE lib compiled in to php. The
default in ./configure is for PCRE to be on, so your ISP had to actually
think to turn them off by adding --without-pcre to the ./configure
cpmmand at compile time.
I would suggest a new host, PCRE is pretty lightweight, and compiling it
out is just plain silly. There was a discussion about hosts last week,
they were very Europe-centric, but there is a list of php-friendly hosts
ont he php web site (see the links page) aswell which cover the US, if
that's your area. I use CubeSoft Communications, and other than the
occasional outage, they are quite good. I don't mind the outage becasue
for ~$10 US I get 150MB's of space, 2Gig transefer, Name based host,
unlimited mail aliases, unlimited POP accoutns, Unlimited MySQL databses,
shell access (ssh only now that they are moving to UUNet/Atlanta) and your
choice of Linux or FreeBSD, mailing lists a la exmlm (the mlm that poswers
this list) and some other goodies that I can't rmemeber..
[Note: I don't work for them, I just use 'em.. They had a bad time of it
last month 'casue their co-lo faacilty sucked, hence the move to UUNet.. I
kinda feel I should stick up for 'em.]
-n
> >Brant wrote:
> >
> >> Okay okay, I've solved the error about the new Template() call.
> >>
> >> I had copy and pasted from the web and that had put some hidden
> >> characters in there between the word "new" and the word "Template".
> >>
> >> Fun eh? I just retyped and all was fine. Kudos to Nathan R. Hruby for
> >> pointing me in this direction.
> >>
> >> But WAIT, there's another error!
> >>
> >> This time it looks like a doosie:
> >>
> >> Fatal error: Call to unsupported or undefined function preg_quote()
> >> in /nfs/WWW_pages/source/new_site/phplib-7.2b/php/template.inc on
> >> line 298
> >>
> >> Thoughts?
> >>
> >> B.
> >
> >--
> >Mike Green
> >SaeSolved::
> >http://www.saesolved.com
> >http://www.everypeople.net
> >http://www.sitewidgets.com
> >http://www.widgetchuck.com
>
>
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- nathan hruby / digital statement nathan <email protected> http://www.dstatement.com/Public GPG key can be found at: http://www.dstatement.com/nathan-gpg-key.txt ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: William Sandman III: "[phplib] Problem with php lib upon session startup."
- Previous message: marion schmid: "Re: [phplib] hidden variable or session variables?"
- In reply to: Brant Smith: "Re: [phplib] Sigh, one error solved...another arises"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

