BrutalGT Posted October 6, 2012 Share Posted October 6, 2012 I just got my custom provisioning module finished up, and have a few small issues I need to address. I am trying to find the value specified for "Dedicated IP" on the product page, but have not been able to find the variable for it. I am assuming I am just going to have to pull this value straight from the MySQL Database, but wanted to confirm there is nothing like $params[dedicatedip] that I am missing. I have $serveraccesshash = $params["serveraccesshash"]; and have specified a setting there for my module that appears as "<site-id>1</site-id>". Is there any simple way of grabbing the value from this without manually parsing it? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
BrutalGT Posted October 10, 2012 Author Share Posted October 10, 2012 Anyone able to assist with this at all? 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted October 11, 2012 Share Posted October 11, 2012 The dedicated ip isn't passed to the create module so you will need to grab it from the database. You can use an XML paraser like SimpleXMLElement to get the site-id from the access hash, e.g.: <?php $serveraccesshash = "<site-id>1</site-id>"; $xml = new SimpleXMLElement("<xml>$serveraccesshash</xml>"); echo $xml->{'site-id'}; ?> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.