this is very strange , this is the full code , but not working
<?php
require("pve2_api.class.php");
$pve2 = new PVE2_API("xxxxxx.com", "apiuser", "pve", "apipassword");
if ($pve2->constructor_success()) {
/* Optional - enable debugging. It print()'s any results currently */
//...