Spiral

BANNED
Jun 24, 2005
2,018
8
193
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
 

Liberty-Host

Member
Sep 25, 2006
5
0
151
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
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Wierd ..... why did my 1st reply show up before your original post? :D

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.