Archive

Archive for August, 2009

Recepti: MUNCHMALLOW

August 14th, 2009 Comments off
Categories: Kulinarika Tags:

Kulinarična Slovenija recepti: – Munchmalow

August 14th, 2009 No comments
Categories: Kulinarika Tags:

Kulinarična Slovenija recepti: – Božanska čokoladna rolada

August 14th, 2009 No comments
Categories: Malo mešano Tags:

SubWave on Dreamweaver CS3 and Windows XP 64 or Vista 64

August 7th, 2009 No comments

Just install subweaver and edit this file: %USERPROFILE%AppDataRoamingAdobeDreamweaver CS4en_USConfigurationMenusSubWeaverSubWeaver.htm Change near line 28 the apppath value to: // var apppath = MM.regGetValue(theHive, theKey, theValueData); var apppath = ‘TortoiseProc.exe’;

via Issue 12 – subweaver – Dreamweaver and Windows XP 64 – Project Hosting on Google Code.

Categories: Malo mešano Tags:

PHP XML traversing

August 3rd, 2009 No comments
function parse_account_list($xml)
{
	$doc = new DOMDocument();
	$doc->loadXML($xml);
	$entries = $doc->getElementsByTagName('entry');
	$i = 0;
	$profiles = array();
	foreach($entries as $entry)
	{
		$profiles[$i] = array();

		$title = $entry->getElementsByTagName('title');
		$profiles[$i]["title"] = $title->item(0)->nodeValue;

		$entryid = $entry->getElementsByTagName('id');
		$profiles[$i]["entryid"] = $entryid->item(0)->nodeValue;

		$properties = $entry->getElementsByTagName('property');
		foreach($properties as $property)
		{
			if (strcmp($property->getAttribute('name'), 'ga:accountId') == 0)
				$profiles[$i]["accountId"] = $property->getAttribute('value');

			if (strcmp($property->getAttribute('name'), 'ga:accountName') == 0)
				$profiles[$i]["accountName"] = $property->getAttribute('value');

			if (strcmp($property->getAttribute('name'), 'ga:profileId') == 0)
				$profiles[$i]["profileId"] = $property->getAttribute('value');

			if (strcmp($property->getAttribute('name'), 'ga:webPropertyId') == 0)
				$profiles[$i]["webPropertyId"] = $property->getAttribute('value');
		}

		$tableId = $entry->getElementsByTagName('tableId');
		$profiles[$i]["tableId"] = $tableId->item(0)->nodeValue;

		$i++;
	}
	return $profiles;
}
Categories: php_mysql Tags:
17043 pages viewed, 0 today
11075 visits, 0 today
FireStats icon Powered by FireStats