1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Not sure what this comes under header,chr, sockets; Help

Discussion in 'PHP' started by Big 'G', Oct 13, 2006.

  1. #1
    Okay most php stuff doesnt faze me and the ones that do i usually find the answer to with the follorwing exception.

    Task:
    I am looking at creating sockets for sending/recieving info. In this case RCON commands to a game server. I have come across a script that do what i need but am confused as to the following bit:confused: :confused:
    
      $send = chr (0xFF) . chr (0xFF) . chr (0xFF) . chr (0xFF) . "rcon " . chr (0x00);//Some details ommited
            $resp = "/\xFF\xFF\xFF\xFFprint\x0A/";
    
    Code (markup):
    Question:
    What are the chr (0xFF) and "/\xFF\xFF\xFF\xFFprint\x0A/" for? what function they perform.
    I understand they are ascii charcter,unsure which ones though, but unsure what they represent and more important why the do.

    Can any one enlighten me or provide a tutorial on this aspect of programming.
    Many Thanks
     
    Big 'G', Oct 13, 2006 IP