LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   How to read the file from SBC using PHP (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/how-to-read-the-file-from-sbc-using-php-4175463168/)

Newbie89 05-23-2013 10: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.
Quote:

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

theNbomr 05-29-2013 10: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 04:27 AM.