Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 3:02 PM, Stut <[EMAIL PROTECTED]> wrote: > Why? What exactly do you think you're saving by not putting the > instance in a variable? I can't think of one good reason to do this. > its an esthetic thing; and besides the simple factory method is an easy workaround to achieve it. as

Re: [PHP] first php 5 class

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 3:19 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > Ok, trying to write my first php5 class. This is my first project > using all OOP PHP5.2.5. > > I want to create a config class, which is extended by a connection > class, which is extended by a database class. Here is my confi

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 7:27 PM, Stut <[EMAIL PROTECTED]> wrote: > Personally I'd use a static method in this instance. thats what i recommended. If you need to create > an instance of the class you can do so in the static method and that way it > will get destroyed when the function is done. Otherwise t

Re: [PHP] call to a member function select() on a non object.

2008-01-29 Thread Nathan Nobbe
change $rows = $DB->select("SELECT * Users WHERE Email='$Email', AND Password='$PasswordEncoded'"); to $rows = $this->DB->select("SELECT * Users WHERE Email='$Email', AND Password='$PasswordEncoded'"); you have to always reference the current instance w/ the $this ke

[PHP] potentially __sleep() bug

2008-01-29 Thread Nathan Nobbe
all, i was playing around w/ some object serialization tonight during further exploration of spl and i stumbled on what appears to be a bug in the behavior of the __sleep() magic method. here is the pertinent documentation on the method ..is supposed to return an array with the names of all v

Re: [PHP] Sum of results

2008-01-29 Thread Nathan Nobbe
On Jan 30, 2008 1:58 AM, Dax Solomon Umaming <[EMAIL PROTECTED]> wrote: > I've tried Googling this out but failed to search for an answer to this, so > I'm posting to this list. I'd like to know if there's a way to get the sum > this results: you can simply sum them as you print the report $sum =

Re: [PHP] Need assistance using sendmail or mail()

