clienttest.php revision b7307c9c040a1a8aed0dbabed6574466d0bff2e4
1178N/A * Sample client for the VirtualBox webservice, written in PHP. 1178N/A * Run the VirtualBox web service server first; see the VirtualBox 1178N/A * SDK reference for details. 1178N/A * Copyright (C) 2009-2010 Oracle Corporation 1178N/A * Contributed by James Lucas (mjlucas at eng.uts.edu.au). 1178N/A * The following license applies to this file only: 1178N/A * Permission is hereby granted, free of charge, to any person 1178N/A * obtaining a copy of this software and associated documentation 1178N/A * files (the "Software"), to deal in the Software without 1178N/A * restriction, including without limitation the rights to use, 2362N/A * copy, modify, merge, publish, distribute, sublicense, and/or 2362N/A * sell copies of the Software, and to permit persons to whom the 2362N/A * Software is furnished to do so, subject to the following conditions: 5176N/A * The above copyright notice and this permission notice shall be 1178N/A * included in all copies or substantial portions of the Software. 4033N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 4935N/A * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 0N/A * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 0N/A * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 4935N/A * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 0N/A * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 4935N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 0N/A * OTHER DEALINGS IN THE SOFTWARE. 0N/A//Connect to webservice 0N/A//Logon to webservice 0N/A// Dummy username and password (change to appropriate values or set authentication method to null) 0N/A//Get a list of registered machines 0N/A//Take a screenshot of the first vm we find that is running 0N/A //$alpha = $image[$start+3];