Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 05-23-2013, 11:25 AM   #1
LQ Newbie
Registered: Apr 2013
Posts: 9

Rep: Reputation: Disabled
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...
Old 05-29-2013, 11:17 AM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.


file, php, read

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP read file in real time blizunt7 Programming 1 08-07-2007 01:17 PM
PHP: Read html file, diplay result kenneho Programming 10 02-17-2006 09:33 AM
php read from file and compare. xushi Programming 11 07-14-2005 02:10 PM
PHP - read a random line from a file? Erik Thorsson Programming 3 12-10-2004 11:31 AM
php read file creation, modified date problem antony_csf Programming 3 08-18-2004 07:46 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration