LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-23-2013, 10:25 AM   #1
Newbie89
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.
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...
 
Old 05-29-2013, 10:17 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

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


Reply

Tags
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 12:17 PM
PHP: Read html file, diplay result kenneho Programming 10 02-17-2006 08:33 AM
php read from file and compare. xushi Programming 11 07-14-2005 01:10 PM
PHP - read a random line from a file? Erik Thorsson Programming 3 12-10-2004 10:31 AM
php read file creation, modified date problem antony_csf Programming 3 08-18-2004 06:46 AM


All times are GMT -5. The time now is 12:09 PM.

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