Re: [nyphp-talk] Is this XML valid? (Matt!)

2009-09-19 Thread David Roth
No, it's not an older method. There is no absolute definition of when to use elements versus attributes. There are, however, some attempts at defining general principles: http://www.ibm.com/developerworks/xml/library/x-eleatt.html Thanks for the link and the code example, Mark. I certainly le

Re: [nyphp-talk] Is this XML valid?

2009-09-19 Thread David Roth
No, it's not an older method. There is no absolute definition of when to use elements versus attributes. There are, however, some attempts at defining general principles: http://www.ibm.com/developerworks/xml/library/x-eleatt.html Thanks for the link and the code example, Mark. I certainly le

Re: [nyphp-talk] Is this XML valid?

2009-09-19 Thread David Roth
Hi David: > > > > > > That's not well-formed (valid) because there should be a closing tag at the end. > I was expecting each attribute and node to have it's own <> and >, and > the data not to be surround by double-quotes or am I missing something? As others have mentioned, XML has

Re: [nyphp-talk] Database, table, and column naming schemes

2009-09-19 Thread Matt Juszczak
Here you are facing an issue between readability/ease of retrieval and space needed to store. I think that the idea of using a string of 0's and 1's in one field is interesting & useful, and is readable enough so that if something is awry you'd be able to find it fast. Some string- handling func

Re: [nyphp-talk] Is this XML valid?

2009-09-19 Thread Daniel Convissor
Hi David: > > > > > > That's not well-formed (valid) because there should be a closing tag at the end. > I was expecting each attribute and node to have it's own <> and , and > the data not to be surround by double-quotes or am I missing something? As others have mentioned, XML has "el

Re: [nyphp-talk] Is this XML valid?

2009-09-19 Thread David Krings
Matt Williams wrote: So if the above is valid XML, is there a specific name for this approach? Is there a benefit for doing it this way instead of nested nodes? Might this be considered older method? No, it's not an older method. There is no absolute definition of when to use elements ve

Re: [nyphp-talk] Database, table, and column naming schemes

2009-09-19 Thread Kristina Anderson
> Kristina, > > While we're on this subject, I thought I would ask another pending > question I have related to this. > > I need to store a bunch (and by a bunch, I mean about 30-40) binary > true/false values in my database. > > In the past, I would do something like this: > > CREATE TABLE..

Re: [nyphp-talk] Is this XML valid?

2009-09-19 Thread Matt Williams
On Fri, Sep 18, 2009 at 23:45, David Roth wrote: I've been using simplexml to parse XML and so far the XML I've had to deal > with has been pretty straight forward. Then I run across this XML which I > don't know what to call it or how it should be handled properly. There are different ways to

Re: [nyphp-talk] Is this XML valid?

2009-09-19 Thread David Roth
David Roth wrote: > > > > > > > > I was expecting each attribute and node to have it's own <> and >, and > the data not to be surround by double-quotes or am I missing something? XML attributes must be quoted, but you can use either double or single quotes. If there's nothing between the

Re: [nyphp-talk] does Dreamhost suck?

2009-09-19 Thread Michael Southwell
David Mintz wrote: I have been using Dreamhost because it's cheap and provides what I need and has a really weird and funny newsletter. with the emphasis on weird ;-) However, if you need a custom php.ini, the instructions are found at http://www.wiki.dreamhost.com/index.php/PHP.ini with a

Re: [nyphp-talk] Is this XML valid?

2009-09-19 Thread Alex C
HI, Have you tried closing tag ? it seems not to be closed. Alex On Sat, Sep 19, 2009 at 12:42 PM, li...@nopersonal.info wrote: > David Roth wrote: > >> >> >> >> >> >> >> >> I was expecting each attribute and node to have it's own <> and , and >> the data not to be surround by double-quote

Re: [nyphp-talk] Database, table, and column naming schemes

2009-09-19 Thread Matt Juszczak
Kristina, While we're on this subject, I thought I would ask another pending question I have related to this. I need to store a bunch (and by a bunch, I mean about 30-40) binary true/false values in my database. In the past, I would do something like this: CREATE TABLE... (

Re: [nyphp-talk] Is this XML valid?

2009-09-19 Thread li...@nopersonal.info
David Roth wrote: > > > > > > > > I was expecting each attribute and node to have it's own <> and , and > the data not to be surround by double-quotes or am I missing something? XML attributes must be quoted, but you can use either double or single quotes. If there's nothing between the op

[nyphp-talk] does Dreamhost suck?

2009-09-19 Thread David Mintz
I have been using Dreamhost because it's cheap and provides what I need and has a really weird and funny newsletter. However, if you need a custom php.ini, the instructions are found at http://www.wiki.dreamhost.com/index.php/PHP.ini with a great big disclamer to the effect that if it suddenly bre

Re: [nyphp-talk] Is this XML valid?

2009-09-19 Thread David Krings
David Roth wrote: I've been using simplexml to parse XML and so far the XML I've had to deal with has been pretty straight forward. Then I run across this XML which I don't know what to call it or how it should be handled properly. Here is a fragment of what I'm talking about: I was ex