Hi.

I want to use spatiaLite extension in a php-Project. But i am not able to 
loaad it. I hope somebody could help me.
I am using SQLite in this project as database.

I have added:
sqlite3.extension_dir = "/usr/local/spatiaLite""  
...to the php.ini and restarted apache. Now I can find exactly this entry in 
php_info(). 

I am using openSuse with apache2. SQLite 3.6.4 is installed. I have not found 
an update for SQLite in yast. Of course, I have also copied "libspatialite.so" 
to:
"/usr/local/spatiaLite/libspatialite.so".

I thought everything is correct, but when I try:
---
$db->loadExtension('libspatialite.so')
---
...apache tells me:
"PHP Fatal error:  Call to undefined method SQLite3::loadExtension() in".

I don't know why, because, this is exactly, what is told here: 
http://php.net/manual/de/sqlite3.loadextension.php

I have read something about:
http://www.sqlite.org/c3ref/enable_load_extension.html
...but don't know how to enable it. Maybe this is the reason, why 
loadExtension() is not found? I know, maybe it is an php problem, but I don't 
know how to solve it and did not find any help in any php doc / Forum.
I hope somebody of the SQLite community could help me.

Thanks a lot, Stephan

RapidEye AG
Molkenmarkt 30
14776 Brandenburg an der Havel
Germany
 
Follow us on Twitter! www.twitter.com/rapideye_ag
 
Head Office/Sitz der Gesellschaft: Brandenburg an der Havel
Management Board/Vorstand: Wolfgang G. Biedermann,
                           Frederik Jung-Rothenhaeusler
Chairman of Supervisory Board/Vorsitzender des Aufsichtsrates: 
Juergen Breitkopf 
Commercial Register/Handelsregister Potsdam HRB 17 796
Tax Number/Steuernummer: 048/100/00053
VAT-Ident-Number/Ust.-ID: DE 199331235
DIN EN ISO 9001 certified
 
*************************************************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
 
The information in this e-mail is intended for the named recipients
only. It may contain privileged and confidential information. If you
have received this communication in error, any use, copying or
dissemination of its contents is strictly prohibited. Please erase all
copies of the message along with any included attachments and notify
RapidEye AG or the sender immediately by telephone at the number
indicated on this page.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to