2008-01-29 Thread Nathan Nobbe
On Jan 30, 2008 2:47 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Philip, please state what sort of problems you are having. mail() and > sendmail are both easy to use from php. > And please don't post another 2000 lines of code. No-one is going to > read them. amen to that brother! :) -nathan -

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 5:56 AM, Stut <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > You posted a singleton pattern. no, what i posted was a simple factory pattern. if you invoke it twice there will be 2 instances of Test in memory, eg. not singleton. $a = Test::getInstance(

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 8:40 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 3:29 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > Still pimping singleton, huh? :) > hell yeah :) i looked at the registry classes you pointed out. you know what funny about the one in sol

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:46 AM, Stut <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > > Actually no, I mean I would *just* use a static method. If there is no > reason to instantiate an object, why would you? <http://stut.net/> you realize you are instantiating an clas

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:35 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > The only gripe I have about the registry pattern is the lack of code > completion in PDT. ;) heh. does that still blowup when you try to open a file w/ an interface definition? > I love php patterns, but it seems to sort of be

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:53 AM, Stut <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > I never said I wasn't creating > an instance in the example I posted. > then what exactly did you mean by this? Actually no, I mean I would *just* use a static method. If there is no r

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:21 AM, Stut <[EMAIL PROTECTED]> wrote: > Calling a static method > does not create an instance of the class. there you go again; calling a static method does create an instance of the class if you call new inside of it :P -nathan

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:31 AM, Stut <[EMAIL PROTECTED]> wrote: > > "I would *just* use a static method" > > *just* *just* *just* *just* *just* *just* *just* *just* *just* > > No instance. None. Grrr. here is a mod of the code you posted w/ a var_dump() of the local variable $o; _doSomething(); }

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:38 AM, Greg Donald <[EMAIL PROTECTED]> wrote: > If list traffic is any sign, PHP is indeed slowing down from the "new > peeps wanting to learn it" perspective: > > http://marc.info/?l=php-general&w=2 interesting.. I would assume it's becau

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:58 AM, Stut <[EMAIL PROTECTED]> wrote: > Ok, I'm going to have to assume you really are as stupid as you seem. If > I need to provide an example to demonstrate what I meant I will, but I > feel I made it quite clear that my comment regarding what *I* would do > did not in any wa

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
> > Indeed. Now, the place where you sleep... is it guarded? well it is, but.. i probly misunderstood some implication in the directions of my virtual fortress and therefore, probly not as well a i suspect ;) -nathan

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 12:45 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 10:43 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > > I would assume it's because there are much more interesting advances > > > in web development technology to focus on els

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 1:29 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > Ruby has 7 frameworks that I know of: Nitro, IOWA, Ramaze, Cerise, > Ruby on Rails, Merb and Camping. > http://www.nitroproject.org/ > http://enigo.com/projects/iowa/ > http://ramaze.net/ > http://cerise.rubyforge.org/ > http://www.r

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 2:38 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > If you like Java then stick with PHP as that's where the syntax is > clearly headed: > > http://www.php.net/~helly/php/ext/spl/ ive been studying spl a lot recently. actually, last night i was benching it against foreach over stand

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 2:33 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 12:40 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > just pointing out that the rails guys dont have much wiggle room. > > surely, youre familiar w/ this post: > > http://www

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 2:55 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > If you only need to test data integrity then it seems good enough. I > would argue that being able to test xhr requests is a basic > requirement at this stage in web development. how exactly do you test an xhr request? my suspicion

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 3:11 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > I think your perception is correct. But Perl is very powerful too, > and not so many people use it for new web development either.. with > list serve traffic being my reference. > > SPL's main drawback for me personally is carpal tu

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 3:22 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > An xhr request needs to be tested to see if your javascript fired when > expected and equally important what was sent back, and did what was > sent back land in the DOM where you expected it to. Rails provides > that and much more.

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 3:34 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > what id like to know, since you seem to know so much about the ruby on > > rails framework, > > is, what sort of debugging support is there?

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 4:08 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > php has an interactive shell; php -a. > > therein you have access to anything in the language your > > include path, or the local disc. > &

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 8:21 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Greg's my hero of the day - even if he has been banging the Ruby drum on > the PHP Stage half the night ;-) greg does seem to know a crap-ton about ruby, and gentoo even ;) > one thing I would offer as a solution to rolling out cod

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 7:58 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > I don't use SPL because it makes my head spin to read it, and I never > ever try to do something as silly as iterate over a *LARGE* array in > end-user pages. are there pages where you iterate over the same 'small' array more than

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:58 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > besides being a nightmare, portage doesn't answer the question of rolling out > stuff > to multiple machines simultaneously. portage is one of the most elegant software distribution mechanisms ever created. and you dont have to ha

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 5:13 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > Gentoo is a damn fun distro I must admit.. but using it for anything > besides a development server seems very risky to me. You've got the > Gentoo creat0r running off to lick salt with the M$ weiners up in WA > right when Gentoo wa

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:29 PM, Casey <[EMAIL PROTECTED]> wrote: > I don't think constructors return the object: im starting to think this as well. what for example happens when there is not __construct() method ? class Test { private $blah = ''; } here $blah is part of a new instance, before __con

Re: [PHP] php embeded in html after first submit html disappear

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 9:09 PM, Janet N <[EMAIL PROTECTED]> wrote: > Because there is not enough to each step to justify a full web page devoted > to it alone, I have decided to keep all steps on one page. even if you manage this with a single php file, you should consider showing only the relevant form

Re: [PHP] first php 5 class

2008-01-31 Thread Nathan Nobbe
im curious, greg, what the ruby guys do for code documentation. for php there is phpDocumentor or doxygen. i like them both. propel has support for the former so when i generate the code from a schema.xml file, the next thing i do is generate the phpDocumentor-based docs for my project which is ju

Re: [PHP] first php 5 class

2008-01-31 Thread Nathan Nobbe
On Jan 31, 2008 3:24 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > I never write the xml for propel. we use DBDesigner (although it is not > a well-written software, and there are problems with running it on > linux) and convert its xml files automatically to propel format. what's > more we have

Re: [PHP] first php 5 class

