I’m reading some XML with PHP and currently using the DOMDocument class to do so. I need a way to grab the names and values of a tag’s (instance of DOMElement) attributes, without knowing beforehand what any of them are. The documentation doesn’t seem to offer anything like this. I know that I can get an attribute’s value if I
How do I set the selected item in a drop down box
Is there any way to set the selected item in a drop down box using the following ‘type’ code?
how to call a function in PHP after 10 seconds of the page load (Not using HTML)
Is there any way to call a function 10 seconds after the page load in PHP. (Not using HTML.) Answer This code works. Edited from randell’s answer. Thanks to randell
Zend Framework how to set headers
I have a question, how can I do something like this: header(“Content-Disposition: inline; filename=result.pdf”); header(“Content-type: application/x-pdf”); With Zend Framework, …
DBM or SQLite in PHP 5.x
We have a client whose site is hosted on a server (I don’t want to disclose hosting company name) which does not provide DB functionality. We have developed a very simple CMS based site but out implementation uses MySQL. I read somewhere that there are DB like functionality built-in in PHP. I have never used them. What are these and
Which additional securities do you add to your open source cms installations? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 1 year ago. Improve this question I know that being open source does not necessarily makes a program more/less secure than closed source (let’s assume this neutrality,
What does “EGPCS” mean in PHP?
I found the following code in php.ini. what does that mean? And “PHP registers” — what is that? ; This directive describes the order in which PHP registers GET, POST, Cookie, ; Environment and Built-in variables (G, P, C, E & S respectively, often ; referred to as EGPCS or GPC). Registration is done from left to right, newer ;
Best way to do a PHP switch with multiple values per case?
How would you do this PHP switch statement? Also note that these are much smaller versions, the 1 I need to create will have a lot more values added to it. Version 1: switch ($p) { case ‘…
SOAP-ERROR: Encoding: Violation of encoding rules?
Guys, I’m stuck, banging my head off the desk for the past few hours. I am trying to consume a service, and I have 8 other functions that I call that are almost IDENTICAL in nature to this one, but this one, results in a ‘SOAP-ERROR: Encoding: Violation of encoding rules’ error. Heres the function call (wsdl omitted for security):
Good PHP Metric tools [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 9 years ago.