excel.php 348 Bytes
Newer Older
sreg's avatar
sreg committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php
	//Integrity: 3c021969017fbcaca608d31996b858efc82ebe37
	//namespace Quark\Db;
	require_once('odbc.php');

	class Excel extends Odbc
	{
		public function open($file,$login,$pass,$db=null)
		{
			$file=realpath($file);
			$dsn="driver={Microsoft Excel Driver (*.xls)};readonly=0;dbq=$file;";
			return parent::open($dsn,$login,$pass);
		}
	}
?>