parsing output of passthru -

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kingconnections
Forum Contributor
Posts: 137
Joined: Thu Jul 14, 2005 4:28 pm

parsing output of passthru -

Post by kingconnections »

I am trying to figure out how to parse the info from a passthru command. I tried nl2br comand and no dice?

Code: Select all

passthru('nslookup http://www.google.com');
kingconnections
Forum Contributor
Posts: 137
Joined: Thu Jul 14, 2005 4:28 pm

Post by kingconnections »

nevermind, just used exec and put each line in an array.
Post Reply