phplib-users Mailing List for PHPLIB (Page 19)
Brought to you by:
nhruby,
richardarcher
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(106) |
Sep
(99) |
Oct
(44) |
Nov
(97) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(56) |
Feb
(81) |
Mar
(134) |
Apr
(69) |
May
(106) |
Jun
(122) |
Jul
(98) |
Aug
(52) |
Sep
(184) |
Oct
(219) |
Nov
(102) |
Dec
(106) |
2003 |
Jan
(88) |
Feb
(37) |
Mar
(46) |
Apr
(51) |
May
(30) |
Jun
(17) |
Jul
(45) |
Aug
(19) |
Sep
(5) |
Oct
(4) |
Nov
(12) |
Dec
(7) |
2004 |
Jan
(11) |
Feb
(7) |
Mar
|
Apr
(15) |
May
(17) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
(8) |
Oct
(6) |
Nov
(21) |
Dec
(13) |
2005 |
Jan
(4) |
Feb
(3) |
Mar
(7) |
Apr
(7) |
May
|
Jun
(11) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
2006 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(5) |
2007 |
Jan
(15) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(9) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
|
Jun
(3) |
Jul
(1) |
Aug
(19) |
Sep
(2) |
Oct
|
Nov
|
Dec
(6) |
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
From: S. <bj...@th...> - 2003-03-24 14:42:10
|
* Serghej Petrov wrote: > Nice idea about extends template_PHPLIB class in PEAR and download > updated template.inc file from phplib site..... Of corse class name an= d > internal function name should be same for all distribution. (setVar() o= r > set_var() ? Ecc) But I don't know if for PEAR team is ok as solution ... PEAR classes have to adopt the PEAR coding standards. So it's setVar() in PEAR context. --=20 ThinkPHP / rent-a-phpwizard bj...@th... Sedanstra=DFe 27 Tel: 0931 / 78 43 804 97082 W=FCrzburg Fax: 0931 / 78 43 795 http://www.thinkphp.de/ http://www.rent-a-phpwizard.de/ |
From: S. <bj...@th...> - 2003-03-24 14:31:41
|
* Serghej Petrov wrote: > Where can I find updated version? cvs.php.net, in the PEAR repository. --=20 ThinkPHP / rent-a-phpwizard bj...@th... Sedanstra=DFe 27 Tel: 0931 / 78 43 804 97082 W=FCrzburg Fax: 0931 / 78 43 795 http://www.thinkphp.de/ http://www.rent-a-phpwizard.de/ |
From: Serghej P. <sp...@ti...> - 2003-03-24 14:28:39
|
Nice idea about extends template_PHPLIB class in PEAR and download updated template.inc file from phplib site..... Of corse class name and internal function name should be same for all distribution. (setVar() or set_var() ? Ecc) But I don't know if for PEAR team is ok as solution ... Serghej |
From: Serghej P. <sp...@ti...> - 2003-03-24 14:06:55
|
Very nice phplib 2 Smarty ;) work fine. Is it possible to use smarty cache too?=20 Can Smarty class cache function generate dinamic cache? Static page with database result array and user data in the single cache file? What's happen if I will login using phplib login/auth schema? Cached page will be same for all users?=20 Someone know what is better and easy to use, PEAR cache/output or integrated smarty class cache?=20 Best. Serghej |
From: Serghej P. <sp...@ti...> - 2003-03-24 13:56:12
|
* Sven wrote: >> Can you send your changes in this mailinglist? >Nope, just look at the CVS logs of PHPLIB.php. Sorry but in CVS template.inc is last updated 8 mounth ego .... And in snapshots there ara two files very old .. http://phplib.sourceforge.net/snapshots/ phplib-0.74.20021126..> 26-Nov-2002 09:52 367k GZIP compressed docume> phplib-0.74.20021205..> 05-Dec-2002 10:17 453k GZIP compressed docume> Where can I find updated version? Thanks |
From: Richard A. <rh...@ju...> - 2003-03-21 23:50:31
|
At 13:28 +0100 21/3/03, Bj=F6rn Schotte wrote: >outputs: Have you tried using the parse() method? ...R. |
From: S. <bj...@th...> - 2003-03-21 17:49:11
|
* Sven wrote: > Can you send your changes in this mailinglist? Nope, just look at the CVS logs of PHPLIB.php. --=20 ThinkPHP / rent-a-phpwizard bj...@th... Sedanstra=DFe 27 Tel: 0931 / 78 43 804 97082 W=FCrzburg Fax: 0931 / 78 43 795 http://www.thinkphp.de/ http://www.rent-a-phpwizard.de/ |
From: Sven <Sv...@Ko...> - 2003-03-21 16:13:08
|
Hello > - just fixed the pregs allowing newlines etc. as you have stated in > your mail > - some weeks ago I fixed one error in the subst() function that is > currently present in _your_ template.inc: changed the preg_replace call > to str_replace (str_replace is faster here) Can you send your changes in this mailinglist? thx -- Ciao Sven --------- http://www.amazon.de/exec/obidos/wishlist/8WTO0DD0O1NY pgpid: 0xF74A4663 434D C7A5 C4D6 01F9 88F6 59B3 381D B526 F74A 4663 |
From: Kristian <kr...@ko...> - 2003-03-21 14:08:56
|
On Friday 21 March 2003 13:28, Bj=F6rn Schotte wrote: > > I also think you are taking a mighty large liberty by removing > > the NetUSE copyright notice from the file and re-licensing it > > under a PHP license, but I guess it is up to Kristian to complain > > about that, not me. All of PHPLIB is Copyright NetUSE AG and licensed under the LGPL. Kristian |
From: S. <bj...@th...> - 2003-03-21 12:29:51
|
Hi, * Richard Archer wrote: > I suggest you run some thorough tests on your class to see > how it fares in the case of strange input. I notice that > these three tests fail in my test script: > $t->set_var("tendollars", "$10.00"); > $t->set_var("slasha", "\\a"); > $t->set_var("brblahbr", "{blah}"); $t =3D new Template_PHPLIB; $t->setVar(array( "bla" =3D> "$10.00", "slasha" =3D> "\\a", "br" =3D> "{blah}" )); print $t->getVar("bla")."<br>"; print $t->getVar("slasha")."<br>"; print $t->getVar("br"); outputs: $10.00 \a {blah} tested with current CVS version. > I also think you are taking a mighty large liberty by removing I didn't do the initial checkin, but Kristian might mail me in order to ACK or NACK it. > the NetUSE copyright notice from the file and re-licensing it > under a PHP license, but I guess it is up to Kristian to complain > about that, not me. > str_replace only supports arrays as arguments in PHP 4.05 and above. Yep. PHP3 is outdated. > I suspect that once you have resolved the $ and \ stripping problems, There's nothing to resolve, see above. --=20 ThinkPHP / rent-a-phpwizard bj...@th... Sedanstra=DFe 27 Tel: 0931 / 78 43 804 97082 W=FCrzburg Fax: 0931 / 78 43 795 http://www.thinkphp.de/ http://www.rent-a-phpwizard.de/ |
From: Richard A. <rh...@ju...> - 2003-03-21 12:10:02
|
At 9:32 +0100 21/3/03, Bj=F6rn Schotte wrote: >That's partially right. Here's my point of view: Bj=F6rn, I suggest you run some thorough tests on your class to see how it fares in the case of strange input. I notice that these three tests fail in my test script: $t->set_var("tendollars", "$10.00"); $t->set_var("slasha", "\\a"); $t->set_var("brblahbr", "{blah}"); Personally, I think you should either commit to merging PHPLIB template.inc changes into the PEAR version, or else fork the class properly and remove PHPLIB from the class name, leaving only an attribution to the class' ancestry in the comments. I also think you are taking a mighty large liberty by removing the NetUSE copyright notice from the file and re-licensing it under a PHP license, but I guess it is up to Kristian to complain about that, not me. >- some weeks ago I fixed one error in the subst() function that is > currently present in _your_ template.inc: changed the preg_replace call > to str_replace (str_replace is faster here) str_replace only supports arrays as arguments in PHP 4.05 and above. PHPLIB still maintains support for PHP3, at the expense of some speed and access to a few new features (like foreach). I suspect that once you have resolved the $ and \ stripping problems, the speed difference between the two classes will be around 20%. ...Richard. |
From: Dr T. S. <ta...@sa...> - 2003-03-21 11:38:23
|
Hello Folks, Some said it could not be done BUT vinay Kumar <vi...@sa...> did exactly that. http://www.sanisoft.com/phplib2smarty/ A drop-in replacement extension of Smarty class for PHPLib template class He would like to recieve feedback/bug reports if you run into problems However hardcore PHPlib users need not flame - he is putting the compiling part into the PHPlib template to make it faster ;) Cheers Tarique -- =================================================================== PHP Applications for E-Biz: http://www.sanisoft.com -o) /\\ Indian PHP User Group: http://groups.yahoo.com/group/in-phpug _\_v =================================================================== |
From: Marko K. <M.K...@os...> - 2003-03-21 09:17:34
|
Hi Bj=F6rn, did you ever make a test whether your PEAR adaption of phplib's templates is still quicker than IT/ITX? I did that for the pure phplib version and decided to stick with it, since it's about 30% faster than IT. So, perhaps, the PEAR overhead is elimiating that now? Any clue about that? Marko |
From: Dr T. S. <ta...@sa...> - 2003-03-21 09:16:55
|
On Fri, 21 Mar 2003, [iso-8859-1] Bj=F6rn Schotte wrote: > Hi, >=20 > * Serghej Petrov wrote: > > Does anybody know which is more updated template version - PEAR PHPLIB > > template version or phplib phplib-7.4-pre1 version? > > Which version is better to use? >=20 > That depends on your system architecture. If you're currently using > other components of PHPLIB, it might be wise to use the PHPLIB's > template.inc. If you already use PEAR components (remember: PEAR is If you already use PEAR and dont use PHPlib components then use SMARTY Dont bother with PHPlib at all :) Tarique=20 --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D PHP Applications for E-Biz: http://www.sanisoft.com -o) /\\ Indian PHP User Group: http://groups.yahoo.com/group/in-phpug _\_v =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |
From: S. <bj...@th...> - 2003-03-21 08:59:51
|
Hi, * Serghej Petrov wrote: > Does anybody know which is more updated template version - PEAR PHPLIB > template version or phplib phplib-7.4-pre1 version? > Which version is better to use? That depends on your system architecture. If you're currently using other components of PHPLIB, it might be wise to use the PHPLIB's template.inc. If you already use PEAR components (remember: PEAR is the future of PHP components) in your application, there's no need to use PHPLIB components and you could switch to PEAR::HTML_Template_PHPL= IB if you were used to PHPLIB's template engine. PEAR::HTML_Template_PHPLIB currently lacks the methods unset_var() and clear_var(). clear_var() can be currently achieved via setVar(array("varname" =3D> "")), I'm thinking about including unsetVar() into HTML_Template_PHPLIB. --=20 ThinkPHP / rent-a-phpwizard bj...@th... Sedanstra=DFe 27 Tel: 0931 / 78 43 804 97082 W=FCrzburg Fax: 0931 / 78 43 795 http://www.thinkphp.de/ http://www.rent-a-phpwizard.de/ |
From: S. <bj...@th...> - 2003-03-21 08:34:02
|
Hi, * Richard Archer wrote: > There have been *lots* of bugs fixed in the PHPLIB version which > are still present in the PEAR version. That's partially right. Here's my point of view: - didn't implement clear_var() and unset_var() so far as I don't know if that really makes sense. - just fixed the pregs allowing newlines etc. as you have stated in your mail - some weeks ago I fixed one error in the subst() function that is currently present in _your_ template.inc: changed the preg_replace call to str_replace (str_replace is faster here) > So, the PHPLIB version is highly recommended. Can't agree on that. Faults are on both sides - your side and my side. --=20 ThinkPHP / rent-a-phpwizard bj...@th... Sedanstra=DFe 27 Tel: 0931 / 78 43 804 97082 W=FCrzburg Fax: 0931 / 78 43 795 http://www.thinkphp.de/ http://www.rent-a-phpwizard.de/ |
From: Dr T. S. <ta...@sa...> - 2003-03-21 05:00:23
|
On Thu, 20 Mar 2003, Dennis Gearon wrote: > Is there still a lot of functionality that PHPLIB provides for sessions > while using native PHP sessions? yes :) See the docs Tarique > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Tablet PC. > Does your code think in ink? You could win a Tablet PC. > Get a free Tablet PC hat just for playing. What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > -- =================================================================== PHP Applications for E-Biz: http://www.sanisoft.com -o) /\\ Indian PHP User Group: http://groups.yahoo.com/group/in-phpug _\_v =================================================================== |
From: Dennis G. <ge...@cv...> - 2003-03-20 20:28:27
|
Is there still a lot of functionality that PHPLIB provides for sessions while using native PHP sessions? |
From: Richard A. <rh...@ju...> - 2003-03-19 23:10:38
|
> Does anybody know which is more updated template version - PEAR PHPLIB > template version or phplib phplib-7.4-pre1 version? > Which version is better to use? The PEAR version was forked from PHPLIB a long time ago, and has not been carefully maintained since then. There have been *lots* of bugs fixed in the PHPLIB version which are still present in the PEAR version. Check the top of the source file for a list of fixes. I think the most important three of these have been fixed by PEAR too. So, the PHPLIB version is highly recommended. ...Richard. |
From: Dennis G. <ge...@cv...> - 2003-03-19 21:31:24
|
Personally, I feel most people are moving to Smarty templates. php...@li... wrote: > Send Phplib-users mailing list submissions to > php...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/phplib-users > or, via email, send a message with subject or body 'help' to > php...@li... > > You can reach the person managing the list at > php...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Phplib-users digest..." > > > Today's Topics: > > 1. PEAR phplibtemplate vs phplib teplate.inc (Serghej Petrov) > > --__--__-- > > Message: 1 > Date: Wed, 19 Mar 2003 14:55:30 +0100 > From: "Serghej Petrov" <sp...@ti...> > To: <php...@li...> > Subject: [Phplib-users] PEAR phplibtemplate vs phplib teplate.inc > > > Hello everybody, > Does anybody know which is more updated template version - PEAR PHPLIB > template version or phplib phplib-7.4-pre1 version? > Which version is better to use? > Thanks=20 > Best > > Serghej=20 > > > > --__--__-- > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > > > End of Phplib-users Digest > |
From: Serghej P. <sp...@ti...> - 2003-03-19 13:55:33
|
Hello everybody, Does anybody know which is more updated template version - PEAR PHPLIB template version or phplib phplib-7.4-pre1 version? Which version is better to use? Thanks=20 Best Serghej=20 |
From: BRUN L. <zi...@cl...> - 2003-03-06 23:14:41
|
> >I use the RELEASE 7.4-pre2 version, and i tought it was because of > >register_globals wich is set to on (in reffer to this post : > >http://sourceforge.net/mailarchive/message.php?msg_id=2832431 ). > > > >i put it to off and restart Apache, but i still can't log with the page > >test. > > Sorry - I might have misunderstood you - do you mean you can't log-in? yes i cant log in, i'm using the exmaple page that commes with phplib to test it : page_open(array("sess" => "Example_Session", "auth" => "Example_Auth", "perm" => "Example_Perm", "user" => "Example_User")); should i use an older version from the RELEASE 7.4-pre2 ? > Which auth method are you using - Example_Auth, Example_Challenge_Auth or Example_Challenge_Crypt_Auth? You need to be using the right user table (auth_user or auth_user_md5), and also the right login forms. > > >Any idea of the way to debug the prob ? > > It's been a long time since I used the Table class (I now use templates for everything), but I've had a look at the code & it looks like if setting a global variable $debug to true you will get some useful messages, but I don't know if that's what you want to debug. > > If it's the login process you want to debug, you'll have to put in a log of echo statements (or trigger_error()s if you're feeling fancy) > > It took me a while to get the hang of phplib - but it is worth it in the end. > > Good luck! (Bon chance?) thanks ! u'r right, i'm a frenchie ! :) well i dont knew i could have an accent just by writting words ! > Peter > > > >> Hi Lilian > >> > >> Which version of phplib are you using? - the more recent versions use > >php4's native sessions, so no data will be written to the phplib session > >tables. > >> > >> So you might not have a problem at all! > >> > >> I think if you do want to use the tables, you need to user > >session4_custom.inc - but I've not used it, so maybe someone else culd help > >you there if you need it. > >> > >> Hope that helps > >> > >> Peter > >> > >> At 14:04 05/03/03 +0100, zi...@cl... wrote: > >> >I read carrefuly the install doc and test it, but i'm finally unable to > >connect to the test-example page with the default kris/test logon. > >> >I had created tables and the test to the database is successfull : > >> ><?php > >> > include("table.inc"); // requires include_path to be functioning > >> > > >> > $db = new DB_Example; > >> > $db->query("select * from auth_user"); > >> > > >> > $t = new Table; > >> > $t->heading = "on"; > >> > $t->show_result($db); > >> >?> > > > > >> > > >> >look like this on the page : > >> >user_id username password perms > >> >c14cbf141ab1b7cd009356f555b607dc kris test admin > >> > > >> >the session test work too, but not at all : > >> >the counter works, but i dont get any lines in the session table. > >> > > >> >So, i think i miss a stage but i spend hours to find it without success > >... > >> > > >> >Could u help me ? > >> > > >> >Regards, > >> > > >> >Lilian. > >> > > > > ----------------------------- > Peter Cruickshank > Tel: +44 7092 086 881 > email: pe...@kr... > |
From: Dennis G. <ge...@cv...> - 2003-03-06 18:33:17
|
I would like to see: all classes buffer their output, except the template rendering classes. all classes implement an 'errors' string variable. no 'exit's So, any call to any public function could be checked for failure by looking at the errors variable, and any template engine driven application would not be broken using phplib. Is this a long term goal for PHPLIB? |
From: Dennis G. <ge...@cv...> - 2003-03-06 18:29:06
|
shouldn't this: line 288 'db_odbc.inc' ---------------------- if ($this->Debug && !$got_lock) { echo "missed lock... bug!\n"; } else { echo "got lock\n"; flush(); } be: ---------------------- if ($this->Debug){ if(!$got_lock) { echo "missed lock... bug!\n"; } else { echo "got lock\n"; flush(); } } Because there would an output for got lock even if there is not set $this->Debug, right? |
From: Giancarlo <gia...@na...> - 2003-03-06 12:36:48
|
The technique I use is: have a session variable array and a user variable array, store anything needed befor login in the sess one, keep it in sync with the user one or fixate there the ones vars needed. User persistent data are always on db, though. In thus case I'd just make persistent the 2-3 $_ arrays I need What do you mean register_globals is not supported? by your app, or by your app? It is by phplib. Dennis Gearon wrote: > When a page is doing a login because the user filled in information on a > public/nobody page and is going to a private/login-required page, all > the cookie/get/post has to be saved into the session vars until login is > complete or not. > > So getting rid of register_globals would require that circumstance, i.e. > loggin in, to : > Save the http_referer > Save the post/get/cookie vars > Maybe save the whole CGI environment, > Do a login/registration > Send the user back to the starting page, with variables intact > send the user to the target page, with variables intact. > > Is this a normal scenario, to save GPC vars, or just the global vars? If > just global vars, there has to be a way to store and retrieve GPC/CGI > vars, and restore them to the correct 'HTTP_*_VARS' or '_*' arrays. I'm > not even sure if those are writeable, which might make the point moot! > > "Tommy !!" wrote: > >>1/ Yes, albeit only the template system. It's awesome, but I have my own >>little quirks with it - sometimes it tries to parse user input as template >>variables [e.g. when you enter '{EVILHAKR}' in a text input field, and that >>field is stored in a database - when it is displayed on a page, PHPLib will >>attempt to display it]. But there's solutions for that - converting the >>user's '{' and '}' characters into '{' and '}' for example. >> >>2/ I didn't need it turned on for the templates, but I assume that other >>modules may still require it? Not sure. >> >>Tom L >> >> >>>1/ is 7.4 pre 2 being used by anybody in production yet? Comments? >>> >>>2/ is the need for register globals going to be entirely wiped out when >>>this is released, (I'll be >>>turning it off in my installation)? >>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >>>for complex code. Debugging C/C++ programs can leave you feeling lost and >>>disoriented. TotalView can help you find your way. Available on major UNIX >>>and Linux platforms. Try it free. www.etnus.com >>>_______________________________________________ >>>Phplib-users mailing list >>>Php...@li... >>>https://lists.sourceforge.net/lists/listinfo/phplib-users >> >>_________________________________________________________________ >>Hotmail now available on Australian mobile phones. Go to >>http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp > > |