calling the VNCViewer console inside the frame

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
gavishwa
Forum Newbie
Posts: 2
Joined: Tue May 12, 2009 7:40 am

calling the VNCViewer console inside the frame

Post 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:
Line number On/Off | Expand/Contract

Code: Select all

 
   1.  
   2. <? include("tabs.php");
   3.  
   4.         $tabs->start("Summary");
   5.         echo "Under construction.<br/>";
   6.         $tabs->end();
   7.  
   8.         $tabs->start("Console");
   9.         [b]system("vncviewer <machine ipaddress>::5901")[/b]
  10.         $tabs->end();
  11.  
  12. $tabs->run();
  13. ?>
  14.  
 
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
Last edited by Benjamin on Thu May 14, 2009 12:49 am, edited 1 time in total.
Reason: Added [code=php] tags.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: calling the VNCViewer console inside the frame

Post by jaoudestudios »

Is this even possible? to get a desktop view through a webpage
Griven
Forum Contributor
Posts: 165
Joined: Sat May 09, 2009 8:23 pm

Re: calling the VNCViewer console inside the frame

Post by Griven »

It is possible, but only with something like Citrix. I don't believe VNC offers a web-based application.
Post Reply