Results 1 to 4 of 4

Thread: ASCII ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    It's not Jim Beam! XcArm's Avatar
    Join Date: Aug:2008
    Location:
    Posts: 118

    ASCII ?

    , HEX -> ASCII , , 2 hex($hex), unhex()

    hex($hex) - $hex 2 , '\x', :

    6D696C73656D -> \x6D\x69\x6C\x73\x65\x6D

    unhex() - , ( ) , foreach .

    ASCII , \x6D\x69\x6C\x73\x65\x6D...?

    :
    $string="\x6D\x69\x6C\x73\x65\x6D";
    echo $string;

    : milsem

    ... ?

    :
    function unhex()
    {
    if(file_exists('hex.inc'))
    {
    $file=fopen('hex.inc',r);
    while(!feof($file))
    {
    $row=fgets($file,999);
    $word=preg_split('@[S]@',$row);

    }
    fclose($file);

    foreach ($word as $d)
    {
    echo $d;
    }


    }
    }
    unhex();

  2. #2
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    '\xXX'. , , . escape- .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  3. #3
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    Quote Originally Posted by XcArm View Post
    :
    $string="\x6D\x69\x6C\x73\x65\x6D";
    echo $string;
    , .. $string='\x6D\x69\x6C\x73\x65\x6D'; .
    HEX. , , HEX . \r\n\t - , .

    Code:
    function hexstr($hexstr) {
      $hexstr = str_replace(' ', '', $hexstr);
      $hexstr = str_replace('\x', '', $hexstr);
      $retstr = pack('H*', $hexstr);
      return $retstr;
    }
    , , .
    ''? * *
    - !
    ...

  4. #4
    It's not Jim Beam! XcArm's Avatar
    Join Date: Aug:2008
    Location:
    Posts: 118
    .. ..
    escape , - ..

    P.C: vbTheKing
    10x

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |