Page 1 of 1

Integrating the VNCViewer screen with the Frame

Posted: Tue May 12, 2009 8:03 am
by gavishwa
Hello all,

Am new to PHP. I have described my problem below in detail.Kindly help me to solve this issue.

Requirement:
When clicking on a Tab,it has to open a VNC console for a linux machine as a tab content.

Command to open a VNC console from PHP which i used:
system("vncviewer <machine ipaddress>::5901")

Sample code:

Code: Select all

 
<? include("tabs.php");
 
        $tabs->start("Summary");
        echo "Under construction.<br/>";
        $tabs->end();
 
        $tabs->start("Console");
        [b]system("vncviewer <machine ipaddress>::5901")[/b]
        $tabs->end();
 
$tabs->run();
?>
 
Observation:
When i try with system("vncviewer <machine ipaddress>::5901") command inside the Tab function in my PHP code. it does not give any visible output in the webpage.

Expected Output:
VNC console has to open as a tab content in when clicking the tab.

Thanking you in Advance.

Regards,
Vish