Quantcast
Channel: VMware Communities : Unanswered Discussions - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 872

Why can't I put my code in a function?

$
0
0

Salutations VMware Community,

 

I have been playing with the vCloud Director v 1.0.2 PHP SDK for roughly the past couple of weeks and I am learning new things all the time but something that I cannot explain nor do I understand is I have a block of code running great, doing exactly what I expect and then I put it into a function, or try to, and it breaks...and I get variations of these messages :

 

PHP Notice:  Undefined variable: server in /home/jtuttle/Downloads/vcloudPHP-1.0.2/samples/CN-VCDHelper.php on line 21
PHP Notice:  Undefined variable: auth in /home/jtuttle/Downloads/vcloudPHP-1.0.2/samples/CN-VCDHelper.php on line 21
PHP Notice:  Undefined variable: httpConfig in /home/jtuttle/Downloads/vcloudPHP-1.0.2/samples/CN-VCDHelper.php on line 21
PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /home/jtuttle/Downloads/vcloudPHP-1.0.2/library/VMware/VCloud/Http/Client.php on line 79
'username' and 'password' are valid keys of array $auth

 

I'm guessing that it has something to do with the HTTP2 package and I've seen a video that showed someone setting up their dev enviroment having to download and put some files from HTTP2 somewhere but I was able to get everything set up using pear install and apt-get.  If anyone is familar with what's going on and would shed some light on my situation I would greatly appreciate it.

 

thanks,

Jason.


Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>