Using The Example Programs; Configuring A Runtime Environment For The Examples; Running The Examples - VMware VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE Manual

Vcloud sdk for php developer’s guide
Hide thumbs Also See for VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE:
Table of Contents

Advertisement

4

Using the Example Programs

In addition to helloVCloud.php, the vCloud SDK for PHP includes a number of other example programs that 
demonstrate how to use the SDK to develop client applications. The examples are in the samples folder of the 
SDK download.
Comments in the examples provide detailed information about how they use the features of the vCloud SDK 
for PHP.
This chapter includes the following topics:
"Configuring a Runtime Environment for the Examples" on page 17
"Running the Examples" on page 17

Configuring a Runtime Environment for the Examples

The samples folder includes a file named config.php that provides values for parameters used in the 
examples. These parameters include the credentials that the examples use for logging in, names for objects 
such as catalogs and vDCs that the examples create, and other values that you are required to specify when 
creating a vCloud API object. You must edit this file before you can run any of the examples. Some parameters 
are initialized to a default value. Parameters that you are required to set are initialized with a place‐holder 
value of please set. Comments in the file provide more information about the parameters and how to obtain 
appropriate values for them.

Running the Examples

Some of the example programs require system administrator privileges to run. Others can be run by any user 
who can create and operate a vApp.
To run any of the examples
1
Edit config.php to provide required parameter values.
2
Run the example in a shell window using a command of the form, where example is the name of the 
example program:
example
php
.php
VMware, Inc.
4
17

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VCLOUD SDK 1.0 - FOR PHP DEVELOPERS GUIDE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Vcloud sdk 1.0

Table of Contents