Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

call to undefined function sqlite_libversion()

Tags:

php

sqlite

I really can't se why i get this error, i have

extension=php_sqlite.dll
extension=php_sqlite3.dll

I am working with wamp with php version 5.4.3

I get the folowing error Call to undefined function sqlite_libversion()

I have the code

 echo sqlite_libversion();

I've tried other forums and threads but all of them isa about forgetting to enable the modules, why do I still have the problem?

like image 521
user1729425 Avatar asked May 15 '26 02:05

user1729425


2 Answers

The method you seem to be looking for in Sqlite3 is:

<?php print_r(SQLite3::version()); ?>

Which should return:

Array ( [versionString] => 3.5.9 [versionNumber] => 3005009 )

As per documentation at http://php.net/manual/en/sqlite3.version.php.

like image 183
orogers Avatar answered May 17 '26 15:05

orogers


This function is part of the (old) SQLite 2 extension, which isn't supported on PHP 5.4 - you'll only have SQLite3 with it.

like image 38
Narf Avatar answered May 17 '26 17:05

Narf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!