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
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
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..
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
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
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
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
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:
[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
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
> > 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
> >
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
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
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
> -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
> >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
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
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
> -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é
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
> -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 (
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
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
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
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
# [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
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
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
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:/
> -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
> -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
> -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
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
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
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
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
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
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
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
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,
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
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
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
>
>
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
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
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
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
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
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
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
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
>>>
>>
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
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
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
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
-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
56 matches
Mail list logo