phplib-users Mailing List for PHPLIB (Page 48)
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: Dr T. S. <ta...@sa...> - 2002-09-19 13:38:55
|
On Thu, 19 Sep 2002, Maxim Derkachev wrote: > Hello, Tarique, > > Thursday, September 19, 2002, 2:04:05 PM, you wrote: > DTS> The only solution I can see is maintain 2 separate classes which is baaaad > > I suppose, it can be one class, but two different APIs ... > Applications that work with one of the APIs will be incompatible with > those that work with the other. Yes having two API is a solution BTW folks I tried (successfully) to hack auth.inc to work with session4.inc (more like PHP 4 sessions) BUT it is a very dirty job with $_SESSION["auth"] strewn all over the place, it works OK with log mode Tarique -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
From: Gaetano G. <giu...@se...> - 2002-09-19 13:10:43
|
Disclaimer: I am not an official phplib programmer. And this reply is = way off-topic... > Hi, >=20 > just for being up-to-date: Is there any news about the=20 > progress with PEAR > in comparison to phplib? I remember some speed comparisons with MySQL > where phplib's db_mysql.inc eventually turned out to be the winner > concerning performance. >=20 There were some tests done not too long ago done by the coder of the = ADODB library, concerning DB access speed. ADODB was a clear winner, if = I remember correctly. IMHO the big advantages of using an universal db-acces framework are = ease of use and consistency, not speed. Speed varies much depending on = wether you use bind variables and stored procedures (talking about = Oracle, other DBs have different rules), so I spend my time optimizing = SQL rather than PHP code... I use my own DB access library (based on PhpDB and haevily tweaked) for = db access, and have modified phplib to sit on top of it: I really do not = like too much the pear-db design. On the other hand PEAR is (was?) distributed along with PHP, so it has a = clear advantage over phplib. It also is being developed really more actively than phplib is. I have = heard people complaining about phplib not incorporating patches very = quickly, and traffic on this list dropped dead when it moved to = sourceforge (actually I had unsubscribed beforehand coz it was too = much). But I would really like to see phplib thrive and get better. My own wishes: - make it compatible with REGISTER_GLOBALS OFF! Either have 2 API sets = or just dump the old code, I don't mind too much as long as it is = compatible with new releases of PHP. - provide alternatives to the db-access layer, e.g. better integration = w. adodb or pear-db etc... - provide integration with other php projects that do all the = auth-session over again, e.g. phpBB Bye, Gaetano Oh, and yes, I know, this is open source, so if I need something I can = do it myself... |
From: Marko K. <Mar...@mc...> - 2002-09-19 12:26:23
|
Hi, just for being up-to-date: Is there any news about the progress with PEAR in comparison to phplib? I remember some speed comparisons with MySQL where phplib's db_mysql.inc eventually turned out to be the winner concerning performance. Looking at the PEAR website it looks like they are very active and have a lot of projects running. But I don't really know how to value that... Just ignored what happened over there, since I was always very content with my apps based on phplib and Maxim Derkachevs session4_custom. Now, looking at the register_globals=off-issue I try to understand whether it makes sense to migrate to PEAR... Is this community bigger in comparison to phplib? I am afraid that the number of phplib users decreases, given the traffic on this list... Maybe I am mistaken, but if not, so I'd value any helpful comment concerning PEAR and its perspectives. I don't want to believe everything what is said on their website, better want to know what phplib's programmers community thinks about it! Thanks in advance. Marko |
From: Marko K. <Mar...@mc...> - 2002-09-19 10:54:52
|
Hi Tarique, > There is a Linux port of phpCodeBeautifier promised BUT beware the ahh, didn't know about that, since I didn't check the site since a while, because the soft didn't really give me enough freedom in defining how to format the code. > software itself has serious bugs which break your code. However it looks oops, didn't know that it is that bad, actually. > like they are getting closer to having it repaired in each successive > releases well, will check that. Anyway, Tarique, thanks again for pointing me to your collagues WYSIWYG-editor. Last time I tried I didn't set up my form handling properly, but now it works without problem. Nice code!!! Marko |
From: Maxim D. <max...@bo...> - 2002-09-19 10:54:36
|
Hello, Tarique, Thursday, September 19, 2002, 2:04:05 PM, you wrote: DTS> The only solution I can see is maintain 2 separate classes which is baaaad I suppose, it can be one class, but two different APIs ... Applications that work with one of the APIs will be incompatible with those that work with the other. -- Best regards, Maxim Derkachev mailto:max...@bo... IT manager, Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 www.books.ru, www.symbol.ru |
From: Dr T. S. <ta...@sa...> - 2002-09-19 10:30:37
|
On Thu, 19 Sep 2002, Marko Kaening wrote: > I don't use PEAR myself, just phplib, but I found a hint there how to > beautify existing PHP code. There is a Linux port of phpCodeBeautifier promised BUT beware the software itself has serious bugs which break your code. However it looks like they are getting closer to having it repaired in each successive releases Tarique -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
From: Dr T. S. <ta...@sa...> - 2002-09-19 10:27:48
|
On Thu, 19 Sep 2002, Maxim Derkachev wrote: > So, the patches can be easily incorporated, but I'm sure they'll definitely > break backward compatibility. Yes they will certainly break backward compatibility :-( BUT so did PHP when is started shipping with register_globals off > The question is open. Maybe I've missed something and somebody has > something to add? The only solution I can see is maintain 2 separate classes which is baaaad Tarique -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
From: Marko K. <Mar...@mc...> - 2002-09-19 09:54:55
|
Hi, I don't use PEAR myself, just phplib, but I found a hint there how to beautify existing PHP code. In the PEAR docs you can find a way how to reformat existing PHP code with the help of the tool 'indent'. On the site below "Documentation/Coding Standards/Indents" you find a call like: indent -nut -bap -br -ce -cli4 -ncs -ss -npcs -saf \ -sai -saw -nprs -bfda -psl -brs \ -lp -nbbo -hnl -i4 -ci4 Well, if you search for proper php code indention tools, it looks like there is no really 100% working possibility available at the moment! Even in PEAR's list archives there is no real help concerning this. But the indent command listed on top has its problems!!! It is known that it breaks the php tag which makes the code unusable: <?php becomes < ? php ==== As well all the array assignments get mixed up,especially in long lines, which are going to be wrapped: --- $t->set_var(array( 'SortLinkNr' => addquery($Lampen_url,'mSort=Nr'), 'SortLinkLampenname' => addquery($Lampen_url,'mSort=Lampenname'), 'SortLinkDatum' => addquery($Lampen_url,'mSort=Datum'), 'LampeFilter_url' => addquery($Experimente_url,'mLampenname=&fLampenname='), --- will result in --- $t->set_var(array('SortLinkNr' = >addquery($Lampen_url, 'mSort=Nr'), 'SortLinkLampenname' = >addquery($Lampen_url, 'mSort=Lampenname'), 'SortLinkDatum' = >addquery($Lampen_url, 'mSort=Datum'), 'LampeFilter_url' = >addquery($Experimente_url, 'mLampenname=&fLampenname='), --- One can see that all the arrows "=>" got torn apart. The ">" seems to be treated as belonging to the following word. So the wrapping of text lets it appear even stranger. This code is not going to run anymore. Any ideas how to avoid these troubles. Marko P.S.: I know that the PHP code beautifier <http://tools.phpedit.net/phpCodeBeautifier/> exists, but since it's under Windows I'd prefer something like indent, if possible. |
From: <so...@gm...> - 2002-09-19 08:34:08
|
hello list, im searching for a parse who do this job: parse nl2br into the content from the db. but not in <table> tags. only in <td> tags and outside of the table. best regards, MAREK. i think it must be look like this... but it's not so easy. (problem for example: <table> can look sometimes: <table> and <table cellspacing="0" cellpadding="0" border="0"> function parse_nl2br_table($parse_string) { $pos_start = 0; $pos_end = 0; while ((strpos($parse_string, "<table>") != FALSE) || (substr($parse_string,0,7) == "<table>")) { $pos_start = strpos($parse_string,"<table>"); $pos_end = strpos($parse_string,"</table>"); $out = substr($parse_string,$pos_start+7,$pos_end-8); $out = $out; $parse_string = substr($parse_string,0,$pos_start).$out.substr($parse_string, $pos_end+8,strlen($parse_string)); } return $parse_string; } |
From: Maxim D. <max...@bo...> - 2002-09-19 07:43:55
|
Hello friends, MK> There was a discussion on this list about that issue concerning MK> session4_custom where Maxim Derkachev, the author of that nice piece of MK> code, mentioned that he is unable to do that job right now. The problem is the session_register() & session_unregister() don't work with register_globals='off'. Only direct assignment to $_SESSION array works. I don't know why the silly decision in the PHP group camp was made, cause it breaks compatibility but does not make any profit. session_register() & session_unregister() take the variable names as argument, and the named variables for the session_register() should be globals. $_SESSION needs the variable itself, and the variable does not need to be global - there could be no variables at all, indeed, we can assign constants to $_SESSION keys. The difference is fundamental, and we can not change the session4 class and retain compatibility, because $sess->register() & unregister historically take varname argument. But to make them work with register_globals=off we need to pass them the variable content (or a reference) as well. So, the patches can be easily incorporated, but I'm sure they'll definitely break backward compatibility. The question is open. Maybe I've missed something and somebody has something to add? -- Best regards, Maxim Derkachev mailto:max...@bo... IT manager, Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 www.books.ru, www.symbol.ru |
From: Marko K. <Mar...@mc...> - 2002-09-19 06:58:12
|
Hi Chris, > Patches to make the remaining pieces of PHPLIB (session4_custom and > OOForms, for example) work with register_globals off should be submitted. Tarique already sent a link to his modified version of OOHforms. I think it was a link inside the phplib documentation. There was a discussion on this list about that issue concerning session4_custom where Maxim Derkachev, the author of that nice piece of code, mentioned that he is unable to do that job right now. So, somebody else needs to fix this accordingly! > I think we would all like the released version of PHPLIB to function > without registered globals. Certainly. Marko |
From: Frank B. <fb...@sy...> - 2002-09-18 22:06:01
|
I have some pages that are secured with phplib sess/auth/perm. Some of these pages produce report type data in tables. I would like to initiate these reports from crontab using lynx - can I supply the security information for this on command line? If not, how else can I accomplish my goal without rewriting the reports in another script? Frank |
From: Chris J. <ch...@ch...> - 2002-09-18 15:10:05
|
On Wed, Sep 18, 2002 at 04:41:05PM +0530, Dr Tarique Sani wrote: > On Wed, 18 Sep 2002, Marko Kaening wrote: > > > > > What isn't working with register_globals off? I've been using the > > > > db, sessions, auth, perm, and templates with no problems. > > > Have you been able to work with PHP4 Session4.inc and register_globals > > > off? > > According to Maxim Derkachev session4_custom at least doesn't work the off > > setting and I am afraid oohforms wouldn't work as well. > > The session works BUT auth fails > > There is a patch for OOHforms linked from the manual to make it work with > register_globals off > > Tarique Patches to make the remaining pieces of PHPLIB (session4_custom and OOForms, for example) work with register_globals off should be submitted. I think we would all like the released version of PHPLIB to function without registered globals. -- ..chris |
From: Dr T. S. <ta...@sa...> - 2002-09-18 14:30:27
|
On Wed, 18 Sep 2002, Marko Kaening wrote: > The HTML output looks like this: > > <input name='resetname' type=reset value=''> > > Any idea? The problem is that PHP does not post the value of a reset button :-( And that is probably the reason as to why the original implementation of OOHForm did not have a reset type. The best way is to hardcode the reset button into your template HTH Tarique -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
From: Marko K. <Mar...@mc...> - 2002-09-18 12:58:09
|
Hi, I added a reset button to my form like this: $f->add_element(array('type'=>'reset', 'value'=>'Reset', 'name'=>'resetname')); later it gets outputted via: echo $f->ge('resetname'); But unfortunately after pressing a SUBMIT type button in my form the reset button appears without the text 'Reset' as at the beginning. Looks like Reset resetted its own content... The HTML output looks like this: <input name='resetname' type=reset value=''> Any idea? Marko |
From: Dr T. S. <ta...@sa...> - 2002-09-18 11:34:11
|
On Wed, 18 Sep 2002, Marko Kaening wrote: > > > What isn't working with register_globals off? I've been using the > > > db, sessions, auth, perm, and templates with no problems. > > Have you been able to work with PHP4 Session4.inc and register_globals > > off? > According to Maxim Derkachev session4_custom at least doesn't work the off > setting and I am afraid oohforms wouldn't work as well. The session works BUT auth fails There is a patch for OOHforms linked from the manual to make it work with register_globals off Tarique -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
From: Marko K. <Mar...@mc...> - 2002-09-18 11:19:41
|
Hi, > > What isn't working with register_globals off? I've been using the > > db, sessions, auth, perm, and templates with no problems. > Have you been able to work with PHP4 Session4.inc and register_globals > off? According to Maxim Derkachev session4_custom at least doesn't work the off setting and I am afraid oohforms wouldn't work as well. Marko |
From: Dr T. S. <ta...@sa...> - 2002-09-18 11:01:00
|
On Tue, 17 Sep 2002, Joe Stewart wrote: > On Tue, Sep 17, 2002 at 04:04:12PM -0700, Dennis Gearon wrote: > > Is this being worked on? Does someone want to work on it with me? > > > > What isn't working with register_globals off? I've been using the > db, sessions, auth, perm, and templates with no problems. Have you been able to work with PHP4 Session4.inc and register_globals off? Tarique -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
From: Joe S. <jo...@be...> - 2002-09-18 02:53:37
|
Hello, On Tue, Sep 17, 2002 at 04:38:34PM -0700, Dennis Gearon wrote: > 1/ How do I respond directly to a post listed on Sourceforge. It comes > up (read only) even if I'm logged into Sourceforge. > I don't believe sf.net allows posting to the list from the web. > 2/ How do I get CVS access? > You probably don't need more than anonymous access yet. Submit possible code changes as patches to the sf.net patch manager. > 3/ Where's a good tutorial on using CVS? I will probably use it through > a telnet account I have at an account on a server. > http://sourceforge.net/docman/display_doc.php?docid=763&group_id=1 Specifically the instructions on checking out source. There is a link to The CVS Book at the bottom of the page. This is an excellent reference. > 4/ How could I branch off the whole thing, as, for example, > phplib-7d-ngr2 > (ngr2 = no global registers required) > Surely not needed. Submit your changes as a patch. > Thanks for your patience. > np Joe |
From: Joe S. <jo...@be...> - 2002-09-18 02:45:47
|
On Tue, Sep 17, 2002 at 04:04:12PM -0700, Dennis Gearon wrote: > Is this being worked on? Does someone want to work on it with me? > What isn't working with register_globals off? I've been using the db, sessions, auth, perm, and templates with no problems. Which version on phplib? thanks, Joe |
From: Dr T. S. <ta...@sa...> - 2002-09-18 02:06:14
|
On Tue, 17 Sep 2002, Dennis Gearon wrote: > 2/ How do I get CVS access? You have anon CVS access > 3/ Where's a good tutorial on using CVS? I will probably use it through > a telnet account I have at an account on a server. http://www.sanisoft.com/res/cvs.html Here is intro article on CVS I wrote sometime back HTH Tarique -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
From: Dennis G. <ge...@cv...> - 2002-09-17 23:38:34
|
1/ How do I respond directly to a post listed on Sourceforge. It comes up (read only) even if I'm logged into Sourceforge. 2/ How do I get CVS access? 3/ Where's a good tutorial on using CVS? I will probably use it through a telnet account I have at an account on a server. 4/ How could I branch off the whole thing, as, for example, phplib-7d-ngr2 (ngr2 = no global registers required) Thanks for your patience. ============================================================ personal rant section - read at your own risk ============================================================ How can Microsoft ensure the adoption of ".NET", "Hailstorm", and "Passport"? By reusing the same standards breaking, competition killing strategy on the internet that it did on the PC? http://www.pbs.org/cringely/pulpit/pulpit20010802.html Has it already done a test of its ability to brute force the internet into its plans? http://www.nwfusion.com/news/2000/0511kerberos.html http://www.computerworld.com/itresources/rcstory/0,4167,STO66204_KEY72,00.html http://www.vnunet.com/News/1104418 see 'kerberos microsoft server' at http://www.google.com/ If You want to buy computer parts, see the reviews at: http://www.cnet.com/ **OR EVEN BETTER COMPILATIONS**!! http://sysopt.earthweb.com/userreviews/products/ |
From: Dennis G. <ge...@cv...> - 2002-09-17 23:04:13
|
Is this being worked on? Does someone want to work on it with me? |
From: Marko K. <Mar...@mc...> - 2002-09-16 15:22:45
|
Thanks Gaetano, that was the right hint for me! :) > True. IMHO a very good thing: train developers to write clean code! ;) > Unfortunately will break or give a lot of warnings w. old libraries written carelessly. Yeah, that's true. Did you notice such errors also with the template.inc? I have quite a few entries like: [Mon Sep 16 16:54:38 2002] [error] PHP Notice: Undefined index: rows in /usr/local/lib/php/template.inc on line 211 [Mon Sep 16 16:54:38 2002] [error] PHP Notice: Undefined offset: 0 in /usr/local/lib/php/template.inc on line 111 where 'rows' is a real block name, but '0' is something strange for me, since I never defined such a block... Looks like a quirck inside template.inc??? > Use function error_reporting(). You could put it at the top of local.inc... Well, that's the right thing to do for me. The script where I use oohforms.inc got this command as the first line! ;) Now it's much nicer! Unfortunately notices caused by my own script are now hidden as well. But okay... better than before if you know what you are doing. Thanks again! Regards, Marko |
From: Gaetano G. <giu...@se...> - 2002-09-16 14:10:21
|
>=20 > Hi, >=20 > I noticed that oohforms floods my error_log of the apache with Notices > like: >=20 > [Mon Sep 16 14:39:50 2002] [error] PHP Notice: Undefined=20 > property: icase > in /usr/local/lib/php/of_text.inc on line 98 > [Mon Sep 16 14:39:50 2002] [error] PHP Notice: Undefined=20 > index: frozen > in /usr/local/lib/php/oohforms.inc on line 284 >=20 > Hundreds of them... >=20 > It's really a mess. >=20 > Looks like its implementation is not really clean. I noticed=20 > that newer > versions of PHP get more picky concerning undefined variables=20 > or wrongly > defined constants.=20 True. IMHO a very good thing: train developers to write clean code! Unfortunately will break or give a lot of warnings w. old libraries = written carelessly. > Or, do I miss a special switch to get rid=20 > of all this. In ini file: error_reporting =3D E_ALL & ~E_NOTICE=20 > But nevertheless it looks not so nice... Would be better to have some > possibility to disable this notice messages locally for only=20 > the oohform's > *.inc files. :) I know the code is working well, but I would=20 > like not to > see all these notices, since they hide my own error messages... ;) >=20 > OK, any idea about this? >=20 Use function error_reporting(). You could put it at the top of = local.inc... Bye, Gaetano |