-   Linux - Embedded & Single-board computer (
-   -   How to read the file from SBC using PHP (

Newbie89 05-23-2013 11:25 AM

How to read the file from SBC using PHP
I can capture the packet information from SBC and then store in database SQLite.Now I wanna read the database file from SBC to show the result using PHP.

$db=new PDO("sqlite:/root@");
Something like what I say. is the address of SBC.
I still can't communucate between SQLite and PHP...

theNbomr 05-29-2013 11:17 AM

What aspect of this is specific to any embedded system? How would you accomplish your objective on conventional desktop or server hosts?
Really, your question is far too vague for anyone to provide a useful answer. Where, and under what context, is the SQL server running? Where and under what context is the PHP code running? How would you ordinarily communicate between an SQL server and your PHP code? Isn't sqlite a file-based system? As such, I don't see how you can access it remotely, unless you use a file-read/file-modify/file-write system, which will have all sorts of perils if multiple users can concurrently access the database.

--- rod.

All times are GMT -5. The time now is 07:43 AM.