VMware, Inc.
17
4
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:
php
example
.php
Using the Example Programs
4