Re: [PHP] nested objects

2007-12-07 Thread Victor Matherly
Actually it is academic intro to OO programing, the overkill html was just helping me understand the concept. Now I can put it to good use :-). - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> To: "Victor Matherly" <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Sent: Frid

Re: [PHP] nested objects

2007-12-07 Thread Jochem Maas
Victor Matherly wrote: > > Hello list, > > I want to create a new object and nest the objects variable in an array of > another object. > I think I am going about it the correct way I think you are trying to swat a fly with a nuclear missle. in practice abstracting an HTML table into a bi

Re: [PHP] Seeking overlap algorithm

2007-12-07 Thread Nathan Nobbe
On Dec 7, 2007 10:12 AM, Ford, Mike <[EMAIL PROTECTED]> wrote: > On 07 December 2007 02:14, tedd wrote: > > > > Now, what I need is a way to analyze the distribution of the current > > service providers to see if a given location is open to being sold as > > a "preferred" position -- do you see wh

[PHP] Trading Notice

2007-12-07 Thread Ernest
Hi from Fleming . Hope your Friday is cool and happy holidays. Something big for HxPn.pk over next few weeks. Check otc boards. Keep an eye out for it and get in early. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] nested objects

2007-12-07 Thread Cesar D. Rodas
No problem, Just ask your doubts, we're here to help and get help :-) On 07/12/2007, Victor Matherly <[EMAIL PROTECTED]> wrote: > > Thanks that fixed it. That was so simple no wonder I was banging my head > on the wall :-). > > > > > - Original Message - > From: "Cesar D. Rodas" <[EMAIL P

Re: [PHP] nested objects

2007-12-07 Thread Victor Matherly
Thanks that fixed it. That was so simple no wonder I was banging my head on the wall :-). - Original Message - From: "Cesar D. Rodas" <[EMAIL PROTECTED]> To: "Victor Matherly" <[EMAIL PROTECTED]> Sent: Friday, December 7, 2007 2:37:23 PM (GMT-0500) America/New_York Subject: Re: [PHP] n

[PHP] nested objects

2007-12-07 Thread Cesar D. Rodas
Hello I hope this help you! On 07/12/2007, Victor Matherly <[EMAIL PROTECTED] > wrote: > > > > Hello list, > > I want to create a new object and nest the objects variable in an array of > another object. I think I am going about it the correct way but the > variable is not being stored or retri

[PHP] nested objects

2007-12-07 Thread Victor Matherly
Hello list, I want to create a new object and nest the objects variable in an array of another object. I think I am going about it the correct way but the variable is not being stored or retrieved correctly from the main function. I can't figure out what I am doing wrong. Can anyone help? H

Re: [PHP] how to recognize ENUM column in table?

2007-12-07 Thread Afan Pasalic
Jim Lucas wrote: Afan Pasalic wrote: Jim Lucas wrote: Afan Pasalic wrote: hi, I use the code from http://www.php.net/manual/en/function.mysql-fetch-field (example #1) I'm getting everything I need but can't recognize if the column is ENUM() type? e.g. column "status" is ENUM('0','1') or ENUM(

Re: [PHP] how to recognize ENUM column in table?

2007-12-07 Thread Jim Lucas
Afan Pasalic wrote: > Jim Lucas wrote: >> Afan Pasalic wrote: >>> hi, >>> I use the code from >>> http://www.php.net/manual/en/function.mysql-fetch-field >>> (example #1) >>> I'm getting everything I need but can't recognize if the column is >>> ENUM() type? >>> >>> e.g. column "status" is ENUM('0'

RE: [PHP] Seeking overlap algorithm

2007-12-07 Thread Ford, Mike
On 07 December 2007 02:14, tedd wrote: > Now, what I need is a way to analyze the distribution of the current > service providers to see if a given location is open to being sold as > a "preferred" position -- do you see what I mean? > > Another example, let's say we have four "preferred" servic

