Click here to Skip to main content
15,860,861 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: Track traffic sources using PHP get? Pin
DLChambers9-Jul-11 14:43
DLChambers9-Jul-11 14:43 
QuestionProblem in integrating php with apache under window 7 environment Pin
nishant rawat5-Jul-11 21:28
nishant rawat5-Jul-11 21:28 
AnswerRe: Problem in integrating php with apache under window 7 environment Pin
Claudio Ludovico Panetta29-Jul-11 6:06
Claudio Ludovico Panetta29-Jul-11 6:06 
QuestionPHP installation Pin
Member 415987129-Jun-11 19:43
Member 415987129-Jun-11 19:43 
AnswerRe: PHP installation Pin
enhzflep1-Jul-11 0:01
enhzflep1-Jul-11 0:01 
AnswerRe: PHP installation Pin
Joan M6-Jul-11 23:21
professionalJoan M6-Jul-11 23:21 
Questionsimplexml_load_string returning empty structure, no errors. why? Pin
GregStevens29-Jun-11 4:30
GregStevens29-Jun-11 4:30 
AnswerRe: simplexml_load_string returning empty structure, no errors. why? PinPopular
GregStevens30-Jun-11 11:35
GregStevens30-Jun-11 11:35 
I finally found out what was wrong, and came up with a solution!

I hope it isn't considered "bad form" to link to a blog post, but I wrote a long and involved blog explaining my frustration and what I found out the problem to be here:

http://talkingowlproject.blogspot.com/2011/06/simplexml-and-namespace-quirks.html[^]

And I actually wrote my own class, SimpleRDFElement, to extend the SimpleXMLElement class and solve the problems. You can read my description of my extension class and download the 1-page source code here:

http://talkingowlproject.blogspot.com/2011/06/simplerdfelement-class-extension-of.html[^]

In a nut shell: the built in functions with SimpleXML handle namespaces poorly, the children() and attributes() methods only allow you to select children and attributes in a particular namespace (not all at once), and there are no functions specifically for extracting the namespace portion of the tag of the current top-level element.

So, my extension class, SimpleRDFElement, provides functions to solve all of these problems, as well as a method for parsing an RDF XML string into triples.

I hope that this helps anyone else who is interested in this question!
GeneralRe: simplexml_load_string returning empty structure, no errors. why? Pin
Peter_in_278030-Jun-11 14:51
professionalPeter_in_278030-Jun-11 14:51 
GeneralRe: simplexml_load_string returning empty structure, no errors. why? Pin
GregStevens6-Jul-11 15:18
GregStevens6-Jul-11 15:18 
QuestionGet & show data using CURL Pin
ahmed0181126-Jun-11 18:33
ahmed0181126-Jun-11 18:33 
QuestionHow to include a Javascript variable inside a php function? Pin
Glen Villar24-Jun-11 12:58
Glen Villar24-Jun-11 12:58 
AnswerRe: How to include a Javascript variable inside a php function? Pin
Graham Breach25-Jun-11 2:52
Graham Breach25-Jun-11 2:52 
AnswerRe: How to include a Javascript variable inside a php function? Pin
GregStevens6-Jul-11 15:29
GregStevens6-Jul-11 15:29 
QuestionPHP with Drupal Pin
CodingLover23-Jun-11 19:17
CodingLover23-Jun-11 19:17 
AnswerRe: PHP with Drupal Pin
Peter_in_278023-Jun-11 19:26
professionalPeter_in_278023-Jun-11 19:26 
GeneralRe: PHP with Drupal Pin
CodingLover23-Jun-11 19:41
CodingLover23-Jun-11 19:41 
AnswerRe: PHP with Drupal Pin
CodingLover24-Jun-11 16:01
CodingLover24-Jun-11 16:01 
QuestionPython Threading.Timer Executes Immediately Pin
icemclean21-Jun-11 10:07
icemclean21-Jun-11 10:07 
AnswerRe: Python Threading.Timer Executes Immediately Pin
etkid8425-Aug-11 3:39
etkid8425-Aug-11 3:39 
QuestionI want to learn whow to make like that project. Pin
rabbyweb16-Jun-11 12:50
rabbyweb16-Jun-11 12:50 
AnswerRe: I want to learn whow to make like that project. Pin
walterhevedeich16-Jun-11 15:38
professionalwalterhevedeich16-Jun-11 15:38 
Questionsimulated annealing for distribution in php Pin
wahyu oke14-Jun-11 9:58
wahyu oke14-Jun-11 9:58 
QuestionI urgently need an online exam or test script Pin
E.O.Akinyemi13-Jun-11 13:53
E.O.Akinyemi13-Jun-11 13:53 
AnswerRe: I urgently need an online exam or test script Pin
walterhevedeich16-Jun-11 15:35
professionalwalterhevedeich16-Jun-11 15:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.