flagflag  If you want to see English page, please click "English" Button at Left.

Registration wont work?

このトピックの投稿一覧へ

なし Registration wont work?

msg# 1
depth:
0
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 .3 .4 .5 .6 | 投稿日時 2012-11-23 2:38
tinytime  Not too shy to talk   投稿数: 22
i followed all the instructions on the web page on opensim but everytime i do a request i get "Failure" returned i did the registration in PHP it is running on a linux server with everything enabled.

i also enabled the things in the robust.ini but it wont work for some reason, can anyone help me to see if i did anything wrong?

this is my PHP code:

<?

function getGUID(){
if (function_exists('com_create_guid')){
return com_create_guid();
}else{
mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.
$charid = strtolower(md5(uniqid(rand(), true)));
$hyphen = chr(45);// "-"
$uuid =substr($charid, 0, 8).$hyphen
.substr($charid, 8, 4).$hyphen
.substr($charid,12, 4).$hyphen
.substr($charid,16, 4).$hyphen
.substr($charid,20,12);
return $uuid;
}
}

$new_UUID = getGUID();

$fields = array(
'METHOD' => "createuser",
'FirstName' => "testFirst",
'LastName' => "testLast",
'Password' => "123456",
'Email' => "test@test.com";,
'PrincipalID' => $new_UUID);



$ch = curl_init("http://<my-IP>:8003/accounts");

curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

$result = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);

echo "Return code:" . $info['http_code'] . "<br>";
echo "$result";
?>

i have debug on and it does say that there is a request there
投票数:58 平均点:4.48

投稿ツリー

  条件検索へ


サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 4月翌月
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
<今日>

オンライン状況

34 人のユーザが現在オンラインです。 (1 人のユーザが Forum を参照しています。)

登録ユーザ: 0
ゲスト: 34

もっと...

アクセスカウンタ

今日 : 1589158915891589
昨日 : 5280528052805280
総計 : 2326274323262743232627432326274323262743232627432326274323262743
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com