Hello everyone,
I've found a class on the inernet for cpanel and it works great, until I want to add yariables. I've already posted a reply at the forum i got it from but have yet to recieve an answer and am hoping that someone could help me here.
So let's say I have a file, let's name it somefile.php and the code is as such..
<?php
$cuname = "cpaneluname";
$cpass = "cpanelpass";
$cdomain = "mydomain.com";
$euname = "testing1";
$epass = "testing";
include("class.cpanel.php");
$cpanel = new cpanel('$cuname','$cpanelpass','$cdomain');
$cpanel->CreateEmail('$euname','$epass','$cdomain');
?>
Now, in the cpanel('$cuname',$cpanelpass','$cdomain'); if I use variables like I am using, the script doesn't work. Same goes with CreateEmail(). It works fine if I just enter the tex t statically for each but I need it to be dynamic. ANyone able to help?
I've also tried looking up stuff on variable scopes at numerous sites and also looked up stuff on variable variables to no avail.
Thanks in advance.
Partie™
p.s.
the class code is attached to this document.