2008-01-31 Thread Nathan Nobbe
On Jan 31, 2008 9:47 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > you mean you have a schema in a db with a bunch of tables? there is a > symfony task for that. symfony propel-build-schema > > or if you use propel alone: > > http://propel.phpdb.org/trac/wiki/Users/Documentation/1.3/HowTos/Existi

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Nathan Nobbe
i like opera for 4 reasons, 1. it renders fast 2. when i have 50 tabs open, its still responsive 3. it supports ctrl+z, wicked feature :> 4. when you close and reopen, all the tabs from before are still there; key however, firefox is the champion for web development. not only is firebug awesome, b

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Nathan Nobbe
On Jan 31, 2008 1:03 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Robert Cummings schreef: > > What you just typed into a form, or erased and decide you actually want, > > etc. > > FF does that - at least it does for me, has done for as long as I can > remember. it doesnt let you reclaim lost ta

[PHP] array iteration vs. ArrayIterator

2008-01-31 Thread Nathan Nobbe
all, as ive been researching SPL lately ive read several times that spl will store only the current element of the underlying collection in memory during iteration. articles that mention this will say that using these iterators should afford savings when traversing large collections. well having

Re: [PHP] Doctrine vs. Propel

2008-02-04 Thread Nathan Nobbe
On Feb 4, 2008 1:44 PM, AmirBehzad Eslami <[EMAIL PROTECTED]> wrote: > Dear List, > > I've just heard of ORM (Object Relational Mapping) frameworks written for > PHP. > It seems that there are two major frameworks here: Doctrine and Propel: > > http://www.phpdoctrine.org/ > http://propel.phpdb.org

Re: [PHP] php competion

2008-02-04 Thread Nathan Nobbe
i ashamed to say i was the subject of a scam whereby i wrote a solid weekends worth of code only to find out these assholes decided not to pay up. http://www.cartoondollemporium.com/ i can only imagine theyve done this to many other developers and plan on doing it to more. though ive not read thro

Re: [PHP] php competion

2008-02-04 Thread Nathan Nobbe
On Feb 4, 2008 4:26 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > I hardly think this one is a scam, I mean all you have to do is write a > PHP app that converts between PHP, Python, C and Perl and you get: > "not only bragging rights will come your way, but it will sure look good > on your resu

Re: [PHP] string vs number

2008-02-05 Thread Nathan Nobbe
On Feb 5, 2008 1:36 PM, Hiep Nguyen <[EMAIL PROTECTED]> wrote: > hi all, > > i have this php statement: > > > > > debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54']. > > is this possible? how do i force $rowA[0] to be a string > ('54')? php

Re: [PHP] string vs number

2008-02-05 Thread Nathan Nobbe
On Feb 5, 2008 1:43 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > I was thinking about saying that, but php is loosely typed, so 54 == > '54'. i only mentioned the type cast because it was asked about; actually, there are rare times in php when type casts are called for, such as pulling a value fr

Re: [PHP] string vs number

2008-02-05 Thread Nathan Nobbe
On Feb 5, 2008 1:50 PM, Casey <[EMAIL PROTECTED]> wrote: > I believe this is the difference with arrays: > > $a = array(2 => "foo"); > Array(0 => null, 1 => null, 2 => "foo") > > $a = array("2" => "foo"); > Array("2" => "foo") > i think the implicit type casting applies there as well: php > $me

Re: [PHP] Re: PEAR website and MSIE 6

2008-02-06 Thread Nathan Nobbe
On Feb 2, 2008 12:51 PM, Michelle Konzack <[EMAIL PROTECTED]> wrote: > Am 2008-01-31 13:16:51, schrieb Nathan Nobbe: > > it doesnt let you reclaim lost tabs. nor does it save the tabs for the > next > > time you > > open it. i have to pkill ff or similar

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 6:13 AM, Martin Marques <[EMAIL PROTECTED]> wrote: > I got an update from tzdata on a Debian server due to a daylight saving > change here in Argentina. > > The problem is that, even when the system sees the correct time, php > keeps giving me the *old* hour. > > $ date > mié feb 6

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 9:36 AM, Robbert van Andel <[EMAIL PROTECTED]> wrote: > I guess I spoke too soon. Even though the script runs from anywhere (that > I > have access too), when I put the perl script in a cronjob, the php script > just refuses to run. There's no output, just the output from the perl

