%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/wow2.varak.net/xml/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/wow2.varak.net/xml/conv.php

<?php
	$res = simplexml_load_file("toconv.xml");
	$spojeni = sqlite_open("recent2.db");
	foreach($res->item as $item)
	{
		$time = (int)$item->timestamp;
		$artist = str_replace("'", "''", $item->artist);
		$album = str_replace("'", "''", $item->album);
		$title = str_replace("'", "''", $item->track);
		sqlite_query($spojeni, "insert into recent(artist, album, track, time, user) values('$artist', '$album', '$title', $time, 'waritko')");
		$count++;
	}	
	sqlite_close($spojeni);
	echo "\nImportovano $count pisnicek\n";
?>

Zerion Mini Shell 1.0