#1 (permalink)  
Old 10-18-2006, 01:59 AM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-18-2006, 01:59 AM
Registered User
 
Join Date: Sep 2006
Posts: 5
Liberty-Host is on a distinguished road
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.

Quote:
Warning: Invalid argument supplied for foreach() in /home/liberty/public_html/sandbox/EP_Dev_cPanel_API_PHP4.php on line 497
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-18-2006, 09:06 AM
Registered User
 
Join Date: Sep 2006
Posts: 5
Liberty-Host is on a distinguished road
where can i get a new copy of the script from then?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-18-2006, 11:16 AM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-18-2006, 02:54 PM
Registered User
 
Join Date: Sep 2006
Posts: 5
Liberty-Host is on a distinguished road
this one im rewriting the vHosting Mod to suit our company's needs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:40 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc