I ended up getting the PHP script to create legitimate email accounts in an automated fashion on behalf of users using
api2_query and I still don't have a working script using UAPI any where in my code (thanks for Advanced Find and Replace).
So here is my code with basic obfuscation:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once('/usr/local/cpanel/php/cpanel.php');
$cpanel = new CPANEL();
$result = $cpanel->uapi('Email', 'suspend_incoming', array('email' => '
[email protected]'));
echo '<pre>'.print_r($result,1).'</pre>';
?>
..and a reminder, I'm still getting the "...env variablecontaining the path to the socket..." error. What am I missing?