phplib-trackers Mailing List for PHPLIB (Page 8)
Brought to you by:
nhruby,
richardarcher
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(91) |
Sep
(12) |
Oct
(26) |
Nov
(16) |
Dec
(14) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(37) |
Feb
(22) |
Mar
(39) |
Apr
(74) |
May
(14) |
Jun
(17) |
Jul
(81) |
Aug
(32) |
Sep
(28) |
Oct
(18) |
Nov
(8) |
Dec
(6) |
| 2003 |
Jan
(6) |
Feb
(11) |
Mar
(5) |
Apr
(4) |
May
(6) |
Jun
(6) |
Jul
(5) |
Aug
(3) |
Sep
(8) |
Oct
(4) |
Nov
(2) |
Dec
(2) |
| 2004 |
Jan
(1) |
Feb
|
Mar
(3) |
Apr
(8) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(2) |
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2006 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
| 2007 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(41) |
Nov
|
Dec
(78) |
|
From: <no...@so...> - 2002-08-07 19:32:06
|
Bugs item #542811, was opened at 2002-04-11 22:18 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=542811&group_id=31885 Category: DB_SQL Group: current CVS >Status: Closed Resolution: None Priority: 2 Submitted By: Layne Weathers (layne_weathers) Assigned to: Layne Weathers (layne_weathers) Summary: nextid() uses mysql_query Initial Comment: nextid() uses mysql_query() and mysql_fetch_array() instead of using DB_Sql's own error-checking functions. ---------------------------------------------------------------------- Comment By: nathan hruby (nhruby) Date: 2002-07-02 14:52 Message: Logged In: YES user_id=19736 So is this a bug? It seems like it isn't. ---------------------------------------------------------------------- Comment By: Layne Weathers (layne_weathers) Date: 2002-04-12 10:40 Message: Logged In: YES user_id=278685 I guess this is in the case of duplicating or moving data from one table to another. In that case, I would need to have two database objects - one to query the old table and the second to insert into the new table (if I tried to use only one object I would lose my select results) so I might as well nextid() with the second object. I guess I could save all the data in an array, but then I don't see any reason not to get the id later when I'm looping through the array. ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-04-12 00:23 Message: Logged In: YES user_id=279311 It does this so as to not trash the $this->Record array. The script could conceivably be looping through this array and using next_id() for each element! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=542811&group_id=31885 |
|
From: <no...@so...> - 2002-08-07 19:31:48
|
Bugs item #542808, was opened at 2002-04-11 22:15 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=542808&group_id=31885 Category: DB_SQL Group: current CVS >Status: Closed Resolution: None Priority: 5 Submitted By: Layne Weathers (layne_weathers) Assigned to: Layne Weathers (layne_weathers) Summary: nextid()'s lock() in db_mysql.inc Initial Comment: nextid() issues a table lock on the db_sequence table - this will release any previous locks. I do not believe that nextid() is competent to make that decision on its own. In most applications, I lock tables before modifying any data, do integrity and validity tests on the new data, and finally make the changes. Since I don't like throwing away auto- incrementing ID #s, I don't call nextid() until right before the insert statement. Unfortunately, nextid() will release my other locks and compromise my efforts at data integrity. If my methodology above is flawed I am willing to change it, but until persuaded otherwise I propose the following order for nextid(): 1. check to see if an instance-level lock is in place 1.1. if not, try to put a lock on the sequence table 1.1.1. if successful, record that a local lock was used 1.1.2. if unsuccessful, fail with current warning 2. get current id, increment it, write it to table (unmodified) 3. check for a local lock 3.1 if so, release it (Yes, this will cause problems in existing code where nextid() is used within a set of locked tables and the sequence table was not locked - the author was sloppy and overlooked the sequence table, s/he should fix the code.) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=542808&group_id=31885 |
|
From: <no...@so...> - 2002-08-07 18:21:51
|
Bugs item #542808, was opened at 2002-04-11 22:15 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=542808&group_id=31885 Category: DB_SQL Group: current CVS Status: Open Resolution: None Priority: 5 Submitted By: Layne Weathers (layne_weathers) >Assigned to: Layne Weathers (layne_weathers) Summary: nextid()'s lock() in db_mysql.inc Initial Comment: nextid() issues a table lock on the db_sequence table - this will release any previous locks. I do not believe that nextid() is competent to make that decision on its own. In most applications, I lock tables before modifying any data, do integrity and validity tests on the new data, and finally make the changes. Since I don't like throwing away auto- incrementing ID #s, I don't call nextid() until right before the insert statement. Unfortunately, nextid() will release my other locks and compromise my efforts at data integrity. If my methodology above is flawed I am willing to change it, but until persuaded otherwise I propose the following order for nextid(): 1. check to see if an instance-level lock is in place 1.1. if not, try to put a lock on the sequence table 1.1.1. if successful, record that a local lock was used 1.1.2. if unsuccessful, fail with current warning 2. get current id, increment it, write it to table (unmodified) 3. check for a local lock 3.1 if so, release it (Yes, this will cause problems in existing code where nextid() is used within a set of locked tables and the sequence table was not locked - the author was sloppy and overlooked the sequence table, s/he should fix the code.) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=542808&group_id=31885 |
|
From: <no...@so...> - 2002-08-05 22:43:20
|
Support Requests item #576415, was opened at 2002-07-03 00:57 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=576415&group_id=31885 Category: None Group: None >Status: Closed Priority: 9 Submitted By: courou (courou) Assigned to: Nobody/Anonymous (nobody) Summary: re offset 0 ligne 130 Initial Comment: hey, i use the same template Version : v 1.11 2002/04/25 12:49:17 richardarcher it's about a function wich is called twice in the script cause of the usage of DHTML. This is the function: If I called one and again, the error appear. Could you translate it me please // liste les fichiers d'un repertoire // @param $direction = chemin d'installation // @param $pid = utilisateur function Simplify_function_for_offset($directory,$pid) { Global $TEMPLATE; $File = array(); $Dir = opendir("$directory/$pid"); while($tmp = readdir($Dir)) $File[] = "$tmp"; closedir($Dir); rsort($File); next($File); next($File); reset($File); $TEMPLATE->set_block ("FILE_32", "BOUCLE_OPTION_FILE_FORM", "BLOCK _32"); while($tmp = each($File)) if(eregi(".sql", $tmp[1])) { $TEMPLATE->set_var(array ("CHOIX_OPEN_SWITCH" => '<option value="$directory/ $pid/$tmp[1]">$tmp[1]</option>')); $TEMPLATE->parse ("BLOCK_32","BOUCLE_OPTION_FILE_FORM",true); } $TEMPLATE->parse("EXECUTE_32","FILE_32"); echo $TEMPLATE->get("EXECUTE_32"); } seen you soon Courou ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2002-08-06 08:43 Message: Logged In: YES user_id=279311 I'm closing this one because it's over a month old. If this problem is not yet resolved, please request support via the php...@li... mailing list. ...R. ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-08-04 18:11 Message: Logged In: YES user_id=279311 I don't know whether it's resolved. There's certainly insufficient information there to track down the problem. We'd need to see the template file and a sample directory listing for starters. And some comments in the code describing what it's trying to do would be nice. And I'm afraid I know no French. I'm unassigning this from myself, as I am unable to resolve it. Perhaps we should put a time limit on these support requests... surely the request would be redundant for one reason or another after a week or two? Personally I'd like to see the Support tracker on SF shut down. People should be directed to the mailing list for support. Lots more helpers willing and able to assist with problems there. And email is much easier to use. ...R. ---------------------------------------------------------------------- Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:40 Message: Logged In: YES user_id=29397 Richard, If this is resolved, can you please close it. We can reopen it later if not. Sounds like an illegal offset 0 at line 130 error? Not sure which script though. More info would be good.... Thanks, ignatius ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-07-06 08:22 Message: Logged In: YES user_id=279311 This was in the wrong forum for support requests. Being moved... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=576415&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 08:11:38
|
Support Requests item #576415, was opened at 2002-07-03 00:57 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=576415&group_id=31885 Category: None Group: None Status: Open Priority: 9 Submitted By: courou (courou) >Assigned to: Nobody/Anonymous (nobody) Summary: re offset 0 ligne 130 Initial Comment: hey, i use the same template Version : v 1.11 2002/04/25 12:49:17 richardarcher it's about a function wich is called twice in the script cause of the usage of DHTML. This is the function: If I called one and again, the error appear. Could you translate it me please // liste les fichiers d'un repertoire // @param $direction = chemin d'installation // @param $pid = utilisateur function Simplify_function_for_offset($directory,$pid) { Global $TEMPLATE; $File = array(); $Dir = opendir("$directory/$pid"); while($tmp = readdir($Dir)) $File[] = "$tmp"; closedir($Dir); rsort($File); next($File); next($File); reset($File); $TEMPLATE->set_block ("FILE_32", "BOUCLE_OPTION_FILE_FORM", "BLOCK _32"); while($tmp = each($File)) if(eregi(".sql", $tmp[1])) { $TEMPLATE->set_var(array ("CHOIX_OPEN_SWITCH" => '<option value="$directory/ $pid/$tmp[1]">$tmp[1]</option>')); $TEMPLATE->parse ("BLOCK_32","BOUCLE_OPTION_FILE_FORM",true); } $TEMPLATE->parse("EXECUTE_32","FILE_32"); echo $TEMPLATE->get("EXECUTE_32"); } seen you soon Courou ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2002-08-04 18:11 Message: Logged In: YES user_id=279311 I don't know whether it's resolved. There's certainly insufficient information there to track down the problem. We'd need to see the template file and a sample directory listing for starters. And some comments in the code describing what it's trying to do would be nice. And I'm afraid I know no French. I'm unassigning this from myself, as I am unable to resolve it. Perhaps we should put a time limit on these support requests... surely the request would be redundant for one reason or another after a week or two? Personally I'd like to see the Support tracker on SF shut down. People should be directed to the mailing list for support. Lots more helpers willing and able to assist with problems there. And email is much easier to use. ...R. ---------------------------------------------------------------------- Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:40 Message: Logged In: YES user_id=29397 Richard, If this is resolved, can you please close it. We can reopen it later if not. Sounds like an illegal offset 0 at line 130 error? Not sure which script though. More info would be good.... Thanks, ignatius ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-07-06 08:22 Message: Logged In: YES user_id=279311 This was in the wrong forum for support requests. Being moved... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=576415&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:51:11
|
Bugs item #589598, was opened at 2002-08-01 22:34 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=589598&group_id=31885 Category: DB_SQL Group: current CVS >Status: Closed Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect DB select implementation Initial Comment: Within the DB_MYSQL file and other variants the mysql_select_db is placed inside the if the statement which checks for an open link/chan, this means that if you connect to mysql outside of php using pconnect when php_lib tries to write to the session tables it thinks it has an open link/chan and assumes that it already has selected the correct database. You will notice below that this implementation always executes the mysql_select_db regardless of if a connection exists or not. This forces selection of the correct phplib database. To fix I have moded function as follows: /* public: connection management */ function connect($Database = "", $Host = "", $User = "", $Password = "") { /* Handle defaults */ if ("" == $Database) $Database = $this->Database; if ("" == $Host) $Host = $this->Host; if ("" == $User) $User = $this->User; if ("" == $Password) $Password = $this->Password; /* establish connection, select database */ if ( 0 == $this->Link_ID ) { $this->Link_ID=mysql_pconnect($Host, $User, $Password); if (!$this->Link_ID) { $this->halt("pconnect($Host, $User, \) failed."); return 0; } } /* select database */ if (!@mysql_select_db($Database,$this->Link_ID)) { $this->halt("cannot use database ".$this- >Database); return 0; } return $this->Link_ID; } ---------------------------------------------------------------------- >Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:51 Message: Logged In: YES user_id=29397 This is not a bug. The correct implementation is to subclass DB_Sql and point it to the appropriate database. That way, the object's linkID will always point to the correct open link/channel to the correct database. Ignatius ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=589598&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:43:57
|
Support Requests item #521320, was opened at 2002-02-22 15:21 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=521320&group_id=31885 Category: Install Problem (example) Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: PHPLIB (is page_open() defined): No Initial Comment: Hi I am tryint to set up imp with my webserver, but I am getting a fatal error wheni am trying to run it. I have set up horde and imp following the instructions precisely. My test.php3 page in the horde directory lists the follwing configuration. Horde Versions Horde: 1.2.7 IMP: 2.2.7 PHP Version PHP Version: 3.0.18 PHP Major Version: 3 PHP Minor Version: 18 PHP Version Classification: release Your PHP3 version is recent. You should not have any problems with Horde modules, provided that you have applied the patch(es) described in horde/docs/INSTALL. PHP Module Capabilities IMAP Support: Yes LDAP Support: No MySQL Support: Yes PostgreSQL Support: No PHPLIB Configuration track_vars: Yes PHPLIB (is page_open() defined): No Miscellaneous PHP Settings magic_quotes_gpc set to Off: Yes magic_quotes_runtime set to Off: Yes I configured defaults.php3 with the setup.php3 script. The only thing I do not have is ispell (so I left it blank). Perhaps somewhat unusual also is that sendmail sits in an different location, in /usr/lib/, as I have everything running on an SGI Irix machine (Irix 6.5.04) - and that's where it puts sendmail. I also configured mysql with the script provided - the username exists, and the "horde" database has been created as per instructions. However, when I go to the http://www.fractalgraphics.com.au/horde/index.php3 page,(www.fractalgraphics.com.au is my webserver) then click on the imp link, I get the following error: Fatal error: Call to unsupported or undefined function page_open() in mailbox.php3 on line 104 If I have a look at the mailpox.php3 script, the function on p 104 is as follows: page_open(array('sess' => 'HordeSession')); I get the same error when I try to open newuser.php3, i.e. go to http://www.fractalgraphics.com.au/horde/newuser.php3 . The error points toline 19, whhere the same function is accessed: page_open(array('sess' => 'HordeSession')); I think the problem lies in the fact that my test.php3 script lists: PHPLIB (is page_open() defined): No But I can't seem to change it. Can anyone help me with this? Your help will be greatly appreciated. Thanks Hugo ---------------------------------------------------------------------- >Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:43 Message: Logged In: YES user_id=29397 Hugo, Have you included or required the necessary PHPLIB scripts somewhere in your scripts? You will need to call prepend from somewhere....at some stage....preferably before you call page_open() ??? Ignatius ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=521320&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:40:32
|
Support Requests item #576415, was opened at 2002-07-03 00:57 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=576415&group_id=31885 Category: None Group: None Status: Open Priority: 9 Submitted By: courou (courou) >Assigned to: Richard Archer (richardarcher) Summary: re offset 0 ligne 130 Initial Comment: hey, i use the same template Version : v 1.11 2002/04/25 12:49:17 richardarcher it's about a function wich is called twice in the script cause of the usage of DHTML. This is the function: If I called one and again, the error appear. Could you translate it me please // liste les fichiers d'un repertoire // @param $direction = chemin d'installation // @param $pid = utilisateur function Simplify_function_for_offset($directory,$pid) { Global $TEMPLATE; $File = array(); $Dir = opendir("$directory/$pid"); while($tmp = readdir($Dir)) $File[] = "$tmp"; closedir($Dir); rsort($File); next($File); next($File); reset($File); $TEMPLATE->set_block ("FILE_32", "BOUCLE_OPTION_FILE_FORM", "BLOCK _32"); while($tmp = each($File)) if(eregi(".sql", $tmp[1])) { $TEMPLATE->set_var(array ("CHOIX_OPEN_SWITCH" => '<option value="$directory/ $pid/$tmp[1]">$tmp[1]</option>')); $TEMPLATE->parse ("BLOCK_32","BOUCLE_OPTION_FILE_FORM",true); } $TEMPLATE->parse("EXECUTE_32","FILE_32"); echo $TEMPLATE->get("EXECUTE_32"); } seen you soon Courou ---------------------------------------------------------------------- >Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:40 Message: Logged In: YES user_id=29397 Richard, If this is resolved, can you please close it. We can reopen it later if not. Sounds like an illegal offset 0 at line 130 error? Not sure which script though. More info would be good.... Thanks, ignatius ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-07-06 08:22 Message: Logged In: YES user_id=279311 This was in the wrong forum for support requests. Being moved... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=576415&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:36:46
|
Support Requests item #581211, was opened at 2002-07-14 14:50 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=581211&group_id=31885 Category: Install Problem (example) Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Cannot call mysql_pconnect() function Initial Comment: "Call to undefined function: mysql_pconnect()" I'm running RedHat 7.2, Apache 1.3.22, PHP 4.0.6, PHPLib 1.7d, mySQL server 3.23.41 PHPlib seems to be working fine up until it tries to hit the db. I was able to call phpinfo() without any trouble. Most of the help I've found online so far points toward mysql support not being compiled in with apache, but phpinfo reports "-- with-mysql=shared,/usr" which I take to mean that it was compiled with all the right options. Any help would be greatly appreciated. Thanks, Chip ---------------------------------------------------------------------- Comment By: Layne Weathers (layne_weathers) Date: 2002-07-16 00:40 Message: Logged In: YES user_id=278685 I don't know what the "shared," in the configure is doing - I've always used "--with-mysql=/usr". For the generic MySQL support you can also do "--with-mysql". If you upgraded MySQL without recompiling PHP (and PHP was compiled with the specific MySQL client libraries) you'll need to recompile so PHP can get the new client libraries. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=581211&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:30:16
|
Support Requests item #525883, was opened at 2002-03-05 21:01 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=525883&group_id=31885 Category: Install Problem (example) Group: None >Status: Closed Priority: 8 Submitted By: Dominic Suter (stoenggi) Assigned to: Nobody/Anonymous (nobody) Summary: PHPLib: Templates with several pages Initial Comment: Hello. I`m a newbie in programming php, so please help me even my question may be very stupid :) I`d like to use the templates from the phplib for my webpage. I understood the example in the manual, so my test page runs. But my problem is, that I defined the title and the content once in an array. But if the user will see another content, I have to redefine the content and the title (in effect, I have to redefine the array $t->set_var(array("Title" => "Dies ist der Titel der Page", "BodyContend" => "Dies ist der Body Inhalt."));). But how can I implement this? I`d like a solution with several files wich contens the title and the content for each page. How can I do that? PS: Please excuse my bad english, I normaly talk Swissgerman... ---------------------------------------------------------------------- >Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:30 Message: Logged In: YES user_id=29397 What about using a variable to hold the content? You can try this: $t->set_var(array( "Title" => $title, // or even this "Content" => ($user=='joe' ? $content1 : $content2) )); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=525883&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:23:53
|
Support Requests item #537375, was opened at 2002-03-31 21:50 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=537375&group_id=31885 Category: None Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: web portal Initial Comment: I have a task in my firm creating a websites Portal. there are a lots of pages in my firm that i will like to summarise and have them presented in my pages, i.e showing different pages on a single window. can u please help me how to go about it. david kuku ---------------------------------------------------------------------- >Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:23 Message: Logged In: YES user_id=29397 Hi David, The PHPLIB documentation is a useful resource and has excellent examples on doing just the sort of thing you require. If you haven't already downloaded the documentation, you can download it from the phplib home page on sourceforge @ http://phplib.sourceforge.net/ As you can appreciate, we can also go so far as to point you in the right direction to get started, and will stop short at building your application for you. HTH. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=537375&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:18:07
|
Support Requests item #520989, was opened at 2002-02-22 01:42 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=520989&group_id=31885 Category: None Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: add a LINK to Docs Initial Comment: HELLO ... seems like it would be the intellegent thing to do... Please add http://milinux.net/docs/phpLib/documentation.html to the doc You can add html in the admin for docs .. I know, I have a project on here. ---------------------------------------------------------------------- Comment By: Dr Tarique Sani (tarique) Date: 2002-02-22 12:45 Message: Logged In: YES user_id=269695 Hi we are trying to get something more intellegent started at http://www.sanisoft.com/phplib/ It is a manual with PHP.net style add comments etc, hopefully a link to this new manual will be in place soon ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=520989&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:16:32
|
Support Requests item #518253, was opened at 2002-02-16 11:36 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=518253&group_id=31885 Category: None Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Suggestion: more shortcuts Initial Comment: Having used PHPlib since v5? I 'd like to suggest some addtions to the DB wrapper classes since I use these almost exclusively now: /* query->fetch, a onestep shortcut for single row queries returns the number of rows so it can be used in if statements */ function qf($query) { $this->query($query); $this->next_record(); return $this->num_rows(); } /* query - make the query, return the number of rows */ function numquery($query) { $this->query($query); return $this->num_rows(); } /* returns number of affected rows after the query is made can be used in if statements true/false */ function truequery($query) { $this->query($query); return $this->affected_rows(); } /* returns queryID after the query is made - Silent suppresses any mysql errors */ function silentquery($query) { $this->Silent=1; $this->query($query); return $this->Query_ID(); } /* returns queryID affter the query is made */ function lockquery($query, $table) { $this->lock($table); $this->query($query); $this->unlock(); return $this->affected_rows(); } /* returns the 'fetch array' row - handy for sinlge 'gets'*/ function getRow() { $this->next_record(); return $this->Record; } ---------------------------------------------------------------------- Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:11 Message: Logged In: YES user_id=29397 Thank you for your contributions, we will shortly be reviewing v7.4x in light of future developments for v8 and if warranted, we may include your suggestions in the distro. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=518253&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:16:32
|
Support Requests item #507969, was opened at 2002-01-25 01:20 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=507969&group_id=31885 Category: Install Problem (example) Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: install phplib with PHP Version 4.0.6 ? Initial Comment: In the install-documentation PHP3 is required. How can i use, respectivly install PHPlib on SunSolaris with PHP4.0.6 ? I've tried a lot of time, but it doesn't work. Please answer to hub...@ao... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=507969&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:16:32
|
Support Requests item #507967, was opened at 2002-01-25 01:18 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=507967&group_id=31885 Category: Install Problem (example) Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: install phplib witrh PHP Version 4.0.6 ? Initial Comment: In the install-documentation PHP3 is required. How can i use, respectivly install PHPlib on SunSolaris with PHP4.0.6 ? I've tried a lot of time, but it doesn't work. Please help me. ---------------------------------------------------------------------- Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:13 Message: Logged In: YES user_id=29397 Hi, What exactly are the problems you are experiencing. If you can provide the error messages (if any) that you are getting, it would help us greatly in helping you resolve the issues. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=507967&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:15:50
|
Support Requests item #474492, was opened at 2001-10-25 00:59 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=474492&group_id=31885 Category: None Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: phplib, pear db, adodb benchmarks Initial Comment: Comparing ADODB with PhpLib, PEAR DB, Metabase and Native MySQL Benchmark was to select 82 rows from the products table 200 times. The tests were repeated 5 times. Connection times were excluded from the benchmark. Lower values are better. All numbers are in seconds. MySQL 1.12 1.12 1.17 1.15 1.14 ADODB 1.43 1.47 1.47 1.44 1.45 PhpLib 1.53 1.62 1.64 1.64 1.57 PEAR 2.91 2.90 2.85 2.83 2.84 (fetchInto) PEAR 3.14 3.13 3.22 3.12 3.16 (fetchRow) M'base 4.51 4.55 4.46 4.54 4.52 (numeric columns) M'base 4.99 4.72 4.71 4.71 4.72 (named columns) Average Overhead MySQL 1.14 - ADODB 1.45 27% PhpLib 1.60 40% PEAR 2.87 152% (fetchInto) PEAR 3.15 176% (fetchRow) M'base 2.52 296% (numeric cols) M'base 4.77 318% (named cols) I was still surprised at how slow some of the libraries were, even though a code inspection had already given strong hints on the expected performance of the class libraries. Methodology Results on Pentium 800 Mhz running Win 2000, PHP 4.0.6 ISAPI on IIS5 with MySQL 3.23, all on the same machine. PEAR DB from PHP 4.0.6, ADODB 1.40, PhpLib 7.2d and Metabase 1.57 were used. Code revised on 22nd October 2001. PhpLib tests added 24th October 2001. Source code for these tests is available from http://phplens.com/lens/adodb/ - John Lim ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=474492&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:13:15
|
Support Requests item #507967, was opened at 2002-01-25 01:18 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=507967&group_id=31885 Category: Install Problem (example) Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: install phplib witrh PHP Version 4.0.6 ? Initial Comment: In the install-documentation PHP3 is required. How can i use, respectivly install PHPlib on SunSolaris with PHP4.0.6 ? I've tried a lot of time, but it doesn't work. Please help me. ---------------------------------------------------------------------- >Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:13 Message: Logged In: YES user_id=29397 Hi, What exactly are the problems you are experiencing. If you can provide the error messages (if any) that you are getting, it would help us greatly in helping you resolve the issues. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=507967&group_id=31885 |
|
From: <no...@so...> - 2002-08-04 07:11:26
|
Support Requests item #518253, was opened at 2002-02-16 11:36 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=518253&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Suggestion: more shortcuts Initial Comment: Having used PHPlib since v5? I 'd like to suggest some addtions to the DB wrapper classes since I use these almost exclusively now: /* query->fetch, a onestep shortcut for single row queries returns the number of rows so it can be used in if statements */ function qf($query) { $this->query($query); $this->next_record(); return $this->num_rows(); } /* query - make the query, return the number of rows */ function numquery($query) { $this->query($query); return $this->num_rows(); } /* returns number of affected rows after the query is made can be used in if statements true/false */ function truequery($query) { $this->query($query); return $this->affected_rows(); } /* returns queryID after the query is made - Silent suppresses any mysql errors */ function silentquery($query) { $this->Silent=1; $this->query($query); return $this->Query_ID(); } /* returns queryID affter the query is made */ function lockquery($query, $table) { $this->lock($table); $this->query($query); $this->unlock(); return $this->affected_rows(); } /* returns the 'fetch array' row - handy for sinlge 'gets'*/ function getRow() { $this->next_record(); return $this->Record; } ---------------------------------------------------------------------- >Comment By: Ignatius Teo (eyrie) Date: 2002-08-04 17:11 Message: Logged In: YES user_id=29397 Thank you for your contributions, we will shortly be reviewing v7.4x in light of future developments for v8 and if warranted, we may include your suggestions in the distro. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=518253&group_id=31885 |
|
From: <no...@so...> - 2002-08-01 21:33:46
|
Bugs item #577922, was opened at 2002-07-06 06:35 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=577922&group_id=31885 Category: Template Group: 7.4pre1 Status: Open Resolution: None Priority: 5 Submitted By: Alejandro W. (awoywood) Assigned to: Richard Archer (richardarcher) Summary: Error: now disappears $xx and \ Initial Comment: Hi, I was looking for a correction to the disappearing $, then I tried this version of templates.inc But I found two errors: - templates.inc->set_var still eats "$xx", where x is a literal - templates.inc->set_var eats the \ in "\" if you do the following: $t->set_var(array( "t1" => " $es ", "t2" => " \23 " )); the variables inside the template object will became: t1="" and t2="$123". t1 is clearly wrong. t2 seems wrong too (I don't know the inner representation). After doing a $t->parse and a $t->p, in place of {t2} you will get a "$123" which is wrong. ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2002-08-02 07:33 Message: Logged In: YES user_id=279311 Please post some code as an attachment which demonstrates this problem. So SF doesn't escape the sequence which causes the problem. Also, please include your copy of template.inc in the attachment. I still believe you're running a non-current version of template.inc. The logic in the current version seems to me to be unflawed. ...R. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-08-02 02:10 Message: Logged In: NO you must use \\23 ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-07-11 18:02 Message: Logged In: YES user_id=279311 I tested this, and it works fine for me. Test files attached... ---------------------------------------------------------------------- Comment By: Joe Winter (jwinter1) Date: 2002-07-11 05:21 Message: Logged In: YES user_id=206472 I second layne weathers on this. Also add ${noTDTags} to your testspecialchars.tpl where there is no space, no td tags, nothing, between the $ sign and the curly brace. ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-07-06 08:20 Message: Logged In: YES user_id=279311 I am confident that the current CVS version of template.inc behaves correctly in both these situations. Your second test result containing a "$" suggests to me that you're running an old version of template.inc. That kludge was removed from the script in April. The last change I made to resolve this issue was to run all variable values through preg_replace prior to substitution. While this incurs a performance hit over the previous kludges, it's practically guaranteed to result in the correct behaviour. I have attached my test script and template for this problem. The output consists of all template.inc's debugging output followed by a table of three columns. The first column is a description of the test, the second is the intended result as plain text and the third is the result after running through template. ...R. ---------------------------------------------------------------------- Comment By: Layne Weathers (layne_weathers) Date: 2002-07-06 06:48 Message: Logged In: YES user_id=278685 t1 depends completely on your setting of the PHP variable $es - you should be testing against ' $es ' so that PHP is not doing variable substitution within the string. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=577922&group_id=31885 |
|
From: <no...@so...> - 2002-08-01 16:10:31
|
Bugs item #577922, was opened at 2002-07-05 13:35 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=577922&group_id=31885 Category: Template Group: 7.4pre1 Status: Open Resolution: None Priority: 5 Submitted By: Alejandro W. (awoywood) Assigned to: Richard Archer (richardarcher) Summary: Error: now disappears $xx and \ Initial Comment: Hi, I was looking for a correction to the disappearing $, then I tried this version of templates.inc But I found two errors: - templates.inc->set_var still eats "$xx", where x is a literal - templates.inc->set_var eats the \ in "\" if you do the following: $t->set_var(array( "t1" => " $es ", "t2" => " \23 " )); the variables inside the template object will became: t1="" and t2="$123". t1 is clearly wrong. t2 seems wrong too (I don't know the inner representation). After doing a $t->parse and a $t->p, in place of {t2} you will get a "$123" which is wrong. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-08-01 09:10 Message: Logged In: NO you must use \\23 ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-07-11 01:02 Message: Logged In: YES user_id=279311 I tested this, and it works fine for me. Test files attached... ---------------------------------------------------------------------- Comment By: Joe Winter (jwinter1) Date: 2002-07-10 12:21 Message: Logged In: YES user_id=206472 I second layne weathers on this. Also add ${noTDTags} to your testspecialchars.tpl where there is no space, no td tags, nothing, between the $ sign and the curly brace. ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-07-05 15:20 Message: Logged In: YES user_id=279311 I am confident that the current CVS version of template.inc behaves correctly in both these situations. Your second test result containing a "$" suggests to me that you're running an old version of template.inc. That kludge was removed from the script in April. The last change I made to resolve this issue was to run all variable values through preg_replace prior to substitution. While this incurs a performance hit over the previous kludges, it's practically guaranteed to result in the correct behaviour. I have attached my test script and template for this problem. The output consists of all template.inc's debugging output followed by a table of three columns. The first column is a description of the test, the second is the intended result as plain text and the third is the result after running through template. ...R. ---------------------------------------------------------------------- Comment By: Layne Weathers (layne_weathers) Date: 2002-07-05 13:48 Message: Logged In: YES user_id=278685 t1 depends completely on your setting of the PHP variable $es - you should be testing against ' $es ' so that PHP is not doing variable substitution within the string. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=577922&group_id=31885 |
|
From: <no...@so...> - 2002-08-01 12:34:21
|
Bugs item #589598, was opened at 2002-08-01 05:34 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=589598&group_id=31885 Category: DB_SQL Group: current CVS Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect DB select implementation Initial Comment: Within the DB_MYSQL file and other variants the mysql_select_db is placed inside the if the statement which checks for an open link/chan, this means that if you connect to mysql outside of php using pconnect when php_lib tries to write to the session tables it thinks it has an open link/chan and assumes that it already has selected the correct database. You will notice below that this implementation always executes the mysql_select_db regardless of if a connection exists or not. This forces selection of the correct phplib database. To fix I have moded function as follows: /* public: connection management */ function connect($Database = "", $Host = "", $User = "", $Password = "") { /* Handle defaults */ if ("" == $Database) $Database = $this->Database; if ("" == $Host) $Host = $this->Host; if ("" == $User) $User = $this->User; if ("" == $Password) $Password = $this->Password; /* establish connection, select database */ if ( 0 == $this->Link_ID ) { $this->Link_ID=mysql_pconnect($Host, $User, $Password); if (!$this->Link_ID) { $this->halt("pconnect($Host, $User, \) failed."); return 0; } } /* select database */ if (!@mysql_select_db($Database,$this->Link_ID)) { $this->halt("cannot use database ".$this- >Database); return 0; } return $this->Link_ID; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=589598&group_id=31885 |
|
From: <no...@so...> - 2002-07-26 00:26:09
|
Support Requests item #576415, was opened at 2002-07-02 16:57 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=576415&group_id=31885 Category: None Group: None Status: Open >Priority: 9 Submitted By: courou (courou) Assigned to: Nobody/Anonymous (nobody) Summary: re offset 0 ligne 130 Initial Comment: hey, i use the same template Version : v 1.11 2002/04/25 12:49:17 richardarcher it's about a function wich is called twice in the script cause of the usage of DHTML. This is the function: If I called one and again, the error appear. Could you translate it me please // liste les fichiers d'un repertoire // @param $direction = chemin d'installation // @param $pid = utilisateur function Simplify_function_for_offset($directory,$pid) { Global $TEMPLATE; $File = array(); $Dir = opendir("$directory/$pid"); while($tmp = readdir($Dir)) $File[] = "$tmp"; closedir($Dir); rsort($File); next($File); next($File); reset($File); $TEMPLATE->set_block ("FILE_32", "BOUCLE_OPTION_FILE_FORM", "BLOCK _32"); while($tmp = each($File)) if(eregi(".sql", $tmp[1])) { $TEMPLATE->set_var(array ("CHOIX_OPEN_SWITCH" => '<option value="$directory/ $pid/$tmp[1]">$tmp[1]</option>')); $TEMPLATE->parse ("BLOCK_32","BOUCLE_OPTION_FILE_FORM",true); } $TEMPLATE->parse("EXECUTE_32","FILE_32"); echo $TEMPLATE->get("EXECUTE_32"); } seen you soon Courou ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2002-07-06 00:22 Message: Logged In: YES user_id=279311 This was in the wrong forum for support requests. Being moved... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=576415&group_id=31885 |
|
From: <no...@so...> - 2002-07-23 08:38:38
|
Bugs item #487852, was opened at 2001-12-01 16:36 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=487852&group_id=31885 Category: Session Group: None Status: Open Resolution: None Priority: 3 Submitted By: Dieter Steinwedel (dsteinwe) Assigned to: Nobody/Anonymous (nobody) Summary: fallback error Initial Comment: I've recognized that the fallback mechanism from cookie to get doesn't work correctly. The created session always works, but sometimes the mechanism fallsback to "get" on session creation on browser with cookie support. The source of this behaviour may be "release_token()" and/or "get_id()" in "session.inc". Dieter ---------------------------------------------------------------------- Comment By: Giancarlo Pinerolo (pingus) Date: 2002-07-23 08:38 Message: Logged In: YES user_id=163488 The latest session.inc from the php-lib-stable cvs solves the id creation: you cannot pass a non-existent id in the URL anymore, nor force a cookie enabled browser to accept it. It is not part of the tarball yet. This problem is twofold though. A)The arbitrary id creation, B)the fallback mode, entered when cookies enabled. The latest session.inc solves the arbitrary id creation (no more a non existent ID in the URL will be created). This behaviour can be determined by a session flag, block_alien_sid (default true). But the forceable fallback mode (B) can still be imposed, if a preexistent ID is passed via URL. Example (prerequisite is cookie enabled, no previous cookie received): 1.User A gets a session via cookie. He appends that regularly created session ID to an URL, and passes it to User B, who has cookies enabled (and no prevous cookie received). 2.User B is forced to enter get mode, and acquires the session created by User A, because this already exists, as it was regularly vreated by User A The new session.inc, so, solves only part of the problem, but a big part. If User A wants to inject a 'known id' to User B, he can still do it, but when that session really expires, User A has to restart the trick again: create a new session and find a way to pass it again it to User B. With things as they were before, User A could rely on the fact that User B would click again and again on the same link, and it would be recreated, even if no more existent because garbage collected. Now things are more difficult, the malicious horse has only three legs, it still can walk, but not how and where it did before. To complete closing this weakness we could block any 'mode shift' witin the same session. I call this 'session coherence'. By making persistent within the session the 'mode', as soon as we know it, session.inc could block any mode change within the same session. So if User A creates his id in mode cookie, this session would be blocked when, passed to User B, is found into 'get' mode. With this missing second part, passing session ID to User B would only be possible in the case that both User A and User B have cookies disabled. Which, in my opinion, is a better interpretation of 'fallback mode'. HIH Gian ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-07-23 06:48 Message: Logged In: NO I think this could be related to the web-server. I have the same error using IIS4, but everything is working fine with Apache 1.3.24, though I'm using the same PHPLIB version (7.2d). I think they treat HTTP_COOKIE_VARS in different ways. MaRu ---------------------------------------------------------------------- Comment By: Gaetano Giunta (ggiunta) Date: 2002-01-10 15:01 Message: Logged In: YES user_id=114789 DOH! I think the final suggestion in my previous post is BULL$#!^: on the second load of the page you will NOT get back a session id from the browser, so you can't match it in the database! Anyway, the brilliant idea to solve the problem is here: 1st hit: set cookie, reload adding GET params 2nd hit: if no cookie found continue using GETs, else reload, eliminating GET params 3rd hit: you're OK now, sure to get the cookie the tradeoff is a slightly slower load-time of 1st-page-of- session, your take... the patch to session.inc I just posted here (see the patches section) ---------------------------------------------------------------------- Comment By: Gaetano Giunta (ggiunta) Date: 2002-01-10 11:47 Message: Logged In: YES user_id=114789 My 2 eurocents of analysis: it depends on session.inc, function release_token, line 406 (in release 7.4rc1): mode is set to fallback. This looks unnecessary (and if your'sure all your users have cookies enabled just comment the line and all will be smooth), but it stems from a logic problem: if a page is hit by the browser and there's no cookie found containing the session id, there's no (easy) way that PHPLIB can possibly know if it is the first time that the page was hit and the session cookie has yet to be set, or if it is the second time that the page is hit and the cookie is not working, so session should switch to fallback mode. To make sure it gets it right, phplib adds the session id in the URL, although it looks a bit nasty to the end user. An (hard and long ?) way to do it could be storing in the db container the session info on the first page hit, before redirecting the user. This way the second page hit would find the session id already defined in the db and know that if no cookie is there it should fall back to get mode and try a second redirect including the session id in the url... Hope this helps a bit (and maybe even gets implemented in verion 8 or someting...) Gaetano ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=487852&group_id=31885 |
|
From: <no...@so...> - 2002-07-23 06:48:29
|
Bugs item #487852, was opened at 2001-12-01 08:36 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=487852&group_id=31885 Category: Session Group: None Status: Open Resolution: None Priority: 3 Submitted By: Dieter Steinwedel (dsteinwe) Assigned to: Nobody/Anonymous (nobody) Summary: fallback error Initial Comment: I've recognized that the fallback mechanism from cookie to get doesn't work correctly. The created session always works, but sometimes the mechanism fallsback to "get" on session creation on browser with cookie support. The source of this behaviour may be "release_token()" and/or "get_id()" in "session.inc". Dieter ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-07-22 23:48 Message: Logged In: NO I think this could be related to the web-server. I have the same error using IIS4, but everything is working fine with Apache 1.3.24, though I'm using the same PHPLIB version (7.2d). I think they treat HTTP_COOKIE_VARS in different ways. MaRu ---------------------------------------------------------------------- Comment By: Gaetano Giunta (ggiunta) Date: 2002-01-10 07:01 Message: Logged In: YES user_id=114789 DOH! I think the final suggestion in my previous post is BULL$#!^: on the second load of the page you will NOT get back a session id from the browser, so you can't match it in the database! Anyway, the brilliant idea to solve the problem is here: 1st hit: set cookie, reload adding GET params 2nd hit: if no cookie found continue using GETs, else reload, eliminating GET params 3rd hit: you're OK now, sure to get the cookie the tradeoff is a slightly slower load-time of 1st-page-of- session, your take... the patch to session.inc I just posted here (see the patches section) ---------------------------------------------------------------------- Comment By: Gaetano Giunta (ggiunta) Date: 2002-01-10 03:47 Message: Logged In: YES user_id=114789 My 2 eurocents of analysis: it depends on session.inc, function release_token, line 406 (in release 7.4rc1): mode is set to fallback. This looks unnecessary (and if your'sure all your users have cookies enabled just comment the line and all will be smooth), but it stems from a logic problem: if a page is hit by the browser and there's no cookie found containing the session id, there's no (easy) way that PHPLIB can possibly know if it is the first time that the page was hit and the session cookie has yet to be set, or if it is the second time that the page is hit and the cookie is not working, so session should switch to fallback mode. To make sure it gets it right, phplib adds the session id in the URL, although it looks a bit nasty to the end user. An (hard and long ?) way to do it could be storing in the db container the session info on the first page hit, before redirecting the user. This way the second page hit would find the session id already defined in the db and know that if no cookie is there it should fall back to get mode and try a second redirect including the session id in the url... Hope this helps a bit (and maybe even gets implemented in verion 8 or someting...) Gaetano ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=487852&group_id=31885 |
|
From: <no...@so...> - 2002-07-15 14:40:28
|
Support Requests item #581211, was opened at 2002-07-13 23:50 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=581211&group_id=31885 Category: Install Problem (example) Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Cannot call mysql_pconnect() function Initial Comment: "Call to undefined function: mysql_pconnect()" I'm running RedHat 7.2, Apache 1.3.22, PHP 4.0.6, PHPLib 1.7d, mySQL server 3.23.41 PHPlib seems to be working fine up until it tries to hit the db. I was able to call phpinfo() without any trouble. Most of the help I've found online so far points toward mysql support not being compiled in with apache, but phpinfo reports "-- with-mysql=shared,/usr" which I take to mean that it was compiled with all the right options. Any help would be greatly appreciated. Thanks, Chip ---------------------------------------------------------------------- >Comment By: Layne Weathers (layne_weathers) Date: 2002-07-15 09:40 Message: Logged In: YES user_id=278685 I don't know what the "shared," in the configure is doing - I've always used "--with-mysql=/usr". For the generic MySQL support you can also do "--with-mysql". If you upgraded MySQL without recompiling PHP (and PHP was compiled with the specific MySQL client libraries) you'll need to recompile so PHP can get the new client libraries. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=581211&group_id=31885 |