phplib-users Mailing List for PHPLIB (Page 25)
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: Gaetano G. <giu...@se...> - 2003-01-03 16:44:32
|
>=20 >=20 > I have been using 7.2d since Sept 2001 - I just checked, and=20 > sure enough gc=20 > is declared twice - and yet I do *not* get errors about=20 > function being=20 > redeclared. How can that be? >=20 > Just checked with php 4.3.0, and declaring twice the same function (in = any script) triggers a dreadful fatal error. You are probably running an older version of PHP: newer versions of PHP = tend to be stricter on the syntax checking side of things, wich is IMHO = a Good Thing(TM): no more sloppy coding allowed :) Bye, gaetano |
From: Frank B. <fb...@sy...> - 2003-01-03 15:05:29
|
At 04:21 AM 1/3/03, Gaetano Giunta wrote: > > > I suggest the empty directory approach to make sure you > > > aren't getting mixed files. It almost sounds like you are > > > including 2 different versions of session.inc (maybe one > > > named session.php3?) and causing gc() to be redeclared. > > > > The gc function IS actually declared twice in the code (I > > think I posted this as a bug to sf along time ago...). > > Upgrading should solve this particular problem: recent > > versions of phplib have fixed the double declaration. I have been using 7.2d since Sept 2001 - I just checked, and sure enough gc is declared twice - and yet I do *not* get errors about function being redeclared. How can that be? |
From: Gaetano G. <giu...@se...> - 2003-01-03 09:22:01
|
>=20 > ... >=20 > >=20 > > I suggest the empty directory approach to make sure you=20 > aren't getting > > mixed files. It almost sounds like you are including 2=20 > > different versions > > of session.inc (maybe one named session.php3?) and causing=20 > gc() to be > > redeclared. > >=20 >=20 > The gc function IS actually declared twice in the code (I=20 > think I posted this as a bug to sf along time ago...).=20 > Upgrading should solve this particular problem: recent=20 > versions of phplib have fixed the double declaration. >=20 > Gaetano >=20 |
From: Chris J. <ch...@ch...> - 2003-01-02 20:40:30
|
On Thu, Jan 02, 2003 at 03:13:43AM +1000, Geoff Mills wrote: > Hi Folks > > I have just wasted FIVE DAYS OF MY LIFE...and thought 'What the Hell....I'd might as well try to waste yours' :) > > My PHP 4.2.3 (mod_php with Apache 1.3.19) was running fine with MySQL 3.23.35, Horde/IMP, PHPop and an older version of phplib, until I required to have ftp enabled on PHP. This required a 'chain of events' that led to an upgrade of PHP to 4.3.0 and an upgrade of phplib to 7.2d and ever since then, everything has been falling apart... > 4. If I leave the <auto_prepend_file = "/usr/local/httpd/htdocs/php/prepend.php3"> line IN my php.ini file, after I restart Apache, all I get on EVERY PHP FILE is... > <Fatal error: Cannot redeclare gc() in /usr/local/httpd/htdocs/php/session.inc on line 464> > QUESTION :: What the hell is wrong with phplib 7.2d and is there any suggestions as to how I can get it working with PHP 4.3.0 - or can anyone see anything wrong with the syntax, etc of my configs and .inc files? > > Hope someone can help, thanks everyone. > > Geoff Geoff, Sorry to hear you are having such a difficult time. I won't swear what I'm about to write will fix your problem, but I highly recommend following the suggestion anyway. PHPLIB 7.2d is _very_ old by now. I know for a fact that many bugs have been fixed since then, especially in session.inc. I would suggest downloading to a clean, empty directory the PHPLIB 7.4-pre1 release from https://sourceforge.net/projects/phplib/. I have been using this release on several production servers for a year without problems. I suggest the empty directory approach to make sure you aren't getting mixed files. It almost sounds like you are including 2 different versions of session.inc (maybe one named session.php3?) and causing gc() to be redeclared. Good luck. -- ..chris |
From: Bas v. O. <ba...@ke...> - 2003-01-02 20:00:32
|
Hi all, I want to pass the array $o from the main programm to a select-box generated with ooh forms. How can I pass this array? In local.inc: $this->form_data->add_element(array( "type"=>"Select", "name"=>"functieid", "options"=>$o, "size"=>"1" )); regards, Bas |
From: Thomas E. <roh...@ya...> - 2003-01-02 03:56:12
|
yes, that has solved the problem. Thanks for the quick reply Thomas. --- Dr Tarique Sani <ta...@sa...> wrote: > On Wed, 1 Jan 2003, THOMAS EAPEN wrote: > > register_globals = off ? > > Tarique > > > Hi all, > > My current config is > > Server: Apache/1.3.27 (Win32) PHP/4.2.3 > > mod_php and mysql are being used > > > > the "include_path,auto_prepend,track_cars=On and > > magic_quotes_gpc=On" are all set in php.ini > > > > local.inc has all the required mysql variables and > > when I test out the installation with the pages > > sub-dir, I can see the Per Session Data increasing > on > > every reload but what seems to be not working is > the > > authentication part of phplib. > > > > whenever I use kris/test and submit, it does > nothing. > > The authentication on submit does give me no > > indication of a valid/invalid user/password and it > > just resets the values. > > > > I had a look at the "active_sessions" table after > > accessing the pages/index.php3 and it has one row > with > > "Example_Session" in it. > > > > Does anyone have any suggestions ? > > > > Thanks > > Tom. > > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: THOMAS E. <roh...@ya...> - 2003-01-02 00:10:51
|
Hi all, My current config is Server: Apache/1.3.27 (Win32) PHP/4.2.3 mod_php and mysql are being used the "include_path,auto_prepend,track_cars=On and magic_quotes_gpc=On" are all set in php.ini local.inc has all the required mysql variables and when I test out the installation with the pages sub-dir, I can see the Per Session Data increasing on every reload but what seems to be not working is the authentication part of phplib. whenever I use kris/test and submit, it does nothing. The authentication on submit does give me no indication of a valid/invalid user/password and it just resets the values. I had a look at the "active_sessions" table after accessing the pages/index.php3 and it has one row with "Example_Session" in it. Does anyone have any suggestions ? Thanks Tom. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Geoff M. <ge...@au...> - 2003-01-01 17:14:31
|
SGkgRm9sa3MNCg0KSSBoYXZlIGp1c3Qgd2FzdGVkIEZJVkUgREFZUyBPRiBNWSBMSUZFLi4uYW5k IHRob3VnaHQgJ1doYXQgdGhlIEhlbGwuLi4uSSdkIG1pZ2h0IGFzIHdlbGwgdHJ5IHRvIHdhc3Rl IHlvdXJzJyA6KQ0KDQpNeSBQSFAgNC4yLjMgKG1vZF9waHAgd2l0aCBBcGFjaGUgMS4zLjE5KSB3 YXMgcnVubmluZyBmaW5lIHdpdGggTXlTUUwgMy4yMy4zNSwgSG9yZGUvSU1QLCBQSFBvcCBhbmQg YW4gb2xkZXIgdmVyc2lvbiBvZiBwaHBsaWIsIHVudGlsIEkgcmVxdWlyZWQgdG8gaGF2ZSBmdHAg ZW5hYmxlZCBvbiBQSFAuIFRoaXMgcmVxdWlyZWQgYSAnY2hhaW4gb2YgZXZlbnRzJyB0aGF0IGxl ZCB0byBhbiB1cGdyYWRlIG9mIFBIUCB0byA0LjMuMCBhbmQgYW4gdXBncmFkZSBvZiBwaHBsaWIg dG8gNy4y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gRXhhbXBsZV9DVF9TcWwgZXh0ZW5kcyBDVF9TcWwgew0KICB2 YXIgJGRhdGFiYXNlX2NsYXNzID0gIm15YXBwIjsgICAgICAgICAgDQogIHZhciAkZGF0YWJhc2Vf dGFibGUgPSAiYWN0aXZlX3Nlc3Npb25zIjsgDQp9DQoNCmNsYXNzIEV4YW1wbGVfQ1RfU3BsaXRf U3FsIGV4dGVuZHMgQ1RfU3BsaXRfU3FsIHsNCiAgdmFyICRkYXRhYmFzZV9jbGFzcyA9ICJteWFw cCI7ICAgICAgICANCiAgdmFyICRkYXRhYmFzZV90YWJsZSA9ICJhY3RpdmVfc2Vzc2lvbnNfc3Bs aXQiOyANCiAgdmFyICRzcGxpdF9sZW5ndGggPSA0MDk2ICAgDQp9DQoNCmNsYXNzIEV4YW1wbGVf Q1RfU2htIGV4dGVuZHMgQ1RfU2htIHsNCiAgdmFyICRtYXhfc2Vzc2lvbnMgICA9IDUwMDsgIA0K ICB2YXIgJHNobV9rZXkgICAgICAgID0gMHgxMjM3NTQ7IA0KICB2YXIgJHNobV9zaXplICAgICAg ID0gNjQwMDA7ICAgDQp9DQo+DQoNClFVRVNUSU9OIDo6ICBXaGF0IHRoZSBoZWxsIGlzIHdyb25n IHdpdGggcGhwbGliIDcuMmQgYW5kIGlzIHRoZXJlIGFueSBzdWdnZXN0aW9ucyBhcyB0byBob3cg SSBjYW4gZ2V0IGl0IHdvcmtpbmcgd2l0aCBQSFAgNC4zLjAgLSBvciBjYW4gYW55b25lIHNlZSBh bnl0aGluZyB3cm9uZyB3aXRoIHRoZSBzeW50YXgsIGV0YyBvZiBteSBjb25maWdzIGFuZCAuaW5j IGZpbGVzPw0KDQpIb3BlIHNvbWVvbmUgY2FuIGhlbHAsIHRoYW5rcyBldmVyeW9uZS4NCg0KR2Vv ZmYNCg== |
From: Layne W. <la...@if...> - 2002-12-30 15:32:20
|
> I register a rather large array variable: > $sess->register("resultArray"); > > and then on a subsequent page I try to use it, session.inc I get > > Parse error: parse error in > /var/httpd/phplib-7.2d/php/session.inc(329) : > eval()'d code on line 56 You need to increase your session storage. Change the active_sessions.val column to something larger like mediumtext. Layne Weathers Ifworld Inc. |
From: Joe J. <joe...@ya...> - 2002-12-29 16:28:24
|
I am using phplib 7.2d (although trying 7.4 didn't seem to make a difference upon first glance). I register a rather large array variable: $sess->register("resultArray"); and then on a subsequent page I try to use it, session.inc I get Parse error: parse error in /var/httpd/phplib-7.2d/php/session.inc(329) : eval()'d code on line 56 relevant code from session.inc: 51: function thaw() { 52: $this->get_lock(); 53: 54: $vals = $this->that->ac_get_value($this->id, $this->name); 55: 56: eval(sprintf(";%s",$vals)); 57: } I saw some references to this problem in the old archives at MARC: http://marc.theaimsgroup.com/?l=phplib&m=96237204126796&w=2 (specifically this guy says: "If I base64_decode($str) the value manually, I see that the declaration of the array is simply cut off half the way, so ac_get_value can´t do his job...")\ Also, this thread describes a problem storing large variables (not necessarily arrays): http://marc.theaimsgroup.com/?l=phplib&m=98599555416912&w=2 and someone suggests that the problem can be solved by using ct_split_sql.inc. This seems a possible workaround, but I haven't yet tested. Is there any current solution to the problem of registering huge variables with phplib (using the default installation?) Thanks, Joe __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Lost <lo...@i2...> - 2002-12-23 21:14:19
|
Using the phplib for sometime now and i am now comming across an issue = with environment variables. I was hoping we could start looking at some = possible changes with them. As of now some of the libraries are using config.php to get things like = the base directory of the files and the base url of a few of the image = libraries. However things like $base are different to where i am = directing these. Rather then modifying the variable in the library code = i wish to pass this information when i load the module. What i will be working on the next week is adding non required fields to = the load of a library for things like the base url and base of the file = directory. It shouldnt affect current usage as many have already worked = aroound this issue if noticed at all, but it is something i will be = doing as i currently have problems with it. Lost |
From: Bas v. O. <ba...@ke...> - 2002-12-23 08:29:00
|
Hi, How can I simply transfer the result of a sqlquery ($kerkdb->query($sqlquery);) to a tpl_form? Regards, Bas |
From: Rogers, P. <Pau...@mo...> - 2002-12-18 14:06:46
|
Dear All >Sorry, I'm still having problems with this. When I run the script I just get the word Array .... <snip> Please disregard the previous message. The problem was I used $templ->get_vars("main_Output") when what I really wanted was $templ->get_var("main_Output"). Sorry to have wasted the time and bandwidth Paul ***************************************************************************** This email and any attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and do not store, copy or disclose the content to any other person. It is the responsibility of the recipient to ensure that opening this message and/or any of its attachments will not adversely affect its systems. No responsibility is accepted by the Company. ***************************************************************************** |
From: Rogers, P. <Pau...@mo...> - 2002-12-18 14:04:16
|
Dear All Sorry, I'm still having problems with this. When I run the script I just get the word Array at the point where the content_Output book mark is. If I print_r($templ->get_vars("main_Output") after "$templ->parse("main_Output", "content");" it seems to contain everything. Any ideas what I'm doing wrong? The complete script is below. pagemaker extends template. Many thanks Paul <?php //test_pagemaker.php /* This part creates the generic page layout */ //create our pagemaker include("mlm_pagemaker.inc"); $temp_header = true; $page = new pagemaker ($temp_header); /* This part creates any buttons */ // create buttons $temp_array = array(array("text" => "Quality Management Systems for:", "type" => "nodrop"), array("link" => "http://some/link/", "alt" => "MCE QMS", "target" => "_blank", "text" => "Mowlem Civil Engineering", "type" => "go"), array("link" => "http://some/other/link/", "alt" => "MCE QMS", "text" => "Northern Civil Engineering", "type" => "go")); $page->create_buttons($temp_array); /* This section produces the output for the content */ # create Template instance called $templ $templ = new Mowlem_Template("/usr/local/apache/htdocs/test/qa_dept/templates"); $templ->set_file(array( "content" => "index.ihtml")); # define the variables $templ->set_var(array( "Count" => "3,000,000", "Div" => "Fred", "Division" => "Fred's Division")); #parse templ $templ->parse("main_Output", "content"); /* This part tidies everything up and outpts the page */ # define the variables PHP_SELF & Title $page->set_var(array( "PHP_SELF" => $PHP_SELF, "TITLE" => "MIS Pagemaker Test Page", "content_Output" => $templ->get_vars("main_Output"))); // print_r($templ->get_vars("main_Output")); $page->complete(); The page complete function is as follows: $this->parse("header_Output", "header"); // build contentOutput... $this->parse("main_Output", "main"); // finish all Output and print it. $this->p("main_Output"); ?> -----Original Message----- From: Layne Weathers [mailto:la...@if...] Sent: 17 December 2002 22:09 To: 'Rogers, Paul'; 'Phplib-Users (E-mail)' Subject: RE: [Phplib-users] Using more than one template instance on a single page > I am trying to separate some logic in an application. The easiest way > seem sto be to use two template instance with two separate roots (I've > also considered using one template instance and setting the root part > way thru). <snip> > Having done this how do I then combine the content of the two instances > using parse and print? Can I use get_vars? Yes. $page->set_var("content", $content->get_var("content")); $page->pparse("out", "page"); Layne Weathers Ifworld Inc. ***************************************************************************** This email and any attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and do not store, copy or disclose the content to any other person. It is the responsibility of the recipient to ensure that opening this message and/or any of its attachments will not adversely affect its systems. No responsibility is accepted by the Company. ***************************************************************************** |
From: Frank B. <fb...@sy...> - 2002-12-18 00:39:25
|
Oops. I forgot to consider what -f does - sorry. The refresh seems like the way to go and can be automated with: <META HTTP-EQUIV="REFRESH" CONTENT=900;URL="...whatever..."> The number is seconds to wait until refresh. Frank At 06:21 PM 12/17/02, Rob Hutton wrote: >Note with the either method, the browser will time out at some point. In >fact, with any method. It may make more sense to do a tail -50 or something >with a refresh. > >Rob Hutton >Web Safe >www.wsafe.com > >********************************************************************** > >Introducing Symantec Client Security - Integrated Anti-Virus, >Firewall, and Intrusion Detection for the Client. > >Learn more: >http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 > > > > -----Original Message----- > > From: php...@li... > > [mailto:php...@li...]On Behalf Of Frank Bax > > Sent: Tuesday, December 17, 2002 3:49 PM > > To: php...@li... > > Subject: Re: [Phplib-users] tail -f > > > > > > At 07:54 AM 12/17/02, Poduje, Miguel (LanInfo) wrote: > > >How can i do a "tail -f" in php? > > >I need to read a file in online mode. > > > > > >regards > > > > > > To simply dump the contents of file out to webpage, then try: > > system('tail -f /path/to/file'); > > > > http://www.php.net/manual/en/function.system.php > > > > or if you are looking to be able to process the data first yourself, then > > try popen(): > > http://www.php.net/manual/en/function.popen.php > > |
From: Rob H. <rob...@ws...> - 2002-12-18 00:04:44
|
Note with the either method, the browser will time out at some point. In fact, with any method. It may make more sense to do a tail -50 or something with a refresh. Rob Hutton Web Safe www.wsafe.com ********************************************************************** Introducing Symantec Client Security - Integrated Anti-Virus, Firewall, and Intrusion Detection for the Client. Learn more: http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf Of Frank Bax > Sent: Tuesday, December 17, 2002 3:49 PM > To: php...@li... > Subject: Re: [Phplib-users] tail -f > > > At 07:54 AM 12/17/02, Poduje, Miguel (LanInfo) wrote: > >How can i do a "tail -f" in php? > >I need to read a file in online mode. > > > >regards > > > To simply dump the contents of file out to webpage, then try: > system('tail -f /path/to/file'); > > http://www.php.net/manual/en/function.system.php > > or if you are looking to be able to process the data first yourself, then > try popen(): > http://www.php.net/manual/en/function.popen.php > |
From: Layne W. <la...@if...> - 2002-12-17 22:08:59
|
> I am trying to separate some logic in an application. The easiest way > seem sto be to use two template instance with two separate roots (I've > also considered using one template instance and setting the root part > way thru). <snip> > Having done this how do I then combine the content of the two instances > using parse and print? Can I use get_vars? Yes. $page->set_var("content", $content->get_var("content")); $page->pparse("out", "page"); Layne Weathers Ifworld Inc. |
From: Frank B. <fb...@sy...> - 2002-12-17 20:50:50
|
At 07:54 AM 12/17/02, Poduje, Miguel (LanInfo) wrote: >How can i do a "tail -f" in php? >I need to read a file in online mode. > >regards To simply dump the contents of file out to webpage, then try: system('tail -f /path/to/file'); http://www.php.net/manual/en/function.system.php or if you are looking to be able to process the data first yourself, then try popen(): http://www.php.net/manual/en/function.popen.php |
From: Giancarlo <gia...@na...> - 2002-12-17 20:28:38
|
Poduje, Miguel (LanInfo) wrote: > How can i do a "tail -f" in php? > I need to read a file in online mode. > I can only think of using the RSproxy class and JS, and feed a textarea or some scroller. I think the methods via Remote Scripting Proxy can be called syncronously or async. You should poll it from JS and push the lines to the textarea when are there. I still use an old MS Remote Scripting Proxy class, wonder if some open source is anywhere... I a bit forgot all about that... Gian |
From: Rogers, P. <Pau...@mo...> - 2002-12-17 09:17:43
|
Dear All I am trying to separate some logic in an application. The easiest way seem sto be to use two template instance with two separate roots (I've also considered using one template instance and setting the root part way thru). What I'd like to do is something like this: $page = new pagemaker("/some/directory"); (where pagemaker extends template) $content = new Template("/some/other/directory"); $page->set_file(array( "page" => "page.ihtml", "header" => "header.ihtml")); $templ->set_file(array( "content" => "content.ihtml", "content_dbout" => "content_dbout.ihtml")); <Code to set variables blocks etc in both template instances> Having done this how do I then combine the content of the two instances using parse and print? Can I use get_vars? Paul ***************************************************************************** This email and any attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and do not store, copy or disclose the content to any other person. It is the responsibility of the recipient to ensure that opening this message and/or any of its attachments will not adversely affect its systems. No responsibility is accepted by the Company. ***************************************************************************** |
From: Giancarlo <gia...@na...> - 2002-12-15 23:58:44
|
it is the pair auth_validatelogin and loginform.ihtml. The form contains an extra md5 hidden input 'phplib-formid, that once used is saved in sess $used_formids array and can't be reused. It is in the dev snapshots. > I remember someone had posted a solution/kludge to avoid re-login after a > logout when the BACK button on the browser is clicked. |
From: Dr T. S. <ta...@sa...> - 2002-12-15 03:21:53
|
Hello Kind Folks, I remember someone had posted a solution/kludge to avoid re-login after a logout when the BACK button on the browser is clicked. Cant seem to find it - can someone please repost / give URL? Thanks in Advance Tarique P.S. Has to work with PHPlib -- ============================================================= 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-12-15 03:20:02
|
On Sat, 14 Dec 2002, Giancarlo wrote: > What is the state of the snapshot, what is missing (hope not from me ;-) > to become real? I have tested them and found to be working I have long been suggesting that we put the snapshots out as beta so that we can have more testers Guess we are waiting for PHP5 <gd&r> ;) Tarique -- ============================================================= PHP Applications for E-Biz: http://www.sanisoft.com Indian PHP User Group: http://groups.yahoo.com/group/in-phpug ============================================================= |
From: Giancarlo <gia...@na...> - 2002-12-14 20:05:08
|
What is the state of the snapshot, what is missing (hope not from me ;-) to become real? Gian |
From: S. <bj...@ba...> - 2002-12-14 10:50:52
|
* Robert Van Overmeiren wrote: > How can I preserve the anchor in the URL when I link to a PHPlib protec= ted > page (a href=3D"Members.html#1?UDSession=3Df22c81498c75ebeea7ad6115c84f= fb21")? $link =3D sprintf("<a href=3D'%s#1'>foo</a>",$sess->url("Members.html")); HTH, Bj=F6rn. --=20 35 Kundenportale mit 24.000 Nutzern erstellen. Bei geringen Kosten und einer gro=DFen Anzahl an Modulen (DMS, CMS, CRM, Community-Funktionen). Wie das geht? =3D> mailto:te...@th... |