Re: [PHP] Poll: phpt or phpunit and why?

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 9:38 AM, js <[EMAIL PROTECTED]> wrote: > HI, > > When writing tests, do you use phpt or phpunit? (or another one?) > Why do you use that one? > Let's share the idea. > > I like both, but when I write simple tests, I prefer to use phpt ive just now learned of phpt. this would exp

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 11:33 AM, Robbert van Andel <[EMAIL PROTECTED]> wrote: > I tried adding `which php5` and that didn't work. did you try running which php5 on the cli to ensure it even maps to a path ? you might need which php instead. -nathan

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 11:42 AM, Robbert van Andel <[EMAIL PROTECTED]> wrote: > Not an option. Which php gives me php4 and the script requires php5. > it sounds like you are using 1&1, per dans security warning earlier :) you may want to contact them and ask them how to run php5 scripts via the cli; as

Re: [PHP] PHP CLI Problem

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 11:48 AM, Robbert van Andel <[EMAIL PROTECTED]> wrote: > I contacted 1&1 and was told scripting was not supported. I wrote back > saying I didn't need help writing the script just how to run it. They wrote > back telling me to put it in a cron job using crontab –e and that was all

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 12:13 PM, Martin Marques <[EMAIL PROTECTED]> wrote: > > see what you have as the value for the date.timezone ini setting. > > I've already checked that, and it's not set. then you should probly set it ;) Anyway, I found out that PHP uses an internal tz database (very bad > IMHO)

Re: [PHP] Poll: phpt or phpunit and why?

2008-02-06 Thread Nathan Nobbe
in a conversation on #gentoo-php (irc), the following distinction was drawn, " back on the phpt; just curious, how do you see it compared to something like phpunit ? comparable, or different.." " different... phpt is probably really mostly intended for testing php and their extensions phpunit rat

Re: [PHP] Recommendation for an XML class?

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 3:09 PM, Brian Dunning <[EMAIL PROTECTED]> wrote: > I see there are billions of XML classes out there. Can anyone > recommend one that's good & simple? My needs are quite basic, all I > really need is to draw simple values out of the XML, like convert > 123 to $order_no = 123.

Re: [PHP] Recommendation for an XML class?

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 4:04 PM, Paul Scott <[EMAIL PROTECTED]> wrote: > Dude, I thought you were playing with SPL! SimpleXML _then_ use the > SimpleXMLIterator to work with it! > > http://www.php.net/spl well of course; if you need to flatten out an xml structure in a few lines of code ;) -nathan

Re: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 8:46 PM, Rob Gould <[EMAIL PROTECTED]> wrote: > Let's say I have a PHP-based wine application, and it's taking a set of > mySQL data that looks like this: > > wineidname > size > 123 Silver Oak > 750ML > 123

Re: [PHP] PHP program to download sites

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 9:30 PM, Leonard Burton <[EMAIL PROTECTED]> wrote: > HI All, > > I have a client who wants to be able to download/cache all web files > on certain sites for archiving info (i.e. before purchases, anything > where a record of what exactly was on a certain page is needed). They > wou

Re: [PHP] Recommended ORM for PHP

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 10:59 PM, Larry Garfield <[EMAIL PROTECTED]> wrote: > On Wednesday 06 February 2008, Edward Kay wrote: > > Have a look at Qcodo. http://www.qcodo.com. > > > > It uses code generation to create your ORM for you direct from the DB > > tables. As it's code generation as opposed to run

Re: [PHP] PHP/mySQL question about groups

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 10:59 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > Of course, in this case you could just avoid all the confusion with > this statement as well: > > SELECT DISTINCT name, size > FROMwine im not sure why, but i think distinct is typically way slower than group by. -nathan

Re: [PHP] array problem with a zencart shipping module

2008-02-06 Thread Nathan Nobbe
On Feb 6, 2008 11:11 PM, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: > I'm desperately going outside the forum, seeking help. > Does anyone have any experience with Zencart shipping modules, or > understand arrays? > http://www.zen-cart.com/forum/showthread.php?t=87831 maybe you should stick

Re: [PHP] Re: Recommended ORM for PHP

2008-02-07 Thread Nathan Nobbe
On Feb 7, 2008 10:15 AM, Manuel Lemos <[EMAIL PROTECTED]> wrote: > What happens is that Propel relies on fat base classes that the > generated persistent object classes need to inherit to do the actual > Object-relational mapping. this is so that there is a customizable layer that will not be im

