phplib-users Mailing List for PHPLIB (Page 15)
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: Hugo M. <hj...@ho...> - 2003-06-27 16:51:57
|
Hi. I' had a strange problem with this example. $db_m->query("insert into magazine_user(magazine_user_user_id) values ('$user_id'"); jc_call->Create_Project($project_name); $db_m->query("insert into magazine_user(magazine_user_user_id) values ('$user_id'2"); in the Create_project i have another $db defined that points to another database, different from the $db_m. When i run the second query, gives me error, because now $db_m points to the database defined at create_project, and gives me one error. Anyone knows how does this occur? what can i do to solve this problem? Thanks |
From: S. <bj...@th...> - 2003-06-24 06:09:38
|
Hi folks, for anyone of you who wants to use PHPLIB's Template class in PEAR, look at the corresponding PEAR port: http://pear.php.net/package-info.php?pacid=168 The current release has the latest bug fixes on it and a new feature called "fallback template paths". It's like having an include_path for template directories. Also, one user reported that it's about 20% faster than the current PHPLIB implementation. -- ThinkPHP und Partner auf dem LinuxTag. Seien Sie mit dabei, und lernen Sie die PHP Profis kennen! 10. - 13. Juli 2003, Karlsruhe. * ThinkPHP sponsert das freie LAMP-Projekt auf dem LinuxTag * |
From: Liberty Y. <li...@em...> - 2003-06-20 15:41:58
|
Thank you very much. On Thu, 2003-06-19 at 18:01, Richard Archer wrote: > At 3:51 PM -0700 19/6/03, Liberty Young wrote: > >If this helps, i'm using phplib from debian testing; > > > >dpkg --list | grep phplib > >ii phplib 7.2d-3.1 Library for easy writing web > > > Aah, that version of template.inc does not call finish from pparse. > This was a bug I fixed quite a while ago. > > The best solution would be to upgrade your template.inc to the current > version from CVS. That way you get a lot of other improvements too. > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/phplib/php-lib-stable/php/template.inc?rev=1.12 > > > Alternatively, to address only this problem, in your template.inc, change: > > function pparse($target, $handle, $append = false) { > print $this->parse($target, $handle, $append); > return false; > } > > to > > function pparse($target, $handle, $append = false) { > print $this->finish($this->parse($target, $handle, $append)); > return false; > } > > > Or, without changing your template.inc at all, instead of using: > > $t->pparse("Outpute, "foo"); > > use: > > echo $t->finish($t->parse("Outpute, "foo")); > > ...R. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users |
From: Richard A. <rh...@ju...> - 2003-06-20 01:13:29
|
At 3:51 PM -0700 19/6/03, Liberty Young wrote: >If this helps, i'm using phplib from debian testing; > >dpkg --list | grep phplib >ii phplib 7.2d-3.1 Library for easy writing web Aah, that version of template.inc does not call finish from pparse. This was a bug I fixed quite a while ago. The best solution would be to upgrade your template.inc to the current version from CVS. That way you get a lot of other improvements too. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/phplib/php-lib-stable/php/template.inc?rev=1.12 Alternatively, to address only this problem, in your template.inc, change: function pparse($target, $handle, $append = false) { print $this->parse($target, $handle, $append); return false; } to function pparse($target, $handle, $append = false) { print $this->finish($this->parse($target, $handle, $append)); return false; } Or, without changing your template.inc at all, instead of using: $t->pparse("Outpute, "foo"); use: echo $t->finish($t->parse("Outpute, "foo")); ...R. |
From: Liberty Y. <li...@em...> - 2003-06-19 22:55:26
|
If this helps, i'm using phplib from debian testing; dpkg --list | grep phplib ii phplib 7.2d-3.1 Library for easy writing web Any clues on where i should look from here? On Thu, 2003-06-19 at 15:37, Richard Archer wrote: > At 2:57 PM -0700 19/6/03, Liberty Young wrote: > > >I thought that set_unknowns to remove would strip out {GREETING}? > > Your understanding is correct. And I cannot see anything wrong > with the code above. > > It should be stripping out the {GREETING}. > > ...R. > |
From: Richard A. <rh...@ju...> - 2003-06-19 22:37:23
|
At 2:57 PM -0700 19/6/03, Liberty Young wrote: >I thought that set_unknowns to remove would strip out {GREETING}? Your understanding is correct. And I cannot see anything wrong with the code above. It should be stripping out the {GREETING}. ...R. |
From: Liberty Y. <li...@em...> - 2003-06-19 22:01:43
|
I'm not sure if i'm mis-understanding Template->set_unknowns($unknown). I have a template, say foo.tpl: hello {NAME}. {GREETING} and in my foo.php code, i would have. //instatiate the class, etc. etc. $t->set_var("NAME", "dave"); $t->set_unknowns("remove"); $t->pparse("Outpute, "foo"); now, the resulting output is: hello dave. {GREETING} I thought that set_unknowns to remove would strip out {GREETING}? |
From: bye <by...@gm...> - 2003-06-17 20:43:10
|
Hi Nathaniel, First thanx for your help. > I had a similar problem as well with the sessions (although not with the > user authentication), and it turned out to be due to some strange server > configuration where the version of PHP that I used didn't populate the > correct variables in $HTTP_SERVER_VARS > > From the archives, see: > http://sourceforge.net/mailarchive/forum.php?thread_id=2073141&for > um_id=808 > http://sourceforge.net/mailarchive/forum.php?thread_id=2073915&for > um_id=808 > http://sourceforge.net/mailarchive/forum.php?thread_id=2073916&for > um_id=808 > > The upshot is that in session.inc around lines 417 to 437 phplib uses some > variables in $HTTP_SERVER_VARS to set some cookies and handle the 'get' > fallback mode. On my setup this would fail because for some reason > $HTTP_SERVER_VARS was empty. Check to see if PHP is populating > $HTTP_SERVER_VARS by putting this on a script on your server: > > <?php var_dump($HTTP_SERVER_VARS); ?> I checked this and it's not empty : array(34) { .."Here was some more stuff".. ["REQUEST_METHOD"]=> string(3) "GET" ["QUERY_STRING"]=> string(0) "" ["REQUEST_URI"]=> string(1) "/" ["SCRIPT_NAME"]=> string(10) "/index.php" (...) ["PHP_SELF"]=> string(10) "/index.php" ["argv"]=> array(0) { } ["argc"]=> int(0) } > > If it's empty, you'll need to check the php docs to see what configuration > options you need to set for PHP to populate $HTTP_SERVER_VARS, or > alter the > code for session.inc to use (for example) $_SERVER instead, depending on > your setup. If you are using PHP3 or have register_globals set to > "on", the > server variables might be in the global variable space instead (i.e.: > $HTTP_SERVER_VARS['HTTP_HOST'] would be found with $GLOBALS['HTTP_HOST'] > instead). If $HTTP_SERVER_VARS is not empty, it must be some > other problem. > You might try disabling the get fallback mode as well (set > $fallback_mode to > false in local.inc), see if that solves some of the problem. I changed the fallback_mode entry in local.inc and checked the REQUEST_METHOD in SERVER_VARS. It was once GET and without Fallback POST. Seems to be ok. > > Unfortunately, I didn't have the problem you mentioned with the > authentication... if fixing the sessions doesn't fix the problem, you'll > want to go over the auth class that you are using in local.inc > and make sure > that everything is configured correctly, (i.e. make sure the name of your > auth_user table and of your columns are the same, that $classname > is set to > the same name as your auth class, and that $database_class is set to the > name of the class you are using for database access.) You may want to try > disabling any 'extras' like default authentication or challenge-response > authentication and see if it works to try and isolate the problem. Even this didn't really work. Without default auth it openend automatically the loginform.ihtml like it should. So everything is fine but prompted for a password it will never let me in (WITHOUT ANY ERROR MESSAGE hmmmm). > > Hope this helps... > > _________________________________ > Nathaniel Price <np...@te...> > Webmaster I will have a closer look at the links you gave me. Thanx again. Regards jens |
From: Robert H. <rm...@le...> - 2003-06-17 14:24:43
|
If I read this correctly, the admin did a read from the database and came up with a 23 second response, 20 seconds of which was a lock. The database itself is one table with 4 fields with 600 rows. However, there are 2 indecies for this table one of which crosses two fields. I notice that the select is not even on an indexed field. What is WRITING this database? What is causing the 20 second lock time? It could be GC or it could be whatever is updating the indicies. What if you get rid of the indecies? What are the other possibilities? Other db operations? Can you create a "simple" table and see if the same thing happens? None of the fields looks like it's large enough to cause a problem... -----Original Message----- From: php...@li... [mailto:php...@li...]On Behalf Of so...@gm... Sent: Tuesday, June 17, 2003 8:49 AM To: php...@li... Subject: [Phplib-users] exessive cpu-load My ISP keeps shutting down my site due to exessive cpu-load. On request he sent me this: # User@Host: netsh32[netsh32] @ localhost [] # Query_time: 23 Lock_time: 20 Rows_sent: 1 Rows_examined: 0 use usr_netsh32_1; select val from active_sessions where sid = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx' and name = 'lablue_session'; query time 23 seconds (!!!) (my tests today gave me an average of 0,0012 s) The site itself is offline rigth now, but you can get an impression here http://stable.lablue.de Typical use: 20.000 PI/day, 6 GB transfer/month my version: ## $Id: ct_sql.inc,v 1.4 2001/05/17 00:54:20 chrisj Exp $ My table: Indizes: Name, Typ, Feld PRIMARY, PRIMARY, name sid changed, INDEX, changed Rows: 600 field, typ sid, varchar(32) name, varchar(32) val, text changed, varchar(14) ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |
From: <so...@gm...> - 2003-06-17 13:30:00
|
> How much traffic does your site get? I wonder if your session table > got rather large and garbage collection routines happened to get > invoked make an otherwise quick query run a very long time. Does > anyone know if gc() kicks in on any query, or just updates? with the site running on average load the table usually has 900 to 1.100 entries. could the above mentioned gc routine really block a multi cpu server for 23 seconds? greetings MAREK |
From: Frank B. <fb...@sy...> - 2003-06-17 13:10:47
|
At 08:49 AM 6/17/03, so...@gm... wrote: >My ISP keeps shutting down my site due to exessive cpu-load. >On request he sent me this: > ># User@Host: netsh32[netsh32] @ localhost [] ># Query_time: 23 Lock_time: 20 Rows_sent: 1 Rows_examined: 0 >use usr_netsh32_1; >select val from active_sessions where sid = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx' >and name = 'lablue_session'; >query time 23 seconds (!!!) >(my tests today gave me an average of 0,0012 s) > >The site itself is offline rigth now, but you can get an impression here >http://stable.lablue.de >Typical use: 20.000 PI/day, 6 GB transfer/month > >my version: >## $Id: ct_sql.inc,v 1.4 2001/05/17 00:54:20 chrisj Exp $ > >My table: >Indizes: >Name, Typ, Feld >PRIMARY, PRIMARY, name sid >changed, INDEX, changed > >Rows: 600 >field, typ >sid, varchar(32) >name, varchar(32) >val, text >changed, varchar(14) How much traffic does your site get? I wonder if your session table got rather large and garbage collection routines happened to get invoked make an otherwise quick query run a very long time. Does anyone know if gc() kicks in on any query, or just updates? |
From: <so...@gm...> - 2003-06-17 12:49:07
|
My ISP keeps shutting down my site due to exessive cpu-load. On request he sent me this: # User@Host: netsh32[netsh32] @ localhost [] # Query_time: 23 Lock_time: 20 Rows_sent: 1 Rows_examined: 0 use usr_netsh32_1; select val from active_sessions where sid = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx' and name = 'lablue_session'; query time 23 seconds (!!!) (my tests today gave me an average of 0,0012 s) The site itself is offline rigth now, but you can get an impression here http://stable.lablue.de Typical use: 20.000 PI/day, 6 GB transfer/month my version: ## $Id: ct_sql.inc,v 1.4 2001/05/17 00:54:20 chrisj Exp $ My table: Indizes: Name, Typ, Feld PRIMARY, PRIMARY, name sid changed, INDEX, changed Rows: 600 field, typ sid, varchar(32) name, varchar(32) val, text changed, varchar(14) |
From: Nathaniel P. <np...@te...> - 2003-06-16 17:30:31
|
I had a similar problem as well with the sessions (although not with the user authentication), and it turned out to be due to some strange server configuration where the version of PHP that I used didn't populate the correct variables in $HTTP_SERVER_VARS From the archives, see: http://sourceforge.net/mailarchive/forum.php?thread_id=2073141&forum_id=808 http://sourceforge.net/mailarchive/forum.php?thread_id=2073915&forum_id=808 http://sourceforge.net/mailarchive/forum.php?thread_id=2073916&forum_id=808 The upshot is that in session.inc around lines 417 to 437 phplib uses some variables in $HTTP_SERVER_VARS to set some cookies and handle the 'get' fallback mode. On my setup this would fail because for some reason $HTTP_SERVER_VARS was empty. Check to see if PHP is populating $HTTP_SERVER_VARS by putting this on a script on your server: <?php var_dump($HTTP_SERVER_VARS); ?> If it's empty, you'll need to check the php docs to see what configuration options you need to set for PHP to populate $HTTP_SERVER_VARS, or alter the code for session.inc to use (for example) $_SERVER instead, depending on your setup. If you are using PHP3 or have register_globals set to "on", the server variables might be in the global variable space instead (i.e.: $HTTP_SERVER_VARS['HTTP_HOST'] would be found with $GLOBALS['HTTP_HOST'] instead). If $HTTP_SERVER_VARS is not empty, it must be some other problem. You might try disabling the get fallback mode as well (set $fallback_mode to false in local.inc), see if that solves some of the problem. Unfortunately, I didn't have the problem you mentioned with the authentication... if fixing the sessions doesn't fix the problem, you'll want to go over the auth class that you are using in local.inc and make sure that everything is configured correctly, (i.e. make sure the name of your auth_user table and of your columns are the same, that $classname is set to the same name as your auth class, and that $database_class is set to the name of the class you are using for database access.) You may want to try disabling any 'extras' like default authentication or challenge-response authentication and see if it works to try and isolate the problem. Hope this helps... _________________________________ Nathaniel Price <np...@te...> Webmaster ----- Original Message ----- From: "bye" <by...@gm...> To: <php...@li...> Sent: Friday, June 13, 2003 11:32 PM Subject: [Phplib-users] auth does not work and session only after a reload > > Hallo zusammen, hi out there, > > I got some "minor" problems with my Installation of phplib. > I use Suse 8.2 and the phplib Version shipped with it. > > . DB-Connection etc are working fine. > . Authetification doesn't work (never changes from nobody to a existing > user_id) : It never exits the loginform (endless loop). > . And Session seems to work (Entries in the DB) but I have to reconnect my > page via browser once every time to get acces (after the first time the url > is like "http:///?skn99_cookie=02fd200caf3ee5738192eabcceff150a" and my > domain name "skn99.bye.ch" is missing) > > > I'will send more details if necessary. > > I need help or vacation. I'll tried to solve this problem since 3 days. HELP > > Thanx folks. > > Regards > jens > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > > |
From: bye <by...@gm...> - 2003-06-14 06:32:42
|
Hallo zusammen, hi out there, I got some "minor" problems with my Installation of phplib. I use Suse 8.2 and the phplib Version shipped with it. . DB-Connection etc are working fine. . Authetification doesn't work (never changes from nobody to a existing user_id) : It never exits the loginform (endless loop). . And Session seems to work (Entries in the DB) but I have to reconnect my page via browser once every time to get acces (after the first time the url is like "http:///?skn99_cookie=02fd200caf3ee5738192eabcceff150a" and my domain name "skn99.bye.ch" is missing) I'will send more details if necessary. I need help or vacation. I'll tried to solve this problem since 3 days. HELP Thanx folks. Regards jens |
From: Layne W. <la...@dr...> - 2003-06-03 12:59:58
|
> I am encountering a situation where I do not retain all my data > inserted in to my session across pages. This site utilizes a database > to maintain the sessions still. Is there a size limit on the data > inserted in the session? If so what are the limits. In stuff/create_database.mysql, the session data is a text column (65535 bytes). > Also, would converting the site over to using php4 based sessions with > phplib perhaps fix this problem? You can use the split container class, CT_Split_Sql, instead of the standard container class, CT_Sql. Or you could change the column type to mediumtext. Layne Weathers |
From: Dan V. D. <da...@cy...> - 2003-06-03 02:03:50
|
I am encountering a situation where I do not retain all my data inserted in to my session across pages. This site utilizes a database to maintain the sessions still. Is there a size limit on the data inserted in the session? If so what are the limits. Also, would converting the site over to using php4 based sessions with phplib perhaps fix this problem? Thanks in advance, Dan |
From: Mike G. <mi...@op...> - 2003-05-25 18:06:02
|
Hello, I'm not certain if this is a phplib issue or not, but somewhere along the line storing variables into the session and reporting the session id got messed up. About six weeks ago I noticed that the sessionID wasn't appearing in the test.php script that we set up. I changed: Session ID: <?php echo $sess->id ?> to Session ID: <?php echo $sess->id(); ?> and voila. The sessionID started printing again nicely. What I didn't notice until today was that this stopped variables from being saved into the sessions. Now looking in the code, it seems like the function id() is identified here: phplib/php/session4.inc Where it seems that $id is used here phplib/php/session.inc So, I'm looking for some tips here to try to track down why $sess->id() is stopping sessions from being saved in one instance and why $sess->id doesn't produce a value.. $sess is defined by phpSlash's slashSess.class: $sess = pslNew("slashSess"); Any tips would be appreciated. Mike -- Mike Gifford, OpenConcept Consulting Free Software for Social Change -> http://www.openconcept.ca Featured Client: CUPE National -> http://www.cupe.ca Whoever controls the media-the images-controls the culture - A. Ginsberg |
From: Mike G. <mi...@op...> - 2003-05-22 19:37:39
|
Hello, I'm not certain if this is a phplib issue or not, but somewhere along the line storing variables into the session and reporting the session id got messed up. About six weeks ago I noticed that the sessionID wasn't appearing in the test.php script that we set up. I changed: Session ID: <?php echo $sess->id ?> to Session ID: <?php echo $sess->id(); ?> and voila. The sessionID started printing again nicely. What I didn't notice until today was that this stopped variables from being saved into the sessions. Now looking in the code, it seems like the function id() is identified here: phplib/php/session4.inc Where it seems that $id is used here phplib/php/session.inc So, I'm looking for some tips here to try to track down why $sess->id() is stopping sessions from being saved in one instance and why $sess->id doesn't produce a value.. $sess is defined by phpSlash's slashSess.class: $sess = pslNew("slashSess"); Any tips would be appreciated. Mike -- Mike Gifford, OpenConcept Consulting Free Software for Social Change -> http://www.openconcept.ca Featured Client: CUPE National -> http://www.cupe.ca Whoever controls the media-the images-controls the culture - A. Ginsberg |
From: Frank B. <fb...@sy...> - 2003-05-20 14:23:22
|
At 10:19 AM 5/13/03, Frank Bax wrote: >At 04:15 PM 5/12/03, nathan r. hruby wrote: > >>On Mon, 12 May 2003, Frank Bax wrote: >> >> > I've got an application tucked behind some phplib 7.2 authentication. No >> > recent changes on server. One user uses this system almost every >> > day. Today she can't login from a RH72 system. If I logon to RH72 as a >> > different user (or use other Win98/RH72 machines), then everything works >> > fine. What do I need to do on the problem RH72 account to fix this? >> >>I'll take a stab in the dark... >> >>Has the user saved her password in Mozilla's password manager? can you >>try to remove it and then try logging in again? > > >Actually, she's using Konqueror. And we have another problem.. Somehow >the user has managed to remove menus "File, Edit, ..." from the Konqueror >window - how do we get the menu back? OK, I got the menus back (CTRL-M). While looking for password settings, I noticed that Konqueror had been set to reject all cookies from domain having login problems. Changed it to 'accept' and all is well. Not sure how the setting got changed - I'm sure it was 'accept' when I did the initial setup on that machine. |
From: Dr T. S. <ta...@sa...> - 2003-05-16 07:52:02
|
Might be of interest to some... Before someone ask - I have not used it nor do I work for NetUSE :) [046] - NetUSE Web Application Framework 0.9.4 (Beta) by Kai Voigt (http://freshmeat.net/users/kvoigt/) Thursday, May 15th 2003 03:52 Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries Software Development :: User Interfaces About: The NetUSE Web Application Framework (WAF) is a development environment for creating Web-based applications in PHP. Its main focus is applications which use dialogs to interact with various data storages. Changes: In this release, val_ipaddress() was added to verify IP addresses, waf_module() was added to include modules shipped with WAF, db_mysql from PHPlib was added, local layout is now allowed by creating layout.html in application directory, $_CONFIG["form_language"] was added, and form_submit() now understands arrays of submit buttons. License: BSD License (original) URL: http://freshmeat.net/projects/waf/ -- =================================================================== PHP Applications for E-Biz: http://www.sanisoft.com -o) /\\ Indian PHP User Group: http://groups.yahoo.com/group/in-phpug _\_v =================================================================== |
From: Frank B. <fb...@sy...> - 2003-05-13 14:23:53
|
At 04:15 PM 5/12/03, nathan r. hruby wrote: >On Mon, 12 May 2003, Frank Bax wrote: > > > I've got an application tucked behind some phplib 7.2 authentication. No > > recent changes on server. One user uses this system almost every > > day. Today she can't login from a RH72 system. If I logon to RH72 as a > > different user (or use other Win98/RH72 machines), then everything works > > fine. What do I need to do on the problem RH72 account to fix this? > >I'll take a stab in the dark... > >Has the user saved her password in Mozilla's password manager? can you >try to remove it and then try logging in again? Actually, she's using Konqueror. And we have another problem.. Somehow the user has managed to remove menus "File, Edit, ..." from the Konqueror window - how do we get the menu back? Frank |
From: nathan r. h. <na...@ds...> - 2003-05-12 21:00:32
|
On Mon, 12 May 2003, Frank Bax wrote: > I've got an application tucked behind some phplib 7.2 authentication. No > recent changes on server. One user uses this system almost every > day. Today she can't login from a RH72 system. If I logon to RH72 as a > different user (or use other Win98/RH72 machines), then everything works > fine. What do I need to do on the problem RH72 account to fix this? > I'll take a stab in the dark... Has the user saved her password in Mozilla's password manager? can you try to remove it and then try logging in again? -n -- ------ nathan hruby na...@ds... ------ |
From: Frank B. <fb...@sy...> - 2003-05-12 20:52:07
|
I've got an application tucked behind some phplib 7.2 authentication. No recent changes on server. One user uses this system almost every day. Today she can't login from a RH72 system. If I logon to RH72 as a different user (or use other Win98/RH72 machines), then everything works fine. What do I need to do on the problem RH72 account to fix this? Frank |
From: Serghej P. <sp...@ti...> - 2003-05-08 14:47:38
|
Hello=20 With phplib-7.4-pre1 session4.inc and session_custom.inc when I try to use this code: $service_list_gid =3D "list_gid" . $service_id; $list_gid =3D $_SESSION[$service_list_gid]; reset ($_POST["grouplist_id"]); foreach ($_POST["grouplist_id"] as $id) { if (strlen($list_gid) > 0) $list_gid .=3D "_"; $list_gid .=3D $id; } =09 $_SESSION[$service_list_gid] =3D $list_gid; I recive this warning and when I try to reload page I can't see nothing and to restart the only way is to delete session record from active_session table. Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 what doe's it mean??? Please help serghej |
From: nathan r. h. <na...@ds...> - 2003-05-07 20:41:09
|
On Wed, 7 May 2003, Tim Macinta wrote: > Hello Nathan, > > Thanks for your response. > Perhaps it was hot headed. I have several uses who took 'web design classes' from another department who are lost without dreamweaver and imageready, so I get touchy about making things easy for designers sometimes. > I had considered just putting comments at the beginning and end of > templates as you suggested - that may still be an option. It would seem > that is an easy thing to automate, though, and could provide a great > deal of benefit. Having to put comments in each template is a bit of an > inconvenience and opens the door for inconsistency problems if you ever > want to rename your templates, whereas an automated solution would > require no additional effort and would always be up-to-date in the > markers that it prints. > huh? automate the tag insertions and make the script intelligent enough to know how to rename things. The markers would be in a given format and would be (by need) located at the first and last line of every file. the script that generates the markers would already know the filename, so it wouldn't be hard to parse the current marker and correct it if needed. then jsut run the script (either by polling the template directory for chnage, manually, whatever..) This method also allows additional metadata to be added to the markers that you may way (eg: ctime, atime, mtime, cvs info, filesize, etc..) without performance penatly to the end user. > Let me offer an analogy to demonstrate why you would want this. Say you > have a C program that crashes when you run it. How do you fix it? You > recompile with "gcc -g" and re-run the program in a debugger. What if > there was no debug mode? Well, you could put printf statements at the > start and end of every function call so that you know where it crashes, > but that is substantially less convenient and not necessarily as > accurate. > Unless you're a php hacker, then you do the printf() trick :) My issue is that using a 'debug' mode is for debuging, not for actually doing something. This may be semantical, but semantics are important. If you want an additional mode, that fine, but nothing about what you want (at this point) is inherint to the tempalting system.. it's human digestable metatdata about the nugget. > I should also clarify that it's not essential that the whole process be > automated - the Dreamweaver scenario was more of an example than a plan > for how I will use this in practice (I still use Emacs when I edit > HTML). While it would be nice to have a system which automatically > modifies templates based upon modifications to output from those > templates, I think it might be a sufficient first step to have a tool > which takes as input the original HTML page (which was the result of > combining templates) and the modified HTML page (edited in Dreamweaver, > Emacs, or whatever) and prints out a list of what templates you need to > modify and what the diffs are between the original output and the > modified output for each template (ala Gtkdiff). > Honestly, I'd say a first baby step is to generate an editor that takes a template nuggest, wraps it in a fully valid HTML and presents it to a user to be editied and then on submission the actual template ripped out and changes saved. From there you can expand to multiple tempaltes. Gen'ing a diff is easy: $want = $_POST['sometext']; $now = http_get($PHP_SELF); passthru("diff $want $now"); The hard part is figuring out how to disassemble a page and how to deal with inconsistanticies (eg: what happens when a user draws outside the lines? Or takes the lines away becasue they're messy? What happens if a user edits one template that's repeated in the page.. How does the template system know the context that 'Oh.. This user edited the titlebar template, but it was on a foobox, so let's just create a new tempalte for fooboxes and not frob the titlebar template') > When you say that the goal of the PHPLIB template system is to do one > thing well, is that one thing forward template transformations? I guess > what I'm looking for would fall under the umbrella of a template > management which would cover both forward and reverse transformations > (or at least aid in reverse transformations). > Yeah, what you want is a complex template management system. Ideally for it to be really useful, it also need to understand context in some way as well (which is ahrd, becasue you can't really go mucking about with the thing you're going to edit..) and I see a lot of places where it could get tied easily to a implementation (eg: well in blaware we don't do that and never will, so ignore that case..) Right now I'm thinking that php (much less phplib's little tempalte.inc) would have a hard time doing all that and keeping up. not that you can;t use phplib for your project.. I'm jsut not sure that it'd work too well without a substantial rewrite. -n [snip] -- ------ nathan hruby na...@ds... ------ |