$_POST['domain'] is the result of some form's CHECKBOX with 3 or more values of domain (C,C++,Java,etc.), whose value is now saved in an array '$Domain'. Now, I need to select the tuples from my table which are in the same domain as selected by the user in the CHECKBOX.
I tried using FOR loop, b...

hey all, does it make sense to pass instances of one data mapper into another? So for example, pass an Address_Mapper into a Person_Mapper because a Person domain object has Address domain objects to save? Am i making sense?

@Andrew You basically need to run all files through apache (which uses php to parse the files). When accessing a file like: file:/// you are just loading a "local" file from your machine. And don't forget to use only relative paths or you will have to change all your urls at some point

@DaveRandom yes. but in your case you told there is a close() function to be called. it could clear the global reference and so this should clean up. but sure. that's a very specific solution to your problem, I fear there is no general feature you can make use of in PHP.

@Andrew Not the wrong one as such, but certainly an outdated one. It's always worth running the latest versions of things, and especially true of Apache 2.4 which has taken some huge strides in the right direction after years of ingrained stupidity

The more important thing is that you are running PHP 5.4.x

But just looking at the page you got your binary from you may find that build unreliable, it looks as if it might have been built with VC6

@hakre I know how to do it, just a little difficult for complete n00bs. I tried to talk someone through it once over the phone and ended up having to RDP in, not a situation I've ever had with mod_php. If it's "my first WAMP" I don't see the harm in it. Then when you understand a little about how things work, then start messing about with fcgid. IMHO.

Apparently there are hundreds millions of people around the world lining up to pay Apple for mp3s. I've never met any of them, though. I think they're a myth propagated by the RIAA to make themselves feel better about their outdated business model.

> The problem there is not that the frameworks make you write bad code, the problem is that those frameworks are the bad code, they have 3 or 4 tasks per super class and then the user extends from those classes in an “static spree” attempt, the same as including the damn “util.php” that I hate so much.

@tereško whether you're technically allowed to sing or not, the riaa is not stupid enough to sue someone singing in public. :) well, unless they're on stage at a concert people paid $50/ticket to get into.

@cHao it's only true , because it is technically difficult to catch you humming while you are on the buss .. if you sing into camera and post the video on youtube , they will try to do something about it

@tereško nah...it's true because if they sued someone for singing along with their mp3 player on the bus, copyright abuse would get a very serious looking at. and that's the last thing people abusing copyright want.

I don't actually understand what you problem is, in your said real-life XML you gave in PHP chat, there are no namespaces involved (and even if!).
Just read out the tag-name from the document element:
# echoes NewDataSet
echo dom_import_simplexml($simplexml)->ownerDocument->documentElemen...

I have to call a bunch of web services. They will send back XML. I need to be able to parse it, find the field names, and match them up to database column names. I want to do this in a generic way becuase there are about 130 different record set formats that I will have to deal with.

I have been messing around with it so much that I did not copy the code correctly.

It is now working properly.

I see you added an ending </string> tag. I will have to double-check the xml that I am getting. Yes, I understand that it closes the first line. But I was thinking that said line was an attribute, not the beginning of an element. I will check what they are sending.

I'm new to xpath, and unable to get this to parse. It produces no output.
This contains XML returned from Google Map API V3. I want to have it parse and return the Zip Code from the PostalCode/PostalCodeNumber. I set-up this test because I need to be able to make sure I can get to the PostalCode...

@hakre Yeh, sure, if you want to abandon 95% of XML go ahead :-P I've written stuff in SimpleXML before and I don't it has ever once not come back and bitten me on the ass, and I have to rewrite the whole thing in DOM. Now I put in the extra 5 minutes at the start and save myself the 2 hours later.