Re: [PHP] shopping carts

2008-02-07 Thread Nathan Nobbe
On Feb 7, 2008 9:24 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > While I agree that if the end user doesn't get it, then you don't get > paid... but quality matters if you have to extend/maintain/secure it. > Well, I guess not. Look at how wildly popular MySpace is. im guessing most people who

Re: [PHP] PHP setup

2008-02-07 Thread Nathan Nobbe
On Feb 7, 2008 8:47 AM, Dare Williams <[EMAIL PROTECTED]> wrote: > WAMP means WINDOWS(os) - APACHE(webserver) - MYSQL(db) - PHP(platform). you know if youre running iis and mysql or mssql, its actually called the WIMP stack ;) -nathan

Re: [PHP] How to parse this kind of XML

2008-02-07 Thread Nathan Nobbe
On Feb 7, 2008 6:17 PM, VamVan <[EMAIL PROTECTED]> wrote: > Hi, > > How can I parse this kind of XML data? > > > > > < event:sessionType>9 > > marketingprograms > > 05/22/2008 09:00:00 > > 05/22/2008 10:00:00 > > 4 > > 60 > > > I am using SimpleXMLElement function but some cannot retrieve

Re: [PHP] How to parse this kind of XML

2008-02-07 Thread Nathan Nobbe
On Feb 7, 2008 6:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: >I'm sure you're already aware of it, and that it's just a typo in > the email, but there's a space between the lt carat and the > event:sessionType node declaration. > that screwed me the last time i was posting on a simplexml n

Re: [PHP] issues with calling methods twice in a row

2008-02-08 Thread Nathan Nobbe
On Feb 8, 2008 4:10 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > i have a method called CreateUser() which is public and takes 5 > variables as its data, then adds them to a db. it only executes the > first method not the other although its all the same but the variable. > > ex: > > $auth = n

Re: [PHP] issues with calling methods twice in a row

2008-02-08 Thread Nathan Nobbe
On Feb 8, 2008 4:25 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > that was just an example. yes they both provide 5 input variables. well theres something preventing successive calls from doing what you expect. php has no issue in calling the same instance method successively, which you cou

Re: [PHP] Order directory output

2008-02-08 Thread Nathan Nobbe
i hooked up an spl example; and the files are sorted by name. also, did you want that inside or outside the w/ class=NormalText, because the opening and closing tags are mixed up.. getInnerIterator()->current()->isFile()) { return true; } } } clas

Re: [PHP] Order directory output

2008-02-08 Thread Nathan Nobbe
On Fri, Feb 8, 2008 at 9:19 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i hooked up an spl example; and the files are sorted by name. > also, did you want that inside or outside the w/ > class=NormalText, because the opening and closing tags are > mixed up.. > damn

Re: [PHP] PHP debugger recommendations, anyone?

2008-02-09 Thread Nathan Nobbe
On Feb 9, 2008 11:48 AM, Mary Anderson <[EMAIL PROTECTED]> wrote: > Hi all, >I am getting tired of writing echo statements for almost every > parameter, then deleting them while I am writing code. I would really > like a debugger which would work with my browser. I have run across an > open

Re: [PHP] re: php file extension

2008-02-09 Thread Nathan Nobbe
and if you want even more superfluous information windows, more specifically, ntfs, doest support files with only capitalization differences in the file names. eg. WindowsSucks.txt windowssucks.txt -nathan

Re: [PHP] PHP debugger recommendations, anyone?

2008-02-09 Thread Nathan Nobbe
On Feb 9, 2008 3:02 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > It suddenly dawned on me that you are doing an echo for every paremeter, > a debugger will never completely alleviate the need for this, however > try using: > print_r(get_defined_vars()); > instead, that way you get everything out

Re: [PHP] Better DB Class MySQL

2008-02-09 Thread Nathan Nobbe
On Feb 9, 2008 7:03 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > Looking to really beef up my DB class, any suggestions for functions > to add that will be more time saving for a web 2.0 app, or ways to > improve existing methods? thank you everyone in advance. first of all, as a matter of

Re: [PHP] Hex Strings Appended to Pathnames

