Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3962414
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:05:37+00:00 2026-05-20T03:05:37+00:00

Is this even possible? basically I have a c++ application which sends packed 32

  • 0

Is this even possible? basically I have a c++ application which sends packed 32 bit integers to a web server. the php file queries the web server and retrieves a xml file containing all of this packed data, now knowing the format of this packed data isnt a problem, its just how can I make this usable?

the data is made up of different types. some will be single bits, others will be 8 or 16 depending on what it is im storing

any info on this would be greatly appreceated. thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:05:38+00:00Added an answer on May 20, 2026 at 3:05 am

    PHP supports bitwise operators: http://php.net/manual/en/language.operators.bitwise.php

    So after you have an integer variable with the packed data in PHP, just bitwise-and it with a bitmask, and you get the field you want. Like this:

    $myInteger = 5;                              // bit representation 101
    $leastMeaningfulBit = $myInteger & (1 << 0); // sets $leastMeaningfulBit to 1.
    $secondBit = $myInteger & (1 << 1);          // sets $secondBit to 0.
    $thirdBit = $myInteger & (1 << 2);           // sets $thirdBit to 1.
    

    etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure if this is even possible but here goes: Currently I have
I have written a web application that posts a file via http to a
I am unsure if this is even possible, but I thought I would ask.
What are some good ways to do this? Is it even possible to do
I have Flex 4 application in which I have one component as top layer
I'm not sure if this even exists or not, so I figured I would
I've looked for some other articles on this problem and even tried some of
I did some googling to try to answer this question but even after that
This code always works, even in different browsers: function fooCheck() { alert(internalFoo()); // We
Does anybody knows why this snippet returns false even if the passed string is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.