alixaxel/ArrestDB

400 - Bad Request

drveresh opened this issue · 2 comments

Hi,

I keep getting this "400 - Bad Request" error, in spite of keeping the index.php and test.db in the same folder.

My URL format: http://xyz.net/apps/ArrestDB/std

  • Where 'std' is the table in the same database "test.db"

It works fine in local WAMP server, but it is not working after hosting it in Linux/Cpanel. I appreciate your help.

  • Thanks

Same...

I was able to resolve this both in my local server(below setup) and on my hosted cPanel web server, few details are:

  1. In index.php, I used this format:
    $dsn = 'sqlite://./mydb.db'; //The "mydb.db" file is on the same path
    $clients = []; //Just empty

  2. The URL Formats:
    http://localhost:8888/ArrestDBSQLite/index.php/mytable/id/123
    http://localhost:8888/ArrestDBSQLite/index.php/mytable?limit=2

Hope it helps!