2008-02-10 Thread Nathan Nobbe
On Feb 10, 2008 9:09 AM, Mick <[EMAIL PROTECTED]> wrote: > There is no rewrite rule. It's an extremely strange problem. is this a production box; or more specifically, are you adverse to throwing xdebug on there? i suspect you could use the function tracing in xdebug to at least find out where

Re: [PHP] mysql question

2008-02-10 Thread Nathan Nobbe
On Feb 10, 2008 12:52 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > nihilism machine wrote: > > > $ret = mysql_result($r, 0); > > mysql_free_result($r); > > if ($this->auto_slashes) return stripslashes($ret); > > else return $ret; > > } > > > > > > what is $ret, an array? > > No, it's a mysql result

Re: [PHP] Better DB Class MySQL

2008-02-10 Thread Nathan Nobbe
On Feb 10, 2008 1:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > Fire - what? :-) > > Isn't that a car? > :) ya; but mustangs are cooler :) -nathan

Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread Nathan Nobbe
On Feb 10, 2008 12:55 PM, tedd <[EMAIL PROTECTED]> wrote: > Where do we get people like this? > the late-night homework challenge? -nathan

Re: [PHP] mysql question #2

2008-02-10 Thread Nathan Nobbe
On Feb 10, 2008 1:12 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > Ok, I read the php.net info. so with this function though: > >public function select_one($sql) { >$this->last_query = $sql; >$r = mysql_query($sql); >if (!$r) { >

Re: [PHP] How to Protect Against SQL Injection Attacks While Using SQLite?

2008-02-10 Thread Nathan Nobbe
On Feb 10, 2008 2:38 PM, NotReally GonnaTell <[EMAIL PROTECTED]> wrote: > Hello all, I am wondering how I should prevent SQL injection attacks while > using SQLite, MySQL has the trusted mysqli_real_escape_string, > but SQLite doesn't have it's own custom function, i've tried str_replace > in > my

Re: [PHP] How to Protect Against SQL Injection Attacks While Using SQLite?

2008-02-10 Thread Nathan Nobbe
On Feb 10, 2008 3:14 PM, NotReally GonnaTell <[EMAIL PROTECTED]> wrote: > Is there any other way to do this? I'd rather not use PDO. what version of php are you using and what version of sqlite? this relevant info from the manual: Moreover, since PHP 5.1.0 SQLite depends on PDO

Re: [PHP] PHP variable values

2008-02-10 Thread Nathan Nobbe
On Feb 10, 2008 6:30 PM, Ron Piggott <[EMAIL PROTECTED]> wrote: > What is the command which shows the value of all the variables in > memory? Ron get_defined_vars() -nathan

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread Nathan Nobbe
On Feb 11, 2008 12:47 PM, chetan rane <[EMAIL PROTECTED]> wrote: > Hi all > can you please let me know where i can find about Mem cache. http://us.php.net/manual/en/ref.memcache.php -nathan

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread Nathan Nobbe
On Feb 11, 2008 4:55 PM, Stut <[EMAIL PROTECTED]> wrote: > Per Jessen wrote: > > On the next request, LVS will know not to try that server, and the user > > will move to another one. Obviously the session-context will die, but > > is that really a big deal? How often does one of your servers die

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread Nathan Nobbe
On Feb 11, 2008 12:33 PM, chetan rane <[EMAIL PROTECTED]> wrote: > HI All > > Can any one tell me what will be the best way to maintain session > information on a Multi Server Architecture i.e a Web Cluster. implement session_set_save_handler() with a database, or ideally, memcache. -nathan

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 6:27 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Feb 12, 2008 4:23 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > > > well thats what xslt is, which is pretty nice. > > > > /\ is a statement, not a question ;) > > Wow dude, you&#

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 7:42 PM, Michael McGlothlin <[EMAIL PROTECTED]> wrote: > > > REST is the new SOAP. Yaml is the new XML. I'm guessing this news > > just hasn't made it into any PHP frameworks yet. > > > YAML doesn't seem significantly easier (faster & less intensive) to > parse than XML, it doesn

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 5:10 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Feb 12, 2008 3:37 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > well thats what xslt is, which is pretty nice. > /\ is a statement, not a question ;) > > /me point Nathan to http://en.wikipedi

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 4:45 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > well thats what xslt is, which is pretty nice. > > Nah, I don't bother with XSLT. i know, i just thought id mention it, since xml was brought up and nobodys even mentioned xslt yet. i will likely move away from xslt, but i w

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 4:18 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Feb 12, 2008 3:15 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Custom tags (XML style ones anyways) provide support for arbitrary > > ordering and omission of optional attributes. They nest nicer than > > function calls, an

