Re: Converting Perl to PHP, testing CLI with $_POST (newbie) [message #172078 is a reply to message #172077] |
Sun, 30 January 2011 07:06 |
P E Schoen
Messages: 86 Registered: January 2011
Karma:
|
Member |
|
|
This is what I had:
$dbfile = 'C:/xampp/cgi-bin/SCGBG_Data.db';
class MyDB extends SQLite3
{
function __construct()
{
$this->open($dbfile); //This is line 184
}
}
$db = new MyDB();
I got this error:
Fatal error: Uncaught exception 'Exception' with message 'Unable to expand
filepath' in C:\xampp\cgi-bin\EventProcessor.php:184 Stack trace: #0
C:\xampp\cgi-bin\EventProcessor.php(184): SQLite3->open('') #1
C:\xampp\cgi-bin\EventProcessor.php(188): MyDB->__construct() #2 {main}
thrown in C:\xampp\cgi-bin\EventProcessor.php on line 184
So I changed it to use the literal filename:
$this->open('SCGBG_Data.db');
And that worked!
I think I'm almost there...
Paul
|
|
|