Re: [PHP] convert hex message to ascii msg, How?

2007-12-07 Thread tedd
At 3:51 PM +0800 12/7/07, Shelley Shyan wrote: Hi all, How could I convert a hex msg to ascii msg? Is there a php function or sth? Shelley: You mean like a stream of HEX to be translated to ASCII, like: 41 41 52 50 to A A R P (I'm am member) Cheers, tedd -- --- http://sperling.c

Re: [PHP] Another form handling posting question

2007-12-07 Thread tedd
At 9:52 PM -0500 12/6/07, Daniel Brown wrote: On Dec 6, 2007 9:49 PM, tedd <[EMAIL PROTECTED]> wrote: > My technical side is like Swiss cheese -- you never know what holes I don't know and can be surprised at what I do. Keep your replies on-list, old man! ;-P I know others enjoy yo

[PHP] Re: How to create multipart e-mail bodies?

2007-12-07 Thread Nathan Rixham
sorry one more It also worked if i did the following.. Content-Type: multipart/alternative; boundary="-=Part233475926a47beb07.46978329" Delivered-To: [EMAIL PROTECTED] ---=Part233475926a47beb07.46978329 Content-Type:text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit ...

[PHP] Re: How to create multipart e-mail bodies?

2007-12-07 Thread Nathan Rixham
I had the same problem last week and it turned out to be extra line breaks, try.. Content-Type: multipart/alternative; boundary="-=Part233475926a47beb07.46978329" ---=Part233475926a47beb07.46978329 Content-Type:text/plain; charset=utf-8 . Nathan Sándor Tamás (HostWare Kft .

Re: [PHP] Seeking overlap algorithm

2007-12-07 Thread Nathan Nobbe
On Dec 6, 2007 9:14 PM, tedd <[EMAIL PROTECTED]> wrote: > At 6:07 PM -0500 12/6/07, Nathan Nobbe wrote: > >>On Dec 6, 2007 4:59 PM, tedd <[EMAIL PROTECTED]> wrote: > >> > The problem is, could you guarantee to a "preferred" service > provider > >> > that they would receive top-listing 25 percent

Re: [PHP] shared memory access - shmod_open

2007-12-07 Thread Peter Ford
Richard Lynch wrote: > On Thu, December 6, 2007 2:44 am, Rolf_ wrote: >> I have a problem working with shmop_open() in a Solaris environment. >> The >> following cli-script works fine, except shmod_open returns a warning >> 'unable >> to attach or create shared memory segment': >> >> > $sem = "/tmp

Re: [PHP] how to recognize ENUM column in table?

2007-12-07 Thread Afan Pasalic
Jim Lucas wrote: Afan Pasalic wrote: hi, I use the code from http://www.php.net/manual/en/function.mysql-fetch-field (example #1) I'm getting everything I need but can't recognize if the column is ENUM() type? e.g. column "status" is ENUM('0','1') or ENUM('live','hidden','archive') or someth

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread Richard Heyes
Thanks, but unfortunately my ISP does not implemented PEAR, and uses PHP 4.3.10. You can view the source code on http://pear.php.net and use that. Your ISP doesn't have to "support" PEAR. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut

[PHP] proc_open fclose streams..

2007-12-07 Thread Nathan Rixham
Hi Guys, Hoping somebody out there may have come across this one, possible functionality request depending on responses. $descriptor = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w") ); $process = proc_open('mysql', $descriptor, $pipes); fwrite($pipe

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread Richard Heyes
I don't know if it is a PHP question, but I give it a try. I've been trying this subject for a while, but with less success. Now I can create mail bodies like this: http://www.phpguru.org/downloads/html.mime.mail/ -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDe

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread Robert . Degen
Well, the implementation problem could be fixed by "copying" PEAR into your source folder. That should work even with PHP4 but without the nice class architecture. I just can recommend - PEAR is state of the art, and it works perfectly. But think about switching to PHP5. My hosting provider ser

Re: [PHP] shared memory access - shmod_open

2007-12-07 Thread Rolf_
Yes, thank you. I checked this thread before writing here. But following the hints there does not help either. Rolf. Daniel Brown-5 wrote: > > On Dec 6, 2007 3:44 AM, Rolf_ <[EMAIL PROTECTED]> wrote: >> >> Dear List, >> >> I have a problem working with shmop_open() in a Solaris environment.

Re: [PHP] shared memory access - shmod_open

2007-12-07 Thread Rolf_
Thank you for your reply. shmop_open($sem_key, "w", 420, 1) creates the same error message: --- [07-Dec-2007 12:34:23] PHP Warning: shmop_open(): unable to attach or create shared memory segment in ... [07-Dec-2007 12:34:23] PHP Stack trace: [07-Dec-2007 12:34:23] PHP 1. {main}() ...

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread HostWare Kft.
Thanks, but unfortunately my ISP does not implemented PEAR, and uses PHP 4.3.10. - Original Message - From: <[EMAIL PROTECTED]> To: ""Sándor Tamás (HostWare Kft.)"" <[EMAIL PROTECTED]> Cc: Sent: Friday, December 07, 2007 12:07 PM Subject: Re: [PHP] How to create multipart e-mail bodie

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread Zoltán Németh
2007. 12. 7, péntek keltezéssel 12.00-kor Sándor Tamás (HostWare Kft.) ezt írta: > Hi, > > I don't know if it is a PHP question, but I give it a try. > > I've been trying this subject for a while, but with less success. > Now I can create mail bodies like this: > > Content-Type: multipart/altern

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread Per Jessen
Sándor Tamás (HostWare Kft.) wrote: > But my mail client can't show any part of it. When I take a look at > the source code, I can see that it recognise the boundaries, but > somehow for some reason it doesn't show it. Does your email header also include this: MIME-Version: 1.0 /Per Jessen, Zü

Re: [PHP] convert hex message to ascii msg, How?

2007-12-07 Thread Richard Heyes
How could I convert a hex msg to ascii msg? Is there a php function or sth? Try posting a small example. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFIT

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread Robert . Degen
Hi! You should take a look at... http://pear.php.net/package/Mail http://pear.php.net/package/Mail_Mime http://pear.php.net/manual/en/package.mail.mail-mime.php !!! http://pear.php.net/manual/en/package.mail.mail-mime.example.php !!! This should give you a perfect intro... My 2 cents. Rob --

[PHP] How to create multipart e-mail bodies?

2007-12-07 Thread HostWare Kft.
Hi, I don't know if it is a PHP question, but I give it a try. I've been trying this subject for a while, but with less success. Now I can create mail bodies like this: Content-Type: multipart/alternative; boundary="-=Part233475926a47beb07.46978329" ---=Part233475926a47beb07.46978329 Conte

[PHP] Re: How to handle rows of checkboxes upon form submit?

2007-12-07 Thread slith
foreach($_POST['selected_fld'] as $key => $val){ echo 'KEY:' $key . ' - VALUE:' . $val . ''; } Rob Gould wrote: Let's say I have a PHP script which lists a series of objects for sale at a yard sale, each with a checkbox to the left of the name of the item. If I wanted to have a submit

Re: [PHP] PHP Memory Leak

2007-12-07 Thread Jim Lucas
Sascha Braun wrote: Hi Everybody, I have a couple of foreach loops which are ending in a for loop, which causes the apache to consume the complete memory of the server system the php engine is running on. The nesting level is at round about three and looking like that: $num_new = 4; if (is_arr

Re: [PHP] how to recognize ENUM column in table?

2007-12-07 Thread Jim Lucas
Afan Pasalic wrote: hi, I use the code from http://www.php.net/manual/en/function.mysql-fetch-field (example #1) I'm getting everything I need but can't recognize if the column is ENUM() type? e.g. column "status" is ENUM('0','1') or ENUM('live','hidden','archive') or something like that. I w