Re: [PHP] Re: LVS (was: Session and Multi Server Architecture)

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 10:55 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > > > i mean, i do understand the vserver concept, is LVS essentially the > > same as v-server, > > http://linux-vserver.org/Welcome_to_Linux-VServer.org ? > > Hi Nathan, &

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Nathan Nobbe
well guys, im reading all this stuff about LVS and so forth, and i must admit, i really dont know the first thing about it. i mean, i do understand the vserver concept, is LVS essentially the same as v-server, http://linux-vserver.org/Welcome_to_Linux-VServer.org ? also, i dont understand how LVS

Re: [PHP] Curl doesn't handle memory stream

2008-02-13 Thread Nathan Nobbe
On Nov 29, 2007 10:59 AM, Peter Smit <[EMAIL PROTECTED]> wrote: > If nobody has a solution I think I'll report it as a bug tomorrow. did you ever report a bug on this ? i was messing around with it today, and i discovered that some urls, partially work. for example the google translate 'api',

Re: [PHP] Curl doesn't handle memory stream

2008-02-13 Thread Nathan Nobbe
On Feb 13, 2008 5:07 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > I see on the http://us.php.net/wrappers.php page that only php 5.1.0 and > newer > have this feature. What version of PHP are you using? thanks for your time jim; im using 5.2.5. manuel, thanks for your time as well. of course i

Re: [PHP] Curl doesn't handle memory stream

2008-02-13 Thread Nathan Nobbe
On Feb 13, 2008 5:10 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > > On Nov 29, 2007 10:59 AM, Peter Smit <[EMAIL PROTECTED]> wrote: > > > >> If nobody has a solution I think I'll report it as a bug tomorrow. > > > >

Re: [PHP] Static variable in a class method

2008-02-13 Thread Nathan Nobbe
On Feb 13, 2008 8:44 PM, Nirmalya Lahiri <[EMAIL PROTECTED]> wrote: > --- Pauau <[EMAIL PROTECTED]> wrote: > > > I have a class method which declares a static variable > > within.However, > > across all the instances of the class, the current value on that > > variable > > replicates. Is it the in

Re: [PHP] Curl doesn't handle memory stream

2008-02-13 Thread Nathan Nobbe
On Feb 13, 2008 6:52 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Wed, February 13, 2008 4:11 pm, Nathan Nobbe wrote: > > You may or may not want to file a bug report with curl itself, > depending on whether PHP is doing the stream file handling or curl is. > >

Re: [PHP] Static variable in a class method

2008-02-14 Thread Nathan Nobbe
On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Nathan Nobbe schreef: > > what you are using is potentially not what you think it is. you are > using > > a 'static variable' which is not a static class member. > > actually it pret

Re: [PHP] Static variable in a class method

2008-02-14 Thread Nathan Nobbe
On Thu, Feb 14, 2008 at 12:10 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Thu, Feb 14, 2008 at 9:50 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas <[EMAIL PROTECTED]> > wrote: > > > > > Nathan

Re: [PHP] Check time in between times

2008-02-16 Thread Nathan Nobbe
On Feb 17, 2008 12:53 AM, Johny Burns <[EMAIL PROTECTED]> wrote: > I am having fields in my table where I put times like 4:30pm in string > format > > Can anybody help with function which helps detect. > Is it the current time between those fields? > > function checkinzone($time1,$time2):boolean

Re: [PHP] More than one values returned?

2008-02-19 Thread Nathan Nobbe
On Feb 19, 2008 11:52 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Feb 19, 2008 9:27 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > > Support != good design habits. > > So you presume to have better design habits than the many language > designers who implemented parallel assignment in their

<    2   3   4   5   6   7   8   9   10   11   >