[PHP] Extending DOMNode

2007-02-14 Thread Eli
Hi, I want to add some functionality to all classes derived from DOMNode. I tried: registerNodeClass('DOMNode','MyDOMNode'); $dom->loadXML(''); echo $dom->firstChild->v; #<-- not outputs 10 ?> But I get the notice: PHP Notice: Undefined property: DOMElement::$v in ... I want the extension

Re: [PHP] Getting mysql_query results into an array

2007-02-14 Thread Richard Lynch
On Wed, February 14, 2007 11:34 am, Bill Guion wrote: > At 6:22 PM -0600 2/13/07, Richard Lynch wrote: > >> >>The most efficient way is "Don't do that." :-) >> >>Simply loop through the results and do whatever you want to do with >>them, and don't put them into an array at all. >> >>This question h

Re: [PHP] Object ID

2007-02-14 Thread Eli
Hmm.. sorry.. just checked it now, and you're right.. The #id in the dump and the hash given by spl_object_hash() give a unique ID among the objects instantiated in your process.. If you unset some of the objects, and re-create new instances of them, you may get the SAME ids you had before..

Re: [PHP] Getting mysql_query results into an array

2007-02-14 Thread Richard Lynch
On Tue, February 13, 2007 8:22 pm, Robert Cummings wrote: > On Tue, 2007-02-13 at 18:22 -0600, Richard Lynch wrote: >> #2 >> loop through mysql result set to build $array >> perform some kind of calculation upon $array >> >> In this case, it's USUALLY much more efficient to write an SQL query >> to

Re: [PHP] Object ID

2007-02-14 Thread Eli
Every dump of the same node will produce the same #id. Cloned object, is a separated new object which will have a different id. The spl_object_hash function produces such an id too (32 hex chars), which doesn't change if you change the object members. Richard Lynch wrote: I suspect that's not

Re: [PHP] Object ID

2007-02-14 Thread Richard Lynch
I suspect that's not an "absolute" ID, but just an ID for that particular dump. So it has no applicability beyond that dump... On Wed, February 14, 2007 11:31 am, Eli wrote: > Hi, > > How can I get the object ID number of each Object in PHP (v.5.2) ? > > The ID number is the one produced when dum

Re: [PHP] Foldable Checkbox lists

2007-02-14 Thread Eric Butera
On 2/14/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] Newbie to PHP here. I have a list of categories, as checkboxes, that I would like a user to be able to choose from. There are literally hundreds of categories, however most of them are children categories. I obviously don't want to di

Re: [PHP] PHP/PEAR

2007-02-14 Thread Bruce Cowin
that reminds me: a woman walks into a bar carrying a duck. the bartender says "hey, you can't come in here with that pig". the woman says "it's not a pig, it's a duck". and the bartender says "i was talking to the duck". Regards, Bruce >>> Jochem Maas <[EMAIL PROTECTED]> 15/02/2007 3:36:

RE: [PHP] Foldable Checkbox lists

2007-02-14 Thread Jay Blanchard
[snip] Newbie to PHP here. I have a list of categories, as checkboxes, that I would like a user to be able to choose from. There are literally hundreds of categories, however most of them are children categories. I obviously don't want to display all of the categories at once to the user as that

[PHP] Foldable Checkbox lists

2007-02-14 Thread bschwartz
Hello Gurus, Newbie to PHP here. I have a list of categories, as checkboxes, that I would like a user to be able to choose from. There are literally hundreds of categories, however most of them are children categories. I obviously don't want to display all of the categories at once to the us

RE: [PHP] Getting mysql_query results into an array

2007-02-14 Thread Brad Fuller
> > How about scenario #3: I wish to output my data in (for example) > > three columns, as a phone book does. To make the example simple, > > assume 15 data points. I wish the output to look like > > > > 1 611 > > 2 712 > > 3 813 > > 4 914 > >

Re: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Jim Lucas
Brad Fuller wrote: >From looking on the web (MSDN) I found the @@identity and the explanation of what it is, but MS's "example" is horrible and does not show a good context for using this function. Could you elaborate more on its use? $q = mssql_query("INSERT INTO TableName(...) VALUES(...) SE

Re: [PHP] Getting mysql_query results into an array

2007-02-14 Thread Jochem Maas
Bill Guion wrote: > At 6:22 PM -0600 2/13/07, Richard Lynch wrote: > >> >> The most efficient way is "Don't do that." :-) >> >> Simply loop through the results and do whatever you want to do with >> them, and don't put them into an array at all. >> >> This question has appeared before, and usually

Re: [PHP] Object ID

