Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    You got a bug in your script!

    There is no difference in PHP5 or PHP4 for what you are doing especially with "foreach()"
    plus I can tell you first hand that all Cpanel API scripts written specifically for PHP4 run
    perfectly fine under PHP5 without any trouble whatsoever

  2. #2
    Member
    Join Date
    Sep 2006
    Posts
    5

    Default cPanel / WHM API for PHP5

    I am trying to build a mod for vBulletin that has users request hosting packages, and if a admin accepts it the mod will automatically create the account. Only problem is I cannot seem to find the API for WHM that is PHP5 compatible. I have the PHP4 one, but it gives me an error even without it being in the mod.

    Warning: Invalid argument supplied for foreach() in /home/liberty/public_html/sandbox/EP_Dev_cPanel_API_PHP4.php on line 497

  3. #3
    Member
    Join Date
    Sep 2006
    Posts
    5

    Default

    where can i get a new copy of the script from then?

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Wierd ..... why did my 1st reply show up before your original post?

    Anyway ...

    I think you completely missed what I was trying to say because the point I was
    actually tryin to make is that you shouldn't need a new copy of the script!

    If you have the script though, I can probably tell you pretty quick what is wrong.

    As a side FYI, I've personally written add-on scripts for phpBB2, SMF,
    and MyBB which perform the same function and allow forum members
    to signup and create hosting account from the forum community.

  5. #5
    Member
    Join Date
    Sep 2006
    Posts
    5

    Default

    this one im rewriting the vHosting Mod to suit our company's needs.

Similar Threads & Tags
Similar threads

  1. cPanel/WHM API?
    By hb-travisbell in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-26-2006, 06:42 PM
  2. PHP5 cPanel + WHM
    By digital-warfare in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-15-2006, 05:04 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube