mardi 3 mars 2015

Fixing this 500 Error - Raspberry Pi /var/www to /home/pi/project/test.db

I'm just in the process of merging my project together and it's driving me nuts trying to figure this out.


Basically I have a python system written and it's residing in this directory:



/home/pi/project.


within that directory I have a sqlite3 db that I'm constantly updating and I'm trying to gain access to this from my dbConn.php file located in my /var/www directory.


However when given the absolute path



$dbh = new PDO('sqlite:/home/pi/Project/modules/test.db') or die("cannot open db");


I'm given 500 errors.


Is there anyway around this? or am I missing something stupid?


Aucun commentaire:

Enregistrer un commentaire