Hi!
I need to use some PHP code in my cPanel skin. So, I will begin a new skin with only PHP files. This work fine.
But, how can I use cPanel variable in my code? In the normal HTML skin, this line : <cpanel print="$CPDATA{'DNS'}"> will show the domain of the account. I need to use these variables for do some search in MySQL database.
For example, I tried this :
<?php
echo $CPDATA{'DNS'};
?>
OR
<?php
echo $CPDATA['DNS'];
?>
But, no result ... Can you help me?
Regards,
Jean-Philippe Rivard Lauzier
I need to use some PHP code in my cPanel skin. So, I will begin a new skin with only PHP files. This work fine.
But, how can I use cPanel variable in my code? In the normal HTML skin, this line : <cpanel print="$CPDATA{'DNS'}"> will show the domain of the account. I need to use these variables for do some search in MySQL database.
For example, I tried this :
<?php
echo $CPDATA{'DNS'};
?>
OR
<?php
echo $CPDATA['DNS'];
?>
But, no result ... Can you help me?
Regards,
Jean-Philippe Rivard Lauzier