2007-02-14 Thread Eli
Roman Neuhauser wrote: How can I get the object ID number of each Object in PHP (v.5.2) ? http://cz2.php.net/manual/en/function.spl-object-hash.php Thanks!!! That is exactly what I need... :-) === output: string(32) "eaa76ef5378142caec7b40b56e4b6314" string(32) "6168ec2b9db13132570a79ef0410

RE: [PHP] Getting mysql_query results into an array

2007-02-14 Thread Kristen G. Thorson
> -Original Message- > From: Bill Guion [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 14, 2007 12:35 PM > To: PHP-General > Subject: Re: [PHP] Getting mysql_query results into an array > > At 6:22 PM -0600 2/13/07, Richard Lynch wrote: > > > > >The most efficient way is "Don't do

RE: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Brad Fuller
> >From looking on the web (MSDN) I found the @@identity and the explanation > of > what it is, but MS's "example" is horrible and does not show a good > context > for using this function. Could you elaborate more on its use? $q = mssql_query("INSERT INTO TableName(...) VALUES(...) SELECT LAST_IN

Re: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Dan Shirah
Sorry, I wasn't trying to fool you, I promise! :) Arpad, From looking on the web (MSDN) I found the @@identity and the explanation of what it is, but MS's "example" is horrible and does not show a good context for using this function. Could you elaborate more on its use? On 2/14/07, Robert

RE: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 19:34 +0100, Tim wrote: > > > > -Message d'origine- > > De : Tim [mailto:[EMAIL PROTECTED] > > > > > I hope that wasn't too confusing. > > > > http://cz2.php.net/manual/en/function.mysql-insert-id.php > > Sorry my eyes played some tricks on me ragarding mysql/mssql

RE: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Tim
> -Message d'origine- > De : Tim [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 février 2007 19:28 > À : 'Dan Shirah'; 'php-general' > Objet : RE: [PHP] Retrieve value of newly inserted row. > > > > > -Message d'origine- > > De : Dan Shirah [mailto:[EMAIL PROTECTED] Envoyé

Re: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 13:26 -0500, Robert Cummings wrote: > On Wed, 2007-02-14 at 13:20 -0500, Dan Shirah wrote: > > Hello, > > > > On my second insert statement, please note "credit_card_id". This is an > > auto_increment column in table1. What I need to do is pull the value of > > "credit_card

RE: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Tim
> -Message d'origine- > De : Dan Shirah [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 février 2007 19:20 > À : php-general > Objet : [PHP] Retrieve value of newly inserted row. > > Hello, > > I have a page the contains two insert statements. > > > $insert1 = "INSERT INTO table1 (

Re: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Arpad Ray
Dan Shirah wrote: On my second insert statement, please note "credit_card_id". This is an auto_increment column in table1. What I need to do is pull the value of "credit_card_id" from the newly inserted row from insert1 and put that value in a variable to assign it to "credit_card_id" in ins

Re: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 13:20 -0500, Dan Shirah wrote: > Hello, > > On my second insert statement, please note "credit_card_id". This is an > auto_increment column in table1. What I need to do is pull the value of > "credit_card_id" from the newly inserted row from insert1 and put that value > in

[PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Dan Shirah
Hello, I have a page the contains two insert statements. $insert1 = "INSERT INTO table1 ( debit_card, card_type, card_number, exp_date, payment_amount, cvv_number, first_name, middle_name, last_name, address_1, address_2, city, zi

[PHP] PHP 4.4.5 Released

2007-02-14 Thread Derick Rethans
Hello! The PHP Development Team would like to announce the immediate release of PHP 4.4.5. This release is a stability and security enhancement of the 4.4.X branch, and all users are strongly encouraged to upgrade to it as soon as possible. A separate release announcement is also available. F

Re: [PHP] Object ID

2007-02-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-14 19:31:00 +0200: > Hi, > > How can I get the object ID number of each Object in PHP (v.5.2) ? http://cz2.php.net/manual/en/function.spl-object-hash.php -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you

Re: [PHP] Getting mysql_query results into an array

2007-02-14 Thread Bill Guion
At 6:22 PM -0600 2/13/07, Richard Lynch wrote: The most efficient way is "Don't do that." :-) Simply loop through the results and do whatever you want to do with them, and don't put them into an array at all. This question has appeared before, and usually breaks down to one of these scenarios

[PHP] Rounding -- was [PHP] round to nearest 500?

2007-02-14 Thread tedd
At 8:40 PM +0100 2/13/07, Satyam wrote: - Original Message - From: "Jon Anderson" <[EMAIL PROTECTED]> The reason is simple: 0: No rounding. It's already there. (8.0 doesn't need to be rounded to 8 - it already *is* 8.) 1-4: You round down -> 4 of 9 times you round down. 5-9: You round

[PHP] Object ID

2007-02-14 Thread Eli
Hi, How can I get the object ID number of each Object in PHP (v.5.2) ? The ID number is the one produced when dumping: === output: object(A)#1 (0) { } object(B)#2 (0) { } I do not want to buffer and parse the dumped string... Is there a nicer way? -thanks! -- PHP General Mailing List (http:/

RE: [PHP] Banner rotation with links

2007-02-14 Thread Tim
> -Message d'origine- > De : Brad Fuller [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 février 2007 17:41 > À : 'Németh Zoltán'; 'Chris Carter' > Cc : php-general@lists.php.net > Objet : RE: [PHP] Banner rotation with links > > > -Original Message- > > From: Németh Zoltán [m

RE: [PHP] Banner rotation with links

2007-02-14 Thread Brad Fuller
> -Original Message- > From: Németh Zoltán [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 14, 2007 11:37 AM > To: Chris Carter > Cc: php-general@lists.php.net > Subject: Re: [PHP] Banner rotation with links > > 2007. 02. 14, szerda keltezéssel 08.29-kor Chris Carter ezt írta: > > Ho

RE: [PHP] Banner rotation with links

2007-02-14 Thread Tim
> -Message d'origine- > De : Chris Carter [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 février 2007 17:29 > À : php-general@lists.php.net > Objet : [PHP] Banner rotation with links > > > How can I rotate a banner as well as the link in it within a > page using PHP. > This can be

Re: [PHP] Banner rotation with links

2007-02-14 Thread Németh Zoltán
2007. 02. 14, szerda keltezéssel 08.29-kor Chris Carter ezt írta: > How can I rotate a banner as well as the link in it within a page using PHP. > This can be done as a include file php. Anybody please supply some code or a > link for this. please go STFW for "banner rotation php script" greets Z

[PHP] Banner rotation with links

2007-02-14 Thread Chris Carter
How can I rotate a banner as well as the link in it within a page using PHP. This can be done as a include file php. Anybody please supply some code or a link for this. Thanks in advance. Chris -- View this message in context: http://www.nabble.com/Banner-rotation-with-links-tf3228157.html#a89

Re: [PHP] How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 16:46 +0100, David Blanco wrote: > Hi! > > Robert Cummings wrote: > > > ... Upload sizes are not a PHP limitation. If a limitation at all > > then it's a limitation imposed by the service provider. As such > > Perl won't solve the problem unless the provider was short sighte

Re: [PHP] How to upload files up to 40MB with a html post form?

2007-02-14 Thread David Blanco
Hi! Robert Cummings wrote: > ... Upload sizes are not a PHP limitation. If a limitation at all > then it's a limitation imposed by the service provider. As such > Perl won't solve the problem unless the provider was short sighted > enough to cap PHP and not Perl... if they even offer Perl to thei

[PHP] Re: [?? Probable Spam] Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Andrei
Actually there are 3 directives to change: ini_set("upload_max_filesize","41M"); ini_set("post_max_size","52M"); // alyway bigger than upload_max_filesize ini_set("memory_limit","64M"); // anyway bigger than post_max_size Presuming you got over 120 seconds time limitation and this still

[PHP] Re: PHP/PEAR

2007-02-14 Thread Gregory Beaver
Malcolm Pickering wrote: > Hello there, > > As a new user of PHP I am finding it extremely useful, very fast, and > rewarding. I was also delighted to find the already proven and maintained > extensions in PEAR. > > I have recently downloaded one of these extensions (HTML_Table) which is > pr

Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Arpad Ray
Sergiu Voicu wrote: In the second case, and if PHP isn't in safe mode, at the beggining of your script place this line ini_set("upload_max_filesize","41M"); ini_set() will have no effect there because by the time the script is executed, the upload has finished. You can probably use php_value to

Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Sergiu Voicu
Upload limits can be imposed in 2 ways (maybe more, but I know only 2) when it is about Apache+PHP: 1. From apache with LimitRequestBody Directive 2. From php.ini with upload_max_filesize directive If you are in the first case (which I doubt), and the provider allows the use of .htaccess files,

Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 16:51 +0200, Andrei wrote: > LOL. You got lost in details... > To answer the question... You cannot upload files bigger than 10Mb > unless your provider changes the values from php.ini (regarding upload > file size, form max size and memory max size) and you cannot upl

Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Andrei
LOL. You got lost in details... To answer the question... You cannot upload files bigger than 10Mb unless your provider changes the values from php.ini (regarding upload file size, form max size and memory max size) and you cannot upload even less than 10Mb files if the time needed to uplo

Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 14:22 +, Colin Guthrie wrote: > Robert Cummings wrote: > > On Wed, 2007-02-14 at 14:05 +, Colin Guthrie wrote: > >> Robert Cummings wrote: > >>> On Wed, 2007-02-14 at 13:54 +0100, David Blanco wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >

[PHP] [JOB] Junior Applications Developers - San Antonio TX

2007-02-14 Thread Jay Blanchard
Good morning folks! I have an urgent need for two intermediate PHP developers (1.5 - 2 years), no degree required, but needs to have demonstrable equivalent work experience. These are currently slated as 6 month positions (likely to be permanent) with a rapidly growing and very exciting company

[PHP] FTP + Password ?

2007-02-14 Thread Helder Lopes
i people. I need a help. How to put a password in a folder, in the ftp, via a script? Anybody knows?? Im pt, Sorry for my english!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/PEAR

2007-02-14 Thread Jochem Maas
Robert Cummings wrote: > On Wed, 2007-02-14 at 15:02 +0100, Jochem Maas wrote: >> Malcolm Pickering wrote: >>> Hello there, >>> >>> As a new user of PHP I am finding it extremely useful, very fast, and >>> rewarding. I was also delighted to find the already proven and maintained >>> extensions in

[PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Colin Guthrie
Robert Cummings wrote: > On Wed, 2007-02-14 at 14:05 +, Colin Guthrie wrote: >> Robert Cummings wrote: >>> On Wed, 2007-02-14 at 13:54 +0100, David Blanco wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hola! Mauricio Muriel escribió: > How can I uplo

Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 14:05 +, Colin Guthrie wrote: > Robert Cummings wrote: > > On Wed, 2007-02-14 at 13:54 +0100, David Blanco wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> Hola! > >> > >> Mauricio Muriel escribió: > >> > >>> How can I upload files up to 40MB with a

[PHP] Re: PHP/PEAR

2007-02-14 Thread Colin Guthrie
Malcolm Pickering wrote: > Hello there, > > As a new user of PHP I am finding it extremely useful, very fast, and > rewarding. I was also delighted to find the already proven and > maintained extensions in PEAR. > > I have recently downloaded one of these extensions (HTML_Table) which > is provin

Re: [PHP] PHP/PEAR

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 15:02 +0100, Jochem Maas wrote: > Malcolm Pickering wrote: > > Hello there, > > > > As a new user of PHP I am finding it extremely useful, very fast, and > > rewarding. I was also delighted to find the already proven and maintained > > extensions in PEAR. > > > > I have r

[PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Colin Guthrie
Robert Cummings wrote: > On Wed, 2007-02-14 at 13:54 +0100, David Blanco wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hola! >> >> Mauricio Muriel escribió: >> >>> How can I upload files up to 40MB with a html post form? (without a ftp >>> client) >>> >>> Please, remember >>> >>

Re: [PHP] PHP/PEAR

2007-02-14 Thread Jochem Maas
Malcolm Pickering wrote: > Hello there, > > As a new user of PHP I am finding it extremely useful, very fast, and > rewarding. I was also delighted to find the already proven and maintained > extensions in PEAR. > > I have recently downloaded one of these extensions (HTML_Table) which is > pr

Re: [PHP] PHP/PEAR

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 13:29 +0100, Malcolm Pickering wrote: > Hello there, > > As a new user of PHP I am finding it extremely useful, very fast, and > rewarding. I was also delighted to find the already proven and maintained > extensions in PEAR. > > I have recently downloaded one of these ext

[PHP] PHP/PEAR

2007-02-14 Thread Malcolm Pickering
Hello there, As a new user of PHP I am finding it extremely useful, very fast, and rewarding. I was also delighted to find the already proven and maintained extensions in PEAR. I have recently downloaded one of these extensions (HTML_Table) which is proving to be a great time saver, but can y

Re: [PHP] How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 13:54 +0100, David Blanco wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hola! > > Mauricio Muriel escribió: > > > How can I upload files up to 40MB with a html post form? (without a ftp > > client) > > > > Please, remember > > > > 1. My hosting provider ha

Re: [PHP] How to upload files up to 40MB with a html post form?

2007-02-14 Thread David Blanco
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hola! Mauricio Muriel escribió: > How can I upload files up to 40MB with a html post form? (without a ftp > client) > > Please, remember > > 1. My hosting provider has up to 120 seconds apache timeout > 2. My hosting provider has up to 10MB to upl