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

  • SEARCH
  • Home
  • 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 6161221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:26:27+00:00 2026-05-23T21:26:27+00:00

What I’m trying to accomplish: I have two base files on my server that

  • 0

What I’m trying to accomplish:

I have two base files on my server that are edited/copied as needed based on user input. I’m hoping to do most of the work with the user input in javascript and the file editing in PHP, as I’m better with javascript. What I will need to do is edit the files at specific points and change the hex values based on the lengths of certain user-inputted strings.

I’ve done as much as I could without asking for help, but now I definitely need it.

The way one of the files is structured is: three null hex values, then a hex value equivalent to the length of a setting string, the setting string, three more null hex values, a hex value equivalent to the length of the setting’s value string, and finally the value string. An example would be:

06 76 6F 6C 75 6D 65 00 00 00 02 37 38

06 is the length of the “volume” string,

76 6F 6C 75 6D 65 is the “volume” string,

02 is the length of the value string for volume, “78”

37 38 is the setting value, “78”

I can covert the user input to hex myself, but I don’t know how to write to file in hex, or open it in hex, or go to the place I need to…

Also, for some reason, 000webhost won’t let me upload txt files or the files I need to use, so is there a way to use zip files with php?

One last thing, how do I transfer variables between javascript and php without writing them to an html element?

  • 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-23T21:26:28+00:00Added an answer on May 23, 2026 at 9:26 pm

    You don’t need to do anything special to write in hex. Just store your value and output it, php is binary safe. (Don’t store the string “76”, store a character with the value 76.)

    Then use the various file command to read and write your file like @myeviltacos said.

    And you do (more or less) need to put your variable in html elements to transfer them.

    You have four options:

    A form with hidden elements, then submit it.

    Create a url with the variables in the url and go to it.

    Use ajax and do the same as the previous two options.

    And finally you can use jQuery and let it do it for you automatically. Use $.ajax() and set the data property to your variables.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I'm trying to create an if statement in PHP that prevents a single post
I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to loop through a bunch of documents I have to put
I have a bunch of posts stored in text files formatted in yaml/textile (from
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has

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.