[PHP] Parse exec output

2003-02-28 Thread Gregory Chagnon
If I exec a command like ifconfig, I'd like to be able to parse. What is the best way to go about thihs? An example output from ifconfig is: [EMAIL PROTECTED]:/var/log> ifconfig eth0 Link encap:Ethernet HWaddr 00:C0:4F:AB:F9:59 inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:2

[PHP] One more string question

2003-02-26 Thread Gregory Chagnon
When I submit a form with a text area containing the test "//server/share" and try to echo the variable it echos "server//share". Is there any way to prevent the extra /'s? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiple line text area

2003-02-26 Thread Gregory Chagnon
27;t > render newlines, only . If you're seeing something different, then > show your code and explain this more. > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ > > > -

Re: [PHP] multiple line text area

2003-02-26 Thread Gregory Chagnon
That would work, only I need to copy this text to a file without the in it. -Greg "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I need to be able to preserve line breaks when a user types in > multiple > > lines in a multitple line test area. Right now if I ec

[PHP] Re: multiple line text area

2003-02-26 Thread Gregory Chagnon
Make that a multitple line TEXT area, not a test area :) -Greg "Gregory Chagnon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I need to be able to preserve line breaks when a user types in multiple > lines in a multitple line test area. Right now if I echo

[PHP] multiple line text area

2003-02-26 Thread Gregory Chagnon
I need to be able to preserve line breaks when a user types in multiple lines in a multitple line test area. Right now if I echo $_POST['textarea'] I get everything on one line. Is there any way to do this? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Select multiple boxes

2003-01-18 Thread Gregory Chagnon
The problem is I have 2 seelect boxes...it's for creating a user and adding them to a list of available groups...so I have one select box that is initially empty called memberOf and another box that has all of the available groups listed in it called availableGroups. I have a script that can move

[PHP] Select multiple boxes

2003-01-17 Thread Gregory Chagnon
Hi- Is there any way to get all of the elements in a SELECT MULTIPLE box, not just the ones that are selected? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php