Hello, I've just bought a script and installed it on http://twipload.com/ but when uploading a file it's giving me an error... Call to undefined function sqlite_open() Code (markup): Could you check it out and maybe tell me how to solve this problem? Regards!
Hi DemCage, I googled for a while and also found that it needs PHP5, the thing is, my host is running PHP 5 so that can't be the problem ! That's why I posted over here, I always make sure I check every possible solution on the web before asking questions ! Any other ideas? Regards.
Can you edit the php.ini? extension=php_pdo.dll extension=php_sqlite.dll Code (markup): That's all I could find... I hope you can solve the problem.
I've just contacted my host, they gave me a default php.ini file which I've uploaded to the correct folder. I've added the lines you've just given me and it is still not working, I'll play around with it for a while, thanks for your help !
Hi mathias, Try do the following then we can narrow it down. <?php ini_set('display_errors', 1); error_reporting(E_ALL); $conn = mysql_connect("localhost", "USERNAME", "PASSWORD"); if($conn == false) { echo "Connection failed: " . mysql_error(); } else { echo "Connection OK"; } ?> PHP: Try connect to the same user as the script. If this doesnt work then you need to contact your host to basically rebuild php with the rite stuff. If it does work then its just the sqllite bit. Have you got any other scripts that use sqllite so you can test?
Hey mathias, Sometimes hosts make your default PHP version to 4 or something besides PHP 5, Open up your .htaccess and put in... This might be differnt for your host, Try it out though.
Hello, @vpdesigns: Mysql works like a charm, it's just the sqlite thing. And I don't have any other scripts. Is it normal that the sqlite file is totally empty and that I don't have to fill in a username/password? @iHolyElement: tried it, still the same error. @ks.alam27: eh ?
The lines are suppose to be there, just remove the ";" before them. It would be easier to check the problem if you can post your php.ini file.
The lines weren't there in the default php.ini file? Here is the default php.ini file they gave me. http://www.copypastecode.com/7387/ Thanks.
Well you need to get your host to install it. Thats the problem lol. And if they say it is installed ask them why the module isnt loaded in PHP.
This file seems like a PHP 4.x version of php.ini. In the latest PHP 5.x version, you will find "extension=php_sqlite.dll" pre-entered and loaded by default.
You can also try this: Create a ".htaccess" ([dot]htaccess) file with the following lines and upload it in your root directory. AddHandler x-httpd-php5 .php AddType application/x-httpd-php5 .php Code (markup): I really hope that works