PHP5 and func_num_args()

The forum thread has not been reviewed by Editors yet. Readers are advised to use their best judgement before accessing this thread.
This thread will be reviewed shortly.
If you think this thread contain inappropriate content, please report to webmaster.
Dear All

I had the following code. I would like to know how to pass arguments into the php? Is the argument directly follow the web page?



//Class to convert MySQL into XML and back.
class xmlconverter {

private $user;
private $pass;
private $host;
private $db;

//Constructor function.
public function __construct (){
$num_args = func_num_args();

if($num_args > 0){
$args = func_get_args();
$this->host = $args[0];
$this->user = $args[1];
$this->pass = $args[2];


//Function to connect to the database.
private function connect (){
try {
if (!$this->db = mysql_connect ($this->host,$this->user,$this->pass)){
$exceptionstring = "Error connection to database: <br />";
$exceptionstring .= mysql_errno() . ": " . mysql_error();
throw new exception ($exceptionstring);
} catch (exception $e) {
echo $e->getmessage();