Jump to content

yosra

Members
  • Posts

    15
  • Joined

  • Last visited

yosra's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I m using the **freeradius** server, witch is better and more powerful for web GUI management **daloradiu**s or **dialupadmin** ?
  2. yes bin2hex(mb_convert_encoding("^à@kol","ucs-2","utf-8")) gives me the same output thank u
  3. i tried bin2hex("admin") =>61646d696e bin2hex("^à@kol")=>5ec3a0406b6f6c
  4. ohhh yes i change it UCS-2 samething it didn't work
  5. i want to convert a string to two-byte UNICODE (UCS-2) i have been tryin this command $str =mb_convert_encoding($str,"UCS2","UTF-8"); but it doesn't work the string won't convert
  6. i m tryin to create a NXCP message with http://wiki.netxms.org/wiki/Communication_Protocol_Reference_Guide for example certain filed need to be written on 4 bytes like the flag : end of file=1 i need to convert it in hex and than check the size id it's on 4 bytes or no
  7. i need to set the size of variable for example i need to right '1' into 4 bytes or 'admin' into 2 bytes could u help me please
  8. thank u very much that worked
  9. when i try to execute this code i always have a problem . and i can't get the element i m searching for in the database //select the CODE from nxcp_code $sql= "select value from nxcp_code where name = '$name'" ; $res=mysql_query($sql); if( !$res ) {throw new Exception(mysql_error(),mysql_errno());} $codeArray = mysql_fetch_assoc($res); //This fetch the first row of the result to an array with numeric indexes. if( !$codeArray ){ throw new Exception('Code not found');} //somevhere you should catch it $code =$codeArray[0]; any help please thanks in advance
  10. thank u very much i will try it and i will get back to u
  11. i m tryin to to create library that format a message (protocol NXCP http://wiki.netxms.org/wiki/Communication_Protocol_Reference_Guide) ps: i m new in php thank u for ur quick answer NXCP.class.php
  12. hello is there any function that convert a decimal to bytes thanks in advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.