phplib-users Mailing List for PHPLIB (Page 88)
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: John L. <jl...@av...> - 2001-09-18 09:03:12
|
I know how you feel. I'd love to make a living with php and linux (LAMP) but the jobs don't seem to be there. There seems to be a few more on the West Coast USA however than the East coast. I keep hearing, especially at the recent San Diego Open Source convention, that linux is here to stay but back here in Wash, DC there's not even a php users group. Gee, maybe I should start one. John Lewis php developer http://www.livingpages.com/ nathan r. hruby wrote: >Ok.. > >I hate my job. It makes me miserable. This has been so for a while but >has gotten to the point that I need to sneak off to the server room to >write an email. Oh wait.. Sorry almost went a'ranting.. > >So my question to you, the best folks of the php world, is how many of you >are making a living as freelance php coders? Is it possible to make a >living doing this or am I setting my self up for eviction? In the past >I've gotten the odd offer for freelance work associated with phpSlash, >which I've always been too busy to take, but I'm pretty sure that phpSlash >wouldn't pay the bills -- is there other stuff out there, espically in the >post-dot-bomb? If you are making it, what stratigies have worked for you? >Where have you picked up work? (things posted online, mailing lists, >word-of-mouth?) |
From: nathan r. h. <na...@ds...> - 2001-09-17 18:30:17
|
Ok.. I hate my job. It makes me miserable. This has been so for a while but has gotten to the point that I need to sneak off to the server room to write an email. Oh wait.. Sorry almost went a'ranting.. So my question to you, the best folks of the php world, is how many of you are making a living as freelance php coders? Is it possible to make a living doing this or am I setting my self up for eviction? In the past I've gotten the odd offer for freelance work associated with phpSlash, which I've always been too busy to take, but I'm pretty sure that phpSlash wouldn't pay the bills -- is there other stuff out there, espically in the post-dot-bomb? If you are making it, what stratigies have worked for you? Where have you picked up work? (things posted online, mailing lists, word-of-mouth?) I can run a mean linux system too, but linux geeks are a dime a dozen in a university town. Insight, opinions, flames, job offers and anything else welcome. -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: James W. <jwi...@ma...> - 2001-09-17 18:09:34
|
At 7:36 PM +0200 9/17/01, giancarlo pinerolo wrote: >I don't think you have to handle the cancel_login button withinn your >code. Phplib's Auth handles that. Right... but I was not able to make it work so I took some extra measures. This would protect for register_globals = off anyway... >Did you change to default_auth the whole Auth class? Not sure what you mean, but I did what I think to be the standard method: subclass your subclassed Auth setting $nobody = true. i.e.: MyAuth extends Auth { [stuff] } MyDefaultAuth extends MyAuth { var $classname = "MyDefaultAuth"; var $nobody = true; } >If you set 'nobody, >it is not a persistent slot, and when the page is reinitialized is reset >to the original. >In any page that has $auth->nobody the only way to see if he is >'someone' is to use $perm->whatever. So should there be code in every page that does something like: if ($perm->have_perm("user")) { $auth->nobody = false; } >Anyway, for 'nobody' too I think the cancel_login should be taken care >by Phplib. > >Did you try to provide a 'cancel_login' button inside the default >loginform? not completely inside... I made a test button inside it's own form (same names and variables) just to see if I could get it to work (there can't be a 'cancel button' in the finished site, just a link that would take them back to page.php under default_auth). I can try it inside the regular login form though and see what happens... >Is the user, once logged on, going to that same page or elsewhere? I have both situations in the site actually... there is a login form on index.php where submission of this form should authenticate and then go to page.php. And then, if already on page.php and the user clicks the login link (page.php?again=yes) |
From: giancarlo p. <gia...@na...> - 2001-09-17 17:42:45
|
I don't think you have to handle the cancel_login button withinn your code. Phplib's Auth handles that. Did you change to default_auth the whole Auth class? If you set 'nobody, it is not a persistent slot, and when the page is reinitialized is reset to the original. In any page that has $auth->nobody the only way to see if he is 'someone' is to use $perm->whatever. Anyway, for 'nobody' too I think the cancel_login should be taken care by Phplib. Did you try to provide a 'cancel_login' button inside the default loginform? Is the user, once logged on, going to that same page or elsewhere? Giancarlo James Wigdahl wrote: > > I'm hoping someone can walk me through this. I know I'm close, but I'm unable to make this work after scouring the list archives, google and raging... > > I have a page "page.php" that opens as such: > > ### PROTECTED PAGE ### > > <?php > > if (isset($HTTP_GET_VARS["l"])) { > $l = $HTTP_GET_VARS["l"]; > } > if (isset($HTTP_POST_VARS["cancel_login"])) { > $cancel_login = $HTTP_POST_VARS["cancel_login"]; > $l = 0; > } else if (isset($HTTP_GET_VARS["cancel_login"])) { > $cancel_login = $HTTP_GET_VARS["cancel_login"]; > $l = 0; > } > > require ("../inc/config.php"); > > page_open( array( "sess" => "Wg_Session", "auth" => "Wg_Default_Auth")); > > if ($cancel_login) { > $auth->nobody = true; > } > $auth->login_if($l); > > [stuff] > > ?> > ### END OF PROTECTED PAGE ### > > There is a link on this page, that if clicked, reloads the page as "page.php?l=yes" which effectively triggers the login_if() and presents the login form specified in auth_loginform() of my Auth subclass. > > My login form looks like the following: > > ### LOGIN FORM ### > > [stuff] > > <a href="<?php $sess->purl("page.php?cancel_login=yes"); ?>">Go back to the protected page</a>. > <form method="post" name="cancel" action="<?php $sess->purl(); ?>"><input type="submit" name="cancel_button" value="Go Back"></form> > > [stuff] > > ### END OF LOGIN FORM ### > > I have added the following code to auth_validatelogin() of my subclassed Auth as indicated at http://marc.theaimsgroup.com/?l=phplib&m=94269299705992&w=2 (thank you Gian): > > ### STUFF ADDED TO auth_validatelogin() ### > > if (isset($username)) { > $this->auth["uname"] = $username; // This provides access for "loginform.ihtml" > } else if ($this->nobody) { // Provides for default login cancel > $uid = $this->auth["uname"] = $this->auth["uid"] = "nobody"; > return $uid; > } > > ### END STUFF ADDED TO auth_validatelogin() ### > > I have even explicitly set "var $cancel_login = "cancel_login";" in my Auth subclass. > > I am still unable to get the login process to cancel whether I click the link on the login page, or whether I click the button named "cancel_button". No matter where I go, I just get the login page. > > I have begun delving into auth.inc into the code that's supposed to make this happen, but I haven't found why this is failing yet. Anyone have any ideas? > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users |
From: James W. <jwi...@ma...> - 2001-09-16 16:56:28
|
I'm hoping someone can walk me through this. I know I'm close, but I'm unable to make this work after scouring the list archives, google and raging... I have a page "page.php" that opens as such: ### PROTECTED PAGE ### <?php if (isset($HTTP_GET_VARS["l"])) { $l = $HTTP_GET_VARS["l"]; } if (isset($HTTP_POST_VARS["cancel_login"])) { $cancel_login = $HTTP_POST_VARS["cancel_login"]; $l = 0; } else if (isset($HTTP_GET_VARS["cancel_login"])) { $cancel_login = $HTTP_GET_VARS["cancel_login"]; $l = 0; } require ("../inc/config.php"); page_open( array( "sess" => "Wg_Session", "auth" => "Wg_Default_Auth")); if ($cancel_login) { $auth->nobody = true; } $auth->login_if($l); [stuff] ?> ### END OF PROTECTED PAGE ### There is a link on this page, that if clicked, reloads the page as "page.php?l=yes" which effectively triggers the login_if() and presents the login form specified in auth_loginform() of my Auth subclass. My login form looks like the following: ### LOGIN FORM ### [stuff] <a href="<?php $sess->purl("page.php?cancel_login=yes"); ?>">Go back to the protected page</a>. <form method="post" name="cancel" action="<?php $sess->purl(); ?>"><input type="submit" name="cancel_button" value="Go Back"></form> [stuff] ### END OF LOGIN FORM ### I have added the following code to auth_validatelogin() of my subclassed Auth as indicated at http://marc.theaimsgroup.com/?l=phplib&m=94269299705992&w=2 (thank you Gian): ### STUFF ADDED TO auth_validatelogin() ### if (isset($username)) { $this->auth["uname"] = $username; // This provides access for "loginform.ihtml" } else if ($this->nobody) { // Provides for default login cancel $uid = $this->auth["uname"] = $this->auth["uid"] = "nobody"; return $uid; } ### END STUFF ADDED TO auth_validatelogin() ### I have even explicitly set "var $cancel_login = "cancel_login";" in my Auth subclass. I am still unable to get the login process to cancel whether I click the link on the login page, or whether I click the button named "cancel_button". No matter where I go, I just get the login page. I have begun delving into auth.inc into the code that's supposed to make this happen, but I haven't found why this is failing yet. Anyone have any ideas? |
From: nathan r. h. <na...@ds...> - 2001-09-16 15:30:02
|
On Sat, 15 Sep 2001, Daniel Bondurant wrote: > what is up with the debian packages for phplib? > Dunno.. Who's the package maintainer for debian? Anyone, Anyone? > unstable is version 7.2d-1 which works fine, As it should be.. this actually should be in stable... > however testing (woody) is version 7.3dev-3.1 7.3-dev was an experiment gone bad, it was *never* meant for production use and is not, will not be maintained or supported. It needs to be dropped from debian ASAP. > and it has some strange dates in it. > for instance template.inc is version 1.9 with a date from 1999 > Yes, 7.3-dev is old, it's a copy of the php-lib CVS branch from a long time ago, eg: pre-7.2c Again folks: Please don't use this version! (It has bugs-a-plenty and the session data has a different format that is incompatible with the current 7.2x session stuff) > also, is there any way to get *4.inc files into the package? > Yes.. we're working on that for 7.4 which can make its way into testing, unstable, etc... When will this be out? I dunno. We're all a bit busy but I'll see if we can at least get a -pre tarball out in the coming week. Anyone wishing to test the php-lib-stable CVS module from SourceForge is welcome and *please* submit bug reports. This module has seen a lot of attention from Richard Archer (Thanks Richard!) who's trying to fix stupidities, broken-ness and other evil things. Session4, Session4-custom and User4 will all move into 7.4 sometime soon, but are availible from the php-lib CVS module now for anyone wanting to try them. -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: Daniel B. <bo...@io...> - 2001-09-16 04:46:41
|
d2hhdCBpcyB1cCB3aXRoIHRoZSBkZWJpYW4gcGFja2FnZXMgZm9yIHBocGxpYj8NCiANCnVuc3Rh YmxlIGlzIHZlcnNpb24gNy4yZC0xIHdoaWNoIHdvcmtzIGZpbmUsDQpob3dldmVyIHRlc3Rpbmcg KHdvb2R5KSBpcyB2ZXJzaW9uIDcuM2Rldi0zLjENCmFuZCBpdCBoYXMgc29tZSBzdHJhbmdlIGRh dGVzIGluIGl0Lg0KZm9yIGluc3RhbmNlIHRlbXBsYXRlLmluYyBpcyB2ZXJzaW9uIDEuOSB3aXRo IGEgZGF0ZSBmcm9tIDE5OTkNCiANCmFsc28sIGlzIHRoZXJlIGFueSB3YXkgdG8gZ2V0ICo0Lmlu YyBmaWxlcyBpbnRvIHRoZSBwYWNrYWdlPw0KIA0KdGhhbmtzDQpEYW5pZWwNCg== |
From: Peter K. <ho...@pe...> - 2001-09-13 22:03:35
|
Hello, I have follow problem i would like make my new homepage whit phplib, i would like use the templates classes, in my start folder i have successfuly bind the template classes, www.peter-karsten.de/petterchen/index.php inputs the template files who are saved in www.peter-karsten.de/petterchen/tpl/german now my problem, i will that one button in my navigation rufen tells the login formular i thinks that is the : www.peter-karsten.de/petterchen/php/index.ihtml but what can i do so that i not must changed the two files for get the same design, i wish i can insert the template file in the login.ihtml, but i thinks that no rulez, at bottom is the code of my index.php page, can i implemente the login formular in the template or in the page? I know that when i get $left_nav_id ==124 the login screen must be started, but i would like the form in my tables, so that the navigation not change and the design not change and for change the design of the page i wolud change only file/page only thanks for you help peter karsten <? include("php/prepend.php3"); if ($left_nav_id == "124") { page_open(array("sess" => "Example_Session", "auth" => "Example_Auth", "perm" => "Example_Perm")); $perm->check("admin"); } else { page_open(array("sess" => "Example_Session")); } // Template no es del nucleo de PHPLIB por lo que hay que // incluir esta clase de forma explicita. include("php/template.inc"); if($HTTP_HOST == "212.12.58.6" OR $HTTP_HOST =="localhost" or $HTTP_HOST == "192.168.0.100" or $HTTP_HOST == "netplaze") { #$plantillas = "c:/apache/htdocs/tpl"; $plantillas = "/usr/local/apache/htdocs/petter/tpl/"; } else { $plantillas = "/kunden/homepages/27/d31129490/htdocs/petterchen/tpl"; } $plantillasSpanish = $plantillas."/german"; $plantillasGerman= $plantillas."/german"; $plantillasEnglish= $plantillas."/german"; // Ya sabemos que usuario es $auth[uname] // La funcion miraIdioma accederia a la base de datos para ver que // idioma le corresponde a un usuario. #$idioma=miraIdioma ($auth[uname]); if(!isset($language)) { $language = german; } if ($language == "spanish") $t=new Template($plantillasSpanish); elseif ($language == "english") $t=new Template($plantillasEnglish); elseif ($language == "german") $t=new Template($plantillasGerman); else {echo "Error en la seleccion de idioma.";exit;} # define variables named page and box, referencing files $t->set_file(array( "header" => "header.tpl", "body" => "body.tpl")); # extract the block named "row" from "body", creating a # reference to {rows} in "box". $t->set_block("body", "row", "rows"); # define the variables TITLE and PAGETITLE if(!isset($top_nav_id)) { $top_nav_id = "100"; $navtitle = "Petter's Home"; } else { $db = new DB_Example; $db->query("select * from top_nav where top_nav_id = '$top_nav_id'"); $db->Next_Record(); $navtitle = $db->f("$language"); } if (isset($left_nav_id)) { $db->query("select * from left_nav where left_nav_id = '$left_nav_id'"); $db->Next_Record(); $subtitle = $db->f("$language"); } else { $subtitle = $navtitle; } $t->set_var(array("TITLE" => "~.~*~.~ Petter's home ~.~*~.~", "NAVTITLE" => $navtitle, "SUBTITLE" => $subtitle, "LANGUAGE" => $language )); $db = new DB_Example; $db->query("select * from left_nav where top_nav_id = '$top_nav_id'"); while ($db->Next_Record()) { $link = "".$db->f("link").""; $startseite = "".$db->f("language").""; if($top_nav_id == 6) { $link .= ""; } else if ($startseite == "Zur Startseite" && $startseite == "Pagina inicial" && $startseite == "Homepage") { $link ="?language=$language"; } else { $link .= "?language=$language&top_nav_id=$top_nav_id&left_nav_id=".$db->f(left_nav_id ).""; } $t->set_var(array("LEFTNAV" => $db->f($language), "LEFTLINK" => $link )); $t->parse("rows", "row", true); } # build out from box, then build out from page... $t->parse("out", array("body", "header")); # finish out and print it. $t->p("out"); ?> |
From: Giancarlo P. <gia...@na...> - 2001-09-13 21:52:58
|
Brian Popp wrote: > > Thanks much Gian. The article you referenced in your response fixed the > problem. For those with CVS access, this fix apparently hasn't been added to > the latest revision (and probably should in my opinion). > > http://marc.theaimsgroup.com/?l=phplib&m=94269299705992&w=2 > That is one of those collectors' patches II reapply manually from one version of Phplib to another. I was only too timid to commit it. It does very much the same your validatelogin in phpbugtracker does: return 'nobody' if no username is entered and auth->nobody is true. - Gian |
From: Richard A. <rh...@ju...> - 2001-09-13 21:13:52
|
At 6:03 PM +0100 13/9/01, Peter Bowyer wrote: >Fatal error: Call to unsupported or undefined function >sendcard_template() in /web/sites/xxxxxx/sendcard/sendcard.php on line >367 Sounds like your sub class does not have a constructor function with the name of the class. See http://www.php.net/manual/en/language.oop.constructor.php ...R. |
From: Peter B. <re...@f2...> - 2001-09-13 18:49:35
|
Hi, I am having problems getting template.inc working with PHP3 - although it's probably my code at fault :-) I have the following subclass: Class Sendcard_Template extends Template { /* * private: */ function del_block($container, $handle) { $this->set_block($container, $handle); $this->set_var($handle, ""); } /***************************************************************************/ /* private: loadfile(string $varname) * varname: load file defined by varname, if it is not loaded yet. */ function loadfile($varname) { if (!isset($this->file[$varname])) { // $varname does not reference a file so return return true; } if (isset($this->varvals[$varname])) { // will only be unset if varname was created with set_file and has never been loaded // $varname has already been loaded so return return true; } $filename = $this->file[$varname]; /* use @file here to avoid leaking filesystem information if there is an error */ // $str = implode("", @file($filename)); if (floor(phpversion()) == 3) { $str = implode("", @file($filename)); } else { $str = _parseFile($filename); } if (empty($str)) { $this->halt("loadfile: While loading $varname, $filename does not exist or is empty."); return false; } $this->set_var($varname, $str); return true; } } // End Class Sendcard_Template ======================================================== When called, as per: $tpl = new Sendcard_Template($tpl_path); --oOo-- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk --oOo-- Peter's web page - Scottish narrow gauge in 009 http://members.aol.com/reywob/ --oOo-- |
From: Peter B. <re...@f2...> - 2001-09-13 18:38:28
|
Sorry about that. I've sent the completed message below. Hi, I am having problems getting template.inc working with PHP3 - although it's probably my code at fault :-) I have the following subclass: Class Sendcard_Template extends Template { /* * private: */ function del_block($container, $handle) { $this->set_block($container, $handle); $this->set_var($handle, ""); } /***************************************************************************/ /* private: loadfile(string $varname) * varname: load file defined by varname, if it is not loaded yet. */ function loadfile($varname) { if (!isset($this->file[$varname])) { // $varname does not reference a file so return return true; } if (isset($this->varvals[$varname])) { // will only be unset if varname was created with set_file and has never been loaded // $varname has already been loaded so return return true; } $filename = $this->file[$varname]; /* use @file here to avoid leaking filesystem information if there is an error */ // $str = implode("", @file($filename)); if (floor(phpversion()) == 3) { $str = implode("", @file($filename)); } else { $str = _parseFile($filename); } if (empty($str)) { $this->halt("loadfile: While loading $varname, $filename does not exist or is empty."); return false; } $this->set_var($varname, $str); return true; } } // End Class Sendcard_Template ======================================================== When called, as per: $tpl = new Sendcard_Template($tpl_path); under PHP it generates the following error: Fatal error: Call to unsupported or undefined function sendcard_template() in /web/sites/xxxxxx/sendcard/sendcard.php on line 367 Can somebody please tell me what I'm doing wrong? I usually use PHP4, and it works fine there, but it just won't under PHP3. FYI, I've tried using PHP 3.0.9 and PHP 3.0.15. I've tried using the latest template.inc (1.8) and also 1.5. Thanks, Peter. --oOo-- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk --oOo-- Peter's web page - Scottish narrow gauge in 009 http://members.aol.com/reywob/ --oOo-- |
From: nathan r. h. <na...@ds...> - 2001-09-13 16:19:21
|
On Wed, 12 Sep 2001, Chris Johnson wrote: > Jesse's remarks on the nose for me. I think Richard was right that the > standard local.inc is a bit much. We probably ought to ship several example > local.inc files or something. Ideally, we would get to where Jesse > suggests: application specific prepend and local.inc files. That way, a > phpLIB installation could be shared by multiple applications -- without > stepping on each other's toes, so to speak. > phpSlash does this already, all of our phplib stuff is contained within our config.php3 file. It rocks, we ignore local.inc and all we require is that the right DB_Sql is included in the prepend.php3 file. (and since we only support mysql right now, configuration is dead easy, untar and go.) -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-13 14:33:05
|
This didn't make it to the list, and I think it should of. (Please note also that there are several sites devoted to finding victims, if you can find a way to make a search for all of them or get soem data sharing together please help those site ops out). And from TechTV by way of UserFriendly.org: If you have exta equipment laying around or are a MSCE or Citrix guru, go here: http://www.techtv.com/screensavers/showtell/story/0,23008,3347294,00.html and see how you can help the RedCross Emergency Teams. -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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ---------- Forwarded message ---------- Date: Wed, 12 Sep 2001 17:36:54 -0700 From: Alan T. Miller <am...@ho...> To: php...@li..., pea...@li... Subject: VOLUNTEERS NEEDED... USA Memorial website for Terrorist victims and families. Please forgive the off topic announcement I am posting here. However, I would like to make an appeal to the open source community, in this case the PEAR and PHPLIB communities, to assist in doing something to honor those who have tragically lost their lives as a result of the recent terrorist attacks on the US and help to alleviate some of the pain those families feel and the rest of us feel. I thought that it would be appropriate at this time to build a website where families of the victims can post a photograph or two of their loved ones along with a few words about those people. The site would serve to not only help ease the pain for those families but also to give the rest of us a venue to help deal with the tragedy and make sure that those who have lost their lives do not go unnoticed. I have been in contact with a fairly large ISP who may be willing to provide the server environment for this project, I have considered a few ideas for domain names, the problem is that the project is too big for me to handle by myself, and in the interests of timing, I simply need help to pull it off in a timely manner. If anyone is interested in helping coordinate and build such a site, please respond to me personally at am...@ho... or, if it is not innapropriate, here in this mail list. You might say I chose to contact those here in the PHPLIB and PEAR lists because I am comfortable working with PEAR components and PHPLIB, and feel after reading through and taking part in both of these lists for a while, I know some of you fairly well, and I know there are some very capable people in this list who like the spirit of open source itself, have a past of contributing to a good cause. The web site I have in mind would be simple at first with two main components. First, a user based system to allow families to log in and upload their photographs and text. Second, a web based front end to browse that information in the database. I have programmed some scripts for a site I use that can handle multiple photograph uploads but probabably need a good code review. Anyone interested??? |
From: darcy w. c. <da...@el...> - 2001-09-12 19:53:29
|
hi there, i've gotten into the habit of setting up my own prepend.php script for each site i host. i'm using the "php_admin_value auto_prepend_file" and "php_admin_value include_path". This may be more difficult for someone new to setup, but i think saves a lot of hassle down the road. Also, i rename the directory which contains all the code to phplib. i find the fact that there is a directory with examples called phplib a little confusing. Just my 2cents... Chris Johnson wrote: > > Jesse's remarks on the nose for me. I think Richard was right that the > standard local.inc is a bit much. We probably ought to ship several example > local.inc files or something. Ideally, we would get to where Jesse > suggests: application specific prepend and local.inc files. That way, a > phpLIB installation could be shared by multiple applications -- without > stepping on each other's toes, so to speak. > > ..chris > > ----- Original Message ----- > From: "Jesse Swensen" <ph...@sw...> > > I agree. Local.inc becomes a problem when you have multiple applications > you want to segregate the parts. The auto prepend and the local.inc should > be application specific or at least have the ability to be application > specific. > -- > Jesse > > > From: "nathan r. hruby" <na...@ds...> > > > The current local.inc is a bit loaded, but as all app writers know, we > > don't care about local.inc becasue we can use our own custom subclasses :) > > I think that, if anything, local.inc should be killed in favor of site and > > app specfic config files defining what's needed. > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users -- ~darcy w. christ Elegant Communications Inc. 416.362.9772 x222 | 416.362.8324 fax |
From: Chris J. <ch...@ch...> - 2001-09-12 19:32:47
|
Jesse's remarks on the nose for me. I think Richard was right that the standard local.inc is a bit much. We probably ought to ship several example local.inc files or something. Ideally, we would get to where Jesse suggests: application specific prepend and local.inc files. That way, a phpLIB installation could be shared by multiple applications -- without stepping on each other's toes, so to speak. ..chris ----- Original Message ----- From: "Jesse Swensen" <ph...@sw...> I agree. Local.inc becomes a problem when you have multiple applications you want to segregate the parts. The auto prepend and the local.inc should be application specific or at least have the ability to be application specific. -- Jesse > From: "nathan r. hruby" <na...@ds...> > The current local.inc is a bit loaded, but as all app writers know, we > don't care about local.inc becasue we can use our own custom subclasses :) > I think that, if anything, local.inc should be killed in favor of site and > app specfic config files defining what's needed. |
From: Lars H. <ph...@qu...> - 2001-09-12 13:22:33
|
Hi, which releases (session4.inc, session4_custom.inc) from CVS should I use, if I want to use PHP4 native sessions? Thanks, Lars |
From: Dima N. <Dim...@lu...> - 2001-09-12 10:27:35
|
> From: "Lazaro Ferreira" <la...@ii...> > To: <php...@li...> > Date: Tue, 11 Sep 2001 11:16:51 +0200 > Subject: [Phplib-users] Serving HTML from a remote php script > > > Hi > > this is off topic, but I've pulled my hairs (during hours) out on how = > can I include a php script output (plain HTML) into a remote HTML page = > (hosted in a non-php server), It seems something so straightforward, it = > isn't ? > > I've tried the HTML "OBJECT" TAG > <OBJECT classid=3D/path/to/phpscript.php> > </OBJECT> > without success > > please, can any body helps me > below a piece fo the HTML code output by the php script > ------------------------------------------------- > <!--[ / ]--> > <table width=3D150 border=3D"0"> > <tr>=20 > <td colspan=3D"2"> <span type=3D"text/css" style=3D"font-family : = > Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color : = > black;"><a type=3D"text/css" style=3D"font-size: 8pt; color : = > blue;"href=3Dhttp://www.mzbusiness.com/jobs/showapp.php?app_lang=3Duk&app= > _mode=3DFRM_SHOW&app_id=3D58 >Management Information/Administrative = > Assistant</a><br> > <b>USAID</b> Maputo (2001-08-17) </span></td> > </tr> > </table> > --------------------------------------------------- Well, my first PHPLib site did just that, and the quick and dirty solution was to write a CGI "tunnel", which simply connects to a socket on the "remote" server, requests the PHP script, and pipes out the output. Then you can include that with SSI. It's not terribly efficient, but it works... If you're interested, I could email you the code. Cheers, -- :D_ima Mr. Dima Nemchenko <Dim...@lu...> "Open source code is like lobster--most people who haven't tried it don't like the way it looks. But those who try it, love it." |
From: Giancarlo P. <gia...@na...> - 2001-09-11 22:17:57
|
Here it is. I was able to find that article by Stephen, even though phplib-users archives are KO. It contains some checkpoints worth considering. Anyway, if youu feel brave to try a new design of phplib, you find it in http://www.navigare.net/cgi-bin/cvsweb.cgi/pages_uap/ (uap = User/Auth/Perm) It is basically the same phplib methods, moved to somewhere else, or called byy something else in between. Kind of 3 tier, with a very minimal Auth, 'form' handling moved to page.inc (but should be moved to User->page->loginform in future), User as a 'middle-tier' to it. The idea is to have one or two features: Session and User (or just only User), and have Auth, Perms, Page, Storage, Log, Whatever, be a 'feature' of User. It is a start for having 'loadable User classes' as I wrote before. The code there works, and you'll find most of actual Phplib methods, but all is quite reengineered. It's only the 'pages' dir with a user, auth, and page inc within it. Read the code then please... It is fairly rough, unclomplete and a work in progress. -Gian |
From: Giancarlo P. <gia...@na...> - 2001-09-11 20:13:24
|
Brian Popp wrote: > > Thanks much Gian. The article you referenced in your response fixed the > problem. For those with CVS access, this fix apparently hasn't been added to > the latest revision (and probably should in my opinion). > > http://marc.theaimsgroup.com/?l=phplib&m=94269299705992&w=2 > That is one of those collectors' patches I reapply manually from one version of Phplib to another. I was only too timid to commit it. It is needed for the showoff page to work if auth->nobody is always on. Gian |
From: Giancarlo P. <gia...@na...> - 2001-09-11 20:12:52
|
First of all I am very happy we starded discussing on this. I think that providing a setup script doesn't diminishes the underlaying power of phplib, it just gives a tool to those a lot of users who just want an infallible setup. Of course it has to be infallible, otherwise... If he then needs something more specialized, the usual way is always available. I don't want to confuse application programmers' with 'phplib programmers'. We can be considered 'phplib programmers', but not everyone does. Of corse me or any phplib-core developer would not need that. Having the possibility to rely on a set of 'standard setups, can be useful for those who provide general-use packages based on phplib too, because they can say: if you have installed a 'standare phplib setup' then my application works as-is, otherwise do this and do that... If this only covers 30% of cases it is already a great result.. I am in no way saying that phplib itself has to be simplified. And in fact I am working on a redesign of the user/auth/perm classes, which in my opinion should be further expanded to encompass things as 'different schemes for groups' or the concept of 'application users', and some mechanism as 'stackable' User classes. You cannot deny that 31 total levels of permissions, atomic or inclusive, are not much, and can be a limit, for example if you provide access to different 'companies', or if you install a few applications based on phplib My idea, that of 'stackable' User classes (but you may want to call them 'Group classes' or 'Application User classes' then), came from these constatation: if you install multiple phplib applications, each wants to have its admin, authors, and whatever, and not to clash with preexisting ones. there are two solutions to this: kk groups/perms, or multiple User classes, loaded by a supervising 'Master User class' The first solution is more structural, clean, scalable, etc. and there is not much more to say about this than that 'groups' can be intended as 'application users groups', users that belong to a paricular application. The second solution is achieved by coding instead of defining relations among tables, but for it to work you need to have a 'Master User class' capale of instantiating other User classes, each one, possibly, accompaigned by its Auth and Perms, and even its auth_user tables if needed. And these 'Application User' classes can further be configurated to either: a)be merged into an unique, persistent User storage b)have their data sored in a separate, persistent record c) be reloaded everytime, that is not be made persistent You see that is not 'simplifying Phplib' at all, but making it really a framework. Of the above two methods, one doesn't exclude the other. So you could have KK groups/perms on top, I'd say for 'static' definition of groups/perms, 'and each application have it's own User/auth/perms loaded/unloaded, for more 'dynamic' groups/perms It's always the same dualism: structured data against code. I think it is importantt to give a programmer the possibility to 'defer' the implementation of an Auth to someone else, at a later time, without obliging the implementor to modify his code. The KK groups/perm scheme givesa good chance to simplify the integration of an application Auth scheme byy someone different than the author, reducing it to the creation of the necessary gruops/perms names in the various groups/perms tables. Anyway there was an interesting post on this list, that focused the main needs to accomplish this 'non-clashing' between application Auths/perms ad site 'Auths/Perms'. It listed the main 'checkpoints' to be passed in order to achieve independance. Cannot find it anymore. You know, the archiving of phplib-users doesn't work on sourceforge. - Gian nathan r. hruby wrote: > > On Mon, 10 Sep 2001, Richard Archer wrote: > > > > While these packages may offer a simple "just add one line" alternative > > to PHPLIB, they certainly don't have the power or extensibility of this > > library. > > > > Agreed. Dumbing down phplib isn't what's called for. Power and > flexibility mean a bit more complexity in the system (I think we all know > that) it's a small price to pay and modifity a few config files and maybe > learning a little php syntax is really not that hard, espically if you'll > be trying to make money off your phplib based site -- I assume youd want > to know how it works!. > > OTOH, making phplib easier to integrate with multiple apps is something we > should strive for; however a lage part of that relies on the application > authors to address those issues. It's not something that phlib can > easily or elegently deal with. A spec is needed and app writers should be > given several methods for publicizing their phplib specfic info or simply > not sharing with anyone. > > The current local.inc is a bit loaded, but as all app writers know, we > don't care about local.inc becasue we can use our own custom subclasses :) > I think that, if anything, local.inc should be killed in favor of site and > app specfic config files defining what's needed. > > -n |
From: darcy w. c. <da...@el...> - 2001-09-11 15:22:16
|
hi, i use the $login_not_required variable and the associated code to allow users to access certain pages without being forced to login. Someone suggested this code a while back. Anyway, i've discovered a circumstance where it is possible to login and then go to another website. While looking at other websites, the authenication expires and then upon returning to the site and going to a page with the $login_not_required, the user appears to be still logged in. Has anyone encountered this? Does anyone have any suggestions how to force the expiration? i appreciate the help. -- ~darcy w. christ Elegant Communications Inc. 416.362.9772 x222 | 416.362.8324 fax |
From: Layne W. <la...@if...> - 2001-09-11 13:49:24
|
> OK, but there still is no connection closed, or is there something > I don't see? From the documentation <http://php.net/manual/en/function.mysql-connect.php>: The link to the server will be closed as soon as the execution of the script ends, unless it's closed earlier by explicitly calling mysql_close(). Layne Weathers Ifworld Inc |
From: Lazaro F. <la...@ii...> - 2001-09-11 09:06:47
|
Hi this is off topic, but I've pulled my hairs (during hours) out on how = can I include a php script output (plain HTML) into a remote HTML page = (hosted in a non-php server), It seems something so straightforward, it = isn't ? I've tried the HTML "OBJECT" TAG <OBJECT classid=3D/path/to/phpscript.php> </OBJECT> without success please, can any body helps me below a piece fo the HTML code output by the php script ------------------------------------------------- <!--[ / ]--> <table width=3D150 border=3D"0"> <tr>=20 <td colspan=3D"2"> <span type=3D"text/css" style=3D"font-family : = Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color : = black;"><a type=3D"text/css" style=3D"font-size: 8pt; color : = blue;"href=3Dhttp://www.mzbusiness.com/jobs/showapp.php?app_lang=3Duk&app= _mode=3DFRM_SHOW&app_id=3D58 >Management Information/Administrative = Assistant</a><br> <b>USAID</b> Maputo (2001-08-17) </span></td> </tr> </table> --------------------------------------------------- |
From: Guenther T. <th...@eq...> - 2001-09-11 06:17:50
|
Hi Stephen, you wrote: > You need to change one line in db_mysql.inc > from: > $this->Link_ID=mysql_pconnect($Host, $User, $Password); > to: > $this->Link_ID=mysql_connect($Host, $User, $Password); OK, but there still is no connection closed, or is there something I don't see? Guenther |