Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Phrasing program output for web interface
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bonkalot
n00b
n00b


Joined: 16 Jun 2002
Posts: 9

PostPosted: Sun Jun 16, 2002 2:05 pm    Post subject: Phrasing program output for web interface Reply with quote

does anybody have any ideas or URLs to sites that can tell me how to phrase the output of a program.

I want to make PHP web interfaces for IPTABLES so that u can see what rules are running, and how much your counters are doing, and also an interface for wvdiald so u can dis/connect ppp connections and keep a log of times and things in a MYSQL DB.


thanks in advance
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Jun 19, 2002 12:23 pm    Post subject: Re: Phrasing program output for web interface Reply with quote

You'll have better luck getting this answered in the programming forum. Moving it there.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
horza
n00b
n00b


Joined: 26 May 2002
Posts: 35
Location: London

PostPosted: Wed Jul 03, 2002 9:56 am    Post subject: All in the PHP manual Reply with quote

If executing the command directly from PHP look at:
http://www.php.net/manual/en/function.system.php
If using a shell script that outputs all the information you need then look at:
http://www.php.net/manual/en/function.virtual.php

Probably better to invoke a shell script from the PHP. This shell script will grow as you add more run-time system checks and platform-dependant switches, and this will be far easier to do in bash than PHP. Then use the PHP string manipulation to parse and make pretty the output returned:
http://www.php.net/manual/en/ref.strings.php

Phillip.
Back to top
View user's profile Send private message
bonkalot
n00b
n00b


Joined: 16 Jun 2002
Posts: 9

PostPosted: Thu Jul 04, 2002 1:04 am    Post subject: Reply with quote

Thanks dude, i just started on doing the same thing, using bash scripts.

now all i have to do, is stop my modem from only finding a DialTone 1 in 8 tryies.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum