Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Telnet output php command

General discussions related to php

Moderators: macek, egami, gesf

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
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Oct 30, 2012 6:23 am

Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.