No luck... the syntax is exactly the one you are specifying here... and it does not work... I've put strange id's like "grahambreachishelpingme" (and I'm sure that I don't have any id like this one in any CSS file out there)...
I'm trying to implement a simple tracking ID in my Wordpress theme. It would work like this, I put links out on the internet including a get parameter as follows:
When visitor travels to my site through the link it latches the track_id as they click through the site and doesn't release the id until they leave.
At any given point in the visitor's session I want to look up which affiliate referred them to my site so if the visitor buys anything I can track my sales and which traffic sources and or affiliates are working out the best.
It seems pretty simple but I cannot figure out how to latch the tracking ID to a visitors session on the site.... Anybody know???
Whenever i try to integrate Php with Apache using genuine pattern of copying php.ini-development file
changing path i encounter a problem ie when i restart my apache server it pops a error message and does not start again .Please someone help me with this problem.
$xmlobj = simplexml_load_string($xml);
if ($xmlobj===false) die('bad news');
The result displayed is (appears to be?) an empty structure:
And when I try to iterate over members of the object, it performs no iterations (confirming that the structure is empty).
Is there something wrong with the XML string? Is there a problem because of the namespace declarations or the use of namespaces on every tag? When I remove the namespace declarations in the root tag, I actually get a structure with contents .... but then it doesn't know the namespaces, so it can't use them when I'm parsing the object. (I need to be able to identify namespaces with nodes.)
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:
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!
This requires a re-load of the page, and change of URL, each time you click the button. To do it more "subtley", without a reload, you would have to use AJAX: but the principle would be the same. Pass the information between Server and Browser using calls to the PHP page with GET.
Step 1: Take a browser to the Drupal users forum at drupal.org[^]
Step 2: Look at the extensive documentation there, particularly in the "Forums and groups" section.
Step 3, if you are still stuck: Sign up and post a message to the Drupal support forum explaining your problem. They are a helpful bunch. (I have to say that, I'm one of them. )
I'm writing a small(ish) Python app that is designed to play a list of sounds. Ever seen QLab? A bit like that.
The problem I have is this: I have a threading.Timer that (at the moment) prints to the console that a sound has finished playing - it will change the UI, eventually, but the printout is all I need for now - but the timer does not wait until the interval is complete before it fires the function.