wajahat
11-20-2011, 11:46 PM
I am looking forward to use API for automatically demo account creation through my webpage.
http://www.heliosco.com/site/start_trading
Currently, customers have to submit 2 times, once in the software and secondly on the web.
I have used the following code and got following fatal error and exception:
Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `VertexFXOpenDemo.CVertexFXOpenDemo' in OpenDemoCode.php on line 23
com_exception: Failed to create COM object `VertexFXOpenDemo.CVertexFXOpenDemo': Invalid syntax in OpenDemoCode.php on line 23
<?php
set_time_limit(0);
$Name=$_POST['name'];
$Country=$_POST['country'];
$Deposit=(double)$_POST['deposit'];
$Address=$_POST['address'];
$Email=$_POST['email'];
$Phone=$_POST['phone'];
$ServerIP="localhost";//Please provide your VertexFX ServerIP here,,,
$ServerPort=4401;//Please provide your VertexFX Server port here,,,
$Password=$_POST['password'];
$obj=new COM("VertexFXOpenDemo.CVertexFXOpenDemo") or die("Unable to include the dll");
$obj->OpenDemo($ServerIP, $ServerPort, $Address, $Email, $Name, $Phone, $Country, $Deposit, $Password);
if ($obj == null)
echo "obj Not Created";
while(!$obj->ResultReceived)
{
com_message_pump(10);
}
switch($obj->DemoResult)
{
case 1:
echo "Username = $obj->Uname\n";
break;
CASE 3:
echo "The account is not generated; same IP";
break;
default:
echo "The account is not generated";
}
?>
Any Help will be appreciated!
http://www.heliosco.com/site/start_trading
Currently, customers have to submit 2 times, once in the software and secondly on the web.
I have used the following code and got following fatal error and exception:
Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `VertexFXOpenDemo.CVertexFXOpenDemo' in OpenDemoCode.php on line 23
com_exception: Failed to create COM object `VertexFXOpenDemo.CVertexFXOpenDemo': Invalid syntax in OpenDemoCode.php on line 23
<?php
set_time_limit(0);
$Name=$_POST['name'];
$Country=$_POST['country'];
$Deposit=(double)$_POST['deposit'];
$Address=$_POST['address'];
$Email=$_POST['email'];
$Phone=$_POST['phone'];
$ServerIP="localhost";//Please provide your VertexFX ServerIP here,,,
$ServerPort=4401;//Please provide your VertexFX Server port here,,,
$Password=$_POST['password'];
$obj=new COM("VertexFXOpenDemo.CVertexFXOpenDemo") or die("Unable to include the dll");
$obj->OpenDemo($ServerIP, $ServerPort, $Address, $Email, $Name, $Phone, $Country, $Deposit, $Password);
if ($obj == null)
echo "obj Not Created";
while(!$obj->ResultReceived)
{
com_message_pump(10);
}
switch($obj->DemoResult)
{
case 1:
echo "Username = $obj->Uname\n";
break;
CASE 3:
echo "The account is not generated; same IP";
break;
default:
echo "The account is not generated";
}
?>
Any Help will be appreciated!