A
A
Andrew2019-01-03 11:55:07
PHP
Andrew, 2019-01-03 11:55:07

How to run php script without errors?

I use free hosting from beget for tests, I can’t run the script: https://github.com/kernel-picnic/vkparser
I did everything according to the description, but the hosting displays the error "Fatal error: Uncaught Exception: Unable to open database: unable to open database file in /home/d/d95082ke/11/public_html/parser.class.php:66 Stack trace: #0 /home/d/d95082ke/11/public_html/parser.class.php(66): SQLite3->__construct ('/home/d/d95082k...') #1 /home/d/d95082ke/11/public_html/parser.class.php(446): VKparser->__construct() #2 {main} thrown in /home /d/d95082ke/11/public_html/parser.class.php on line 66"
What's the problem? hoster, crooked hands, script?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Timofeev, 2019-01-03
@udmteh

How to run php script without errors?

make no mistakes in it
The literal translation is "I can't open the database". What led to this? Perhaps if you bothered to bring your code, especially line 66 in the parser.class.php file, on which the error swears, it would be clear. But you probably think that there are magicians and fortune-tellers of level 98.
Although wait, you can also press the "blame doesn't work" button. Open start, programs, standard, is there a big red "blame doesn't work" button?

L
Lander, 2019-01-03
@usdglander

Are your database connection settings correct?
Is it possible to use the database in the free plan?

A
Andrew, 2019-01-03
@udmteh

Yes, it is possible to use the database for free on a free plan.
sqlite3 I understand this is a local database, its file lies in the root folder. connected php v 7.0 in it by default it is possible to use sqlite3, but I still added a directive to the site sqlite3.extension_dir = php_sqlite3.dll
no result...(

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question