Telnet output php command

General discussions related to php

Moderators: macek, egami, gesf

bryanxito
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Oct 30, 2012 6:23 am

Telnet output php command

Postby bryanxito » Tue Oct 30, 2012 6:40 am

Hi guys I'm having problems trying to recover the output of this command:

Code: Select all

telnet localhost 8649


This return an output with xml syntax but when I try something like this in php:

Code: Select all

$output = system('telnet localhost 8649');
echo '<pre>' . $output. '/<pre>';


The output is almost empty, it just show words like:

Code: Select all

Trying localhost ...
Connection Done.


Thats right but it should also output the xml syntax and it doesn't. I dont know whats going on. Thanks

Return to “PHP General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron