phplib-users Mailing List for PHPLIB (Page 86)
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: Tarique S. <ta...@sa...> - 2001-10-07 12:23:41
|
Hello Folks, This is a bit OT but can someone explain or give a link with explains the ODBC cursor types and when to use what (of course with PHP) Thanks in advance Tarique -- ========================================================== PHP Applications for E-Biz : http://www.sanisoft.com The Ultimate Ghazal Lexicon: http://www.aaina-e-ghazal.com ========================================================== |
From: Lars H. <ph...@qu...> - 2001-10-07 10:28:28
|
Hi Roberto, > On the template class, is there a way to have "master" templates for the > whole site, that would be included in all other templates? It seems to me > that by having to specify the root in every templated page, it wouldn't > allow that functionality out of the box. Maybe something like this works for you: class MyTemplate { var $Tpl = ""; function MyTemplate () { $this->Tpl = new Template("/root/2/your/templates", "remove"); $this->setMainTemplate(); } function setMainTemplate() { $this->Tpl->set_file(array( "mainPage" => "mainPage.tpl" )); $this->Tpl->set_var(array( "foo" => "bar" )); } function setContent($myContent = "") { $this->Tpl->set_var("array( "content" => "$myContent" )); } function showMainTemplate() { $this->Tpl->pparse("mainPage"); } } $myTpl = new MyTemplate(); $myTpl->setContent("Hello, this is my content"); $myTpl->showMainTemplate(); You can extend your class MyTemplate with other templates or other vars. The other way is to create a function, maybe parseHeader() or something, which prints your header (powered by a template file) and then call other templates and then you call parseFooter() or something. HTH, Lars -- quiXS! | http://www.quixs.com |
From: Roberto M. <rm...@cc...> - 2001-10-07 04:49:58
|
I'm starting to use phplib, mainly for its DB, Cart and Template classes. Great work by the way. On the template class, is there a way to have "master" templates for the whole site, that would be included in all other templates? It seems to me that by having to specify the root in every templated page, it wouldn't allow that functionality out of the box. Has someone done that? Thanks. -Roberto -- +----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+ Roberto Mello - Computer Science, USU - http://www.brasileiro.net http://www.sdl.usu.edu - Space Dynamics Lab, Developer Sorry, "Quit" not available in unregistered versions. |
From: darcy w. c. <da...@el...> - 2001-10-05 17:32:29
|
hi, i'm trying to find a way to redirect to another page after being authenticated. i've changed phplib to redirect before authentication, but never after. i've looked at the auth.inc file and i can see where the authentication is occurring, but i don't know where to place my header("Location:) code. Any ideas? -- ~darcy w. christ Elegant Communications Inc. 416.362.9772 x222 | 416.362.8324 fax |
From: Taylor, S. <Ste...@uk...> - 2001-10-05 08:38:30
|
require("oohforms.inc"); $f = new form; $f->add_element(array("type"=>"text", "name"=>"YourField", "size"=>"25", "maxlength"=>"50", "minlength"=>"10", "length_e"=>"YourField must be at least 10 characters long")); $f->add_element(..... $f->add_element(array("type"=>"submit", "name"=>"Submit", "value"=>"Submit")); if ($Submit) { if ($err = $f->validate()) { echo $err; $f->load_defaults(); } else { // process the inputs } } $f->start("","POST","your_file_name.php","","YourForm"); $f->show_element("YourField"); $f->show_element(..... $f->show_element("Submit"); $f->finish(); -Stewart -----Original Message----- From: nicolas boussekeyt [mailto:ni...@on...] Sent: 05 October 2001 08:03 To: php...@li... Subject: [Phplib-users] Problem with ooform Hello, I want use ooform with form validation without javascript. But i haven't an example to try it. Can you send me please an example. Thank you. Nicolas Boussekeyt _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |
From: nicolas b. <ni...@on...> - 2001-10-05 07:03:08
|
Hello, I want use ooform with form validation without javascript. But i haven't an example to try it. Can you send me please an example. Thank you. Nicolas Boussekeyt |
From: Taylor, S. <Ste...@uk...> - 2001-10-02 15:54:44
|
You need to create a user session using the User class (user.inc). The User class works in much the same way as Session, apart from the data is referenced using a users userid rather than a randomly generated session id. e.g. modify prepend.php to include "user.inc" // define your user session class class Your_User_Session extends User { var $classname = "Your_User_Session"; var $magic = "myhovercraftisfulloffeels"; var $that_class = "Same_As_Your_Session_Class"; // or create a separate storage //class + table if desired var $fallback_mode = "get"; var $allowcache="no"; } // index.php page_open(array( "sess"=>"Your_Session", "auth"=>"Your_Auth", "user"=>"Your_User_Session" )); // Now $user object exists that works the as $sess $user->register(....... .... page_close(); -Stewart -----Original Message----- From: Andres Baravalle [mailto:and...@li...] Sent: 02 October 2001 16:28 To: php...@li... Subject: [Phplib-users] persisten sessions Hi, I would like to have persistent sessions. Let's say, I would like that someone that comes to my site and comes back in less than 10 days, can have same variables registered than last time he accessed the site (some way like amazon). If he doesn't clear his cookies, of course. I have my session class in session.inc with var $lifetime = 14400; but every time I connect to the site I get a new session, instead of resuming old one. Other session features work well in te site. I'm using authentication, db classes and session variables with success. Something pointing me to right direction could be enought. Thanks in advance, Andres _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |
From: Andres B. <and...@li...> - 2001-10-02 15:28:36
|
Hi, I would like to have persistent sessions. Let's say, I would like that someone that comes to my site and comes back in less than 10 days, can have same variables registered than last time he accessed the site (some way like amazon). If he doesn't clear his cookies, of course. I have my session class in session.inc with var $lifetime = 14400; but every time I connect to the site I get a new session, instead of resuming old one. Other session features work well in te site. I'm using authentication, db classes and session variables with success. Something pointing me to right direction could be enought. Thanks in advance, Andres |
From: nathan r. h. <na...@ds...> - 2001-10-01 16:05:56
|
This has been covered here before. Essentially you can't do what you want with cookies becasue of the design of cookies. Look back in the MARC archives (http://marc.theaimsgroup.com/) and do a search for the discssion (try "cookie ssl" or "cookie multiple domian cart"), the end solution was to pass along some data in a get string to get the other server to access the same data directly from the seesion (requred both mchines to have accedd to the MySQL data store). -n On Mon, 1 Oct 2001, Mauricio Cuenca wrote: > Hello, > > I developed a small Shopping Cart using PHPLib 7.2c and PHP 3.x. Now we > required the final process of the Cart to be processed over an SSL > Connection with a different domain name. > > My question is how can I preserve the cookies from one domain to another ? > How can I set cookies for both domains each time a cookie is set ? > > I tried appending the session ID to each one of the URLs in the site, but > this does not work. > > TIA, > > _____________________ > Mauricio Cuenca > mc...@Te... > > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- nathan hruby / digital statement na...@ds... http://www.dstatement.com/ Public GPG key can be found at: http://www.dstatement.com/nathan-gpg-key.txt ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
From: Mauricio C. <fa...@mi...> - 2001-10-01 15:36:42
|
Hello, I developed a small Shopping Cart using PHPLib 7.2c and PHP 3.x. Now we required the final process of the Cart to be processed over an SSL Connection with a different domain name. My question is how can I preserve the cookies from one domain to another ? How can I set cookies for both domains each time a cookie is set ? I tried appending the session ID to each one of the URLs in the site, but this does not work. TIA, _____________________ Mauricio Cuenca mc...@Te... |
From: Marko K. <Mar...@mc...> - 2001-09-28 12:28:36
|
> find a bug, think you find a bug, something looks like a bug, please file yes, Nathan, you're right. I did so in the past on the old list, that was still before you took over the phplib site and all. But since quite a while I am too busy to make a sufficient rewrite of my database applicatioin (which is necessary and pending, as always) since I needed to concentrate more on the stuff which should be stored in it... ;) So I am a little out of the game. But I hope to be able to contribute again after a while as soon as I start to add new features to my code or clean it up. > If you'd like to pay me, I'd be happy to hack on phplib full time ;-) You > are correct, we're all busy with all of the projects we have and it's been > espically hard for me right now. I'm trying but it's very difficult. I can imagine, read your post some days/weeks ago about making a living with this stuff. I can imagine that this is not very easy to do in a proprietary world like this. I admire folks like you who do so much for free projects like this where everybody reuses, improoves and offers valuable bits of code to the rest of the world and make life much easier for us. Thanks to you, Kristian Koehntopp, Sascha Schumann, Maxim Derkachev ....... endless list. Good luck! Warmest Regards, Marko Kaening |
From: nathan r. h. <na...@ds...> - 2001-09-28 12:13:09
|
On Fri, 28 Sep 2001, Marko Kaening wrote: > > Given the current situation on sourceforge one might conclude that phplib > is really nothing for beginners, only more experienced ppl would be able > to start without problems. I think I pointed that out already months ago > still on the old list at netuse, but up to now little changed. > Well, I don't think it was ever for the faint of heart in the first place :) We are trying to fix the brokenness, but I don't use all the modules so it's up to you all to point out the broken things (and in a perfect world provide patches, but hey.. I'm happy with a bug report). I'm not trying to point fingers, but some of these issues were news to me. If you find a bug, think you find a bug, something looks like a bug, please file it as such as SF, the worst anyone can do is close it NAB, the best being that you discover some annoying little thing that irks us all but have never discovered. > I personally know very well that it's not so easy to keep everything going > if you still have other things to do at your job and also to take care for > a project like this at the same time. > If you'd like to pay me, I'd be happy to hack on phplib full time ;-) You are correct, we're all busy with all of the projects we have and it's been espically hard for me right now. I'm trying but it's very difficult. -n -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- nathan hruby / digital statement na...@ds... http://www.dstatement.com/ Public GPG key can be found at: http://www.dstatement.com/nathan-gpg-key.txt ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
From: nathan r. h. <na...@ds...> - 2001-09-28 12:05:36
|
On Fri, 28 Sep 2001, Joerg Behrens wrote: > > Take a look to the imlib2. This graphiclibary have some nice functions and > it runs faster than the gdlib > There's also a php extension for imlib as well. The nice thing about imlib: imlib_rotate_image() Better than reading each pixel in a file and moving it to it's correct location in a new image just to get the damn thing right-side up. -n -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- nathan hruby / digital statement na...@ds... http://www.dstatement.com/ Public GPG key can be found at: http://www.dstatement.com/nathan-gpg-key.txt ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
From: Marko K. <Mar...@mc...> - 2001-09-28 08:26:37
|
> I'm using the phplib 7.2b/c for a long time ago and now im using the the cvs > version and i`m really afraid. I have the same feeling. I am using a modified 7.2c with an older version of Maxim Derkachevs PHP4 session extension and I am still happy with it. No problems up to now. But I needed a while to get to this stage since all those minor errors where also in my original files which I pulled a year ago. Unfortunately the PHPLIBs archives, even now the CVS version is still not up to date and seems to be fairly non-bullet-proof. This is really sad, since phplib itself is a very powerful tool. Given the current situation on sourceforge one might conclude that phplib is really nothing for beginners, only more experienced ppl would be able to start without problems. I think I pointed that out already months ago still on the old list at netuse, but up to now little changed. Please get me right, I am not going to blame anybody or criticize. It's just a fact that a beginner would run into problems if he'd like to get started with phplib. I actually stopped updating my files, since at a certain stage I couldn't afford to create new problems AND making my application unstable again. I personally know very well that it's not so easy to keep everything going if you still have other things to do at your job and also to take care for a project like this at the same time. Marko |
From: Joerg B. <be...@ta...> - 2001-09-28 07:40:25
|
hi, ----- Original Message ----- From: "Brian Popp" <bp...@ct...> To: "Phplib (E-mail)" <Php...@li...> Sent: Thursday, September 27, 2001 10:15 PM Subject: [Phplib-users] GD Library with GIF support > This is a little OT, but does anyone know where I can find a recent (ph= p > version 4.0.5 or >) php_gd.dll that supports GIF for Unix and/or Window= s. I > know it was intentionally removed and is "illegal" and all, but I'm > collecting "cease-and-desist" letters and want another one for my > collection. For Unix there is a gdlib 1.8.4 with gif and autoconf support aviable at http://www.rime.com.au/gd/ . For Windows take a look at www.php4win.com. This distribution ships out with 2 version of the gdlib one with an the other without gif support. Take a look to the imlib2. This graphiclibary have some nice functions an= d it runs faster than the gdlib Hope this helps Joerg Behrens -- TakeNet GmbH Mobil: 0171/60 57 963 D-97080 Wuerzburg Tel: +49 931 903-2243 Alfred-Nobel-Stra=DFe 20 Fax: +49 931 903-3025 |
From: sam <sam...@we...> - 2001-09-27 22:48:40
|
hi! i´ve got a problem with template.inc. $printout="hi{\$test}hi"; $tpl = new Template(); $tpl->set_var(array( "test"=>$printout) after parsing everything between {$ and } is not displayed. it only prints hihi. hope u understand my problem and can help me. sam |
From: Brian P. <bp...@ct...> - 2001-09-27 20:06:56
|
This is a little OT, but does anyone know where I can find a recent (php version 4.0.5 or >) php_gd.dll that supports GIF for Unix and/or Windows. I know it was intentionally removed and is "illegal" and all, but I'm collecting "cease-and-desist" letters and want another one for my collection. Thanks, BPopp - bpopp.net |
From: Joerg B. <be...@ta...> - 2001-09-27 17:53:17
|
Hi, i would say no. In the cvs version thats is aviable at sourceforge the ar= e several minor errors and some things that wont works as aspected. 1. In prepend.php3 there is an > missing at the end. 2. Per default there was a class created in local4.inc called 'example_CT_Cookie' but some one forget to load 'ct_cookie.inc' in prepend.php3 3. The registerform.ihtml canot be loaded in auth_registerform because t= he '$_PHPLIB["libdir"]' is missing in the include. 4. Its possible to create accounts over the registerfrom without insert = a username and password. Sound not like a good idea? 5. Is the password encrytion working in the Auth_SQL class ? Using a clas= s that looks like class MyAuth extends Auth_Sql { var $classname =3D "MyAuth"; var $lifetime =3D 15; var $mode =3D "log"; ## can do "log" as well. var $passenc =3D "base64"; var $database_class =3D "MyDb"; var $database_table =3D "auth_user"; var $nobody =3D true; ## true for default authentication var $cancel_login =3D "cancel_login"; } wouldnt work as aspected. The password was always storing in plaintext mo= de into the database. I have test this with 'md5' too. 6. I cant get the $cancel_login to work Have someone a small example for= me how to works with this feature ? 7. The old 'html' documentations is outdated or why is it removed ? 8. When using session4.inc with trans-sid there was 2 sids creating in a = the loginform: One with the $this->url() funktions and the other one as a hid= den field. 9. Using the default authentication ($nobody =3D true) and $auth->login_if($again) in all the pages it is impossilbe to login becaus= e the loginform uses $this->url() and create a url like this. 'http://foobar.com/index.php?again=3Dtrue&sid=3Dabcdef123 .' Now im going= into a loop because $again is setting to 'true' and calls $auth->login_if($again= ) again. I'm using the phplib 7.2b/c for a long time ago and now im using the the = cvs version and i`m really afraid. with best regards Joerg Behrens -- TakeNet GmbH Mobil: 0171/60 57 963 D-97080 Wuerzburg Tel: +49 931 903-2243 Alfred-Nobel-Stra=DFe 20 Fax: +49 931 903-3025 |
From: Feite B. <fei...@os...> - 2001-09-27 09:53:30
|
Hi, I have created some shopping site using phplib and extended the cart class. Now I had *NO* problems when using the basic functionality of the add_item(..) method of the cart class. Because I needed to have the possiblity to save options for an article I created an article object that can hold the options for this article and I extended the derived cart class with a new add_item_new(..) method to be able to store an object in an item array . Storing an object with this code leads to an error: $this->extendeditem[$idx] = array ( "code" => $articlecode, "num" => $num, "articleObject" => $artObj ); ******** Parse error: parse error in session.inc on line 272 ******** but Session.inc has nothing to do with it ! If I make it like this: $this->extendeditem[$idx] = array ( "code" => $articlecode, "num" => $num ); ... the error is gone. But then of course I don't get the object stored. I did some testing with storing objects in an array like the code below and that works just fine. <?php $db = new DB_shop; $ao = array(); $art = new Article($db); $art->GetDetails('AD011520'); $ao[] = $art; unset($art); $art = new Article($db); $art->GetDetails('AD011521'); $ao[] = $art; unset($art); $art = new Article($db); $art->GetDetails('AD011526'); $ao[] = $art; unset($art); reset($ao); # Loop through all the Article objects and display their Details using the ShowDetails method of the object while(list($k, $v) = each($ao)) { echo("----------------------- $k -------------------------- <BR>\n"); $v->ShowDetails(); } ?> So my question is : Why is it not possible to store an object by passing is to a method of a cart object ? Hope someone can help me out here, thanks ! -- Feite Brekeveld fei...@os... http://www.osiris-it.nl |
From: White, B. <rc...@sb...> - 2001-09-26 16:11:27
|
Hi All, I have read all the docs and the code and am trying to implement some pages that are secured. This is how I want it to work. A person logs in on a protected page, he can go to any page offered him through a link. If he logs out his session/permissions expire. If he goes "Home" the permissions time out. What do you put (as far as code) on the pages called by the initial page called at login? And what do you put on the subsequent pages? I just want to verify the person accessing the page has the right permissions. Any suggestions would be greatly appreciated. Bob White |
From: Layne W. <la...@if...> - 2001-09-26 15:36:46
|
> This solution is close to something I am Tring to figure out. The big > difference is that in my case I am Tring to get it so that if there are > no SUB_MENU entities the sub menu section is not displayed. From the > way the example code works an empty SUB_MENU is produced even if there > is no instance of the sub menu being generated. How would I work around > this? > >> i need to use this kind of block in a template >> >> <!-- BEGIN MENU --> >> <tr> >> <td><a href="{NAME_MENU}"><img src="{IMG_MENU}"></a> >> </tr> >> <!-- BEGIN SUB_MENU --> >> <tr> >> <td><a href="{NAME_SUB_MENU}"><img src="{IMG_SUB_MENU}"></a> >> </tr> >> <!-- END SUB_MENU --> >> <!--END MENU --> > > $tpl = new Template("../templates/"); > $tpl->set_file("example", "example.tpl"); > $tpl->set_block("example", "MENU"); > $tpl->set_block("MENU", "SUB_MENU", "SUB_MENUS"); > > while( some loop that sets your variables ) { > $tpl->set_var(array("NAME_SUB_MENU" => $name_sub_menu, > "IMG_SUB_MENU" => $img_sub_menu)); > $tpl->parse("SUB_MENUS", "SUB_MENU", true); > } > > $tpl->pparse("example", array("MENU")); Add on the menu loop and clear out the sub-menu variable after each menu loop. $tpl = new Template("../templates/"); $tpl->set_file("example", "example.tpl"); $tpl->set_block("example", "MENU", "MENUS"); $tpl->set_block("MENU", "SUB_MENU", "SUB_MENUS"); while ( loop that pulls menu info ) { $tpl->set_var(array("NAME_MENU" => $name_menu, "IMG_MENU" => $img_menu)); while ( loop that pulls sub-menu info ) { $tpl->set_var(array("NAME_SUB_MENU" => $name_sub_menu, "IMG_SUB_MENU" => $img_sub_menu)); $tpl->parse("SUB_MENUS", "SUB_MENU", true); } $tpl->parse("MENUS", "MENU", true); $tpl->set_var("SUB_MENUS", ""); } Layne Weathers Ifworld Inc |
From: Eric N. <nau...@ab...> - 2001-09-26 15:18:10
|
This solution is close to something I am Tring to figure out. The big = difference is that in my case I am Tring to get it so that if there are no = SUB_MENU entities the sub menu section is not displayed. From the way the = example code works an empty SUB_MENU is produced even if there is no = instance of the sub menu being generated. How would I work around this? >>> "Layne Weathers" <la...@if...> 09/10/01 10:50AM >>> > i need to use this kind of block in a template > > <!-- BEGIN MENU --> > <tr> > <td><a href=3D"{NAME_MENU}"><img src=3D"{IMG_MENU}"></a> > </tr> > <!-- BEGIN SUB_MENU --> > <tr> > <td><a href=3D"{NAME_SUB_MENU}"><img src=3D"{IMG_SUB_MENU}"></a> > </tr> > <!-- END SUB_MENU --> > <!--END MENU --> $tpl =3D new Template("../templates/"); $tpl->set_file("example", "example.tpl"); $tpl->set_block("example", "MENU"); $tpl->set_block("MENU", "SUB_MENU", "SUB_MENUS"); while( some loop that sets your variables ) { $tpl->set_var(array("NAME_SUB_MENU" =3D> $name_sub_menu, "IMG_SUB_MENU"= =3D> $img_sub_menu)); $tpl->parse("SUB_MENUS", "SUB_MENU", true); } $tpl->pparse("example", array("MENU")); Layne Weathers Ifworld Inc _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |
From: Layne W. <la...@if...> - 2001-09-25 14:41:38
|
> My ISP has PHP 3.0.7 and all I'm using of PHPlib is template.inc. > > However, that file uses a method that didn't exist until 3.0.9. > preg_quote(); > is there a work around for this? You mean beside telling your ISP that the summer of 1999 has come and gone? I don't know what the workaround is, but if your ISP hasn't updated PHP, then I'd be willing to bet (based on personal experience) they haven't updated much else. I hope you don't have any sensitive data in your website - that server is begging to be compromised. If you are using this server to play around with personal projects then you will be fine, but if you are doing work for your business or a client it is your moral obligation to operate in a responsible server environment. I would (and did, in a similar situation) change ISPs, explaining to the old ISP exactly why they are losing my business. Layne Weathers Ifworld Inc |
From: Benjamin S. <bsh...@cs...> - 2001-09-25 11:26:28
|
Hi- My ISP has PHP 3.0.7 and all I'm using of PHPlib is template.inc. However, that file uses a method that didn't exist until 3.0.9. preg_quote(); the actual line is line 297 of template.inc (7.2d) /* private: varname($varname) * varname: name of a replacement variable to be protected. */ function varname($varname) { return preg_quote("{".$varname."}"); } is there a work around for this? thanks, Benjamin |
From: Eric M. <er...@pa...> - 2001-09-24 23:10:51
|
"nathan r. hruby" wrote: > > On Mon, 24 Sep 2001, Jesse Swensen wrote: > > > The only change I have thought would be nice would be to support commit and > > rollback. Currently all transactions are auto committed. I have looked > > into it and would be a minor thing to add. > > > > Now that Sleepycay DB and INNO DB tables provide transaction abilites to > MySQL I think the lack of commit / rollback will need to be addressed > there as well. I haven't used them yet so I can't offer any good comments > on them, their effectiviness, speed or anyhting, but they seem like a > feature we'd want to support. > I agree -- like I said, I extended db_sybase.inc to do this for myself, and I have used transactions extensively in my PHPLIB/Sybase code. I don't think my current code is clean enough, but I would be willing to clean up what I have done for Sybase and submit it to the group if there is an agreed-upon set of methods that need to be available for this purpose. Eric |