Re: IE8 crashes when back button clicked after sending email from PHP script [message #172195 is a reply to message #172192] |
Thu, 03 February 2011 21:12 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 03/02/11 18:26, P E Schoen wrote:
> Another problem I have had is running SQLite on my live server
> Dreamhost. The documentation indicates that I need to download and
> install SQLite on the server. But my Perl script uses SQLite and I
> didn't have to do anything special. I did, however, need to add this:
>
> use DBI;
> my $db = DBI->connect( # connect to your database, create
> if needed
> "dbi:SQLite:dbname=$dbfile", # DSN: dbi, driver, database file
>
> While for PHP I have only:
>
> $db = new SQLite3($dbFile);
>
> The exact error message:
>
> Fatal error: Class 'SQLite3' not found in
> /home/pes1949/pauleschoen.com/cgi-bin/BGFemail.php on line 52
>
> Any way to fix this?
I had to install the php5-sqlite package to obtain sqlite3 functionality.
Might it be that although your development environment has sqlite3
support your hosting company doesn't?
Dreamhost hosting website doesn't say it supports sqlite. Of course,
this doesn't mean that it doesn't, but my experience (above) is that
it's not "compiled-in" to _all_ flavours of PHP5.
Rgds
Denis McMahon
|
|
|