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 8639007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:53:20+00:00 2026-06-12T10:53:20+00:00

I have an generated output.js file from a specific device which contains Array in

  • 0

I have an generated output.js file from a specific device which contains Array in it:

var OUT=new Array (0x80,0x00,0x40,0x0026,0x0011,0x0014,0x0013,0x0018,0x0017,0x03FD,0x0116)

How can i get access to this array with PHP, so i can easily print specified Array[x] in any location:

print $OUT[4];

With simple JS i was able to do it like:

document.write(OUT[4]);

In case i can also handle that output.js with PHP like a txt file and then splitting and “doing like array thing” but i think there is away to use it right.. ^_^

Any tips or suggestions on that ? 🙂

Thnx!

  • 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-06-12T10:53:22+00:00Added an answer on June 12, 2026 at 10:53 am

    If you want to fetch the file directly with PHP then you can either write a custom parser (using regular expressions if you can trust the file format to be consistant) or by interfacing with a JavaScript engine.

    Otherwise, assuming the JavaScript is running in a web browser…

    The simplest way to do this would be to make use of createElement and appendChild while looping over an array to create a form element containing a hidden input for each element of the array (with a name such as foo[] to satisfy the algorithm PHP uses to populate $_POST and friends) and then submit() the form.

    Alternatively, you could serialise the array to a string (e.g. a comma separated one if you know that there are no commas in the data) and create a query string with it (var qs = "?foo=" + encodeURIComponent(serialised_array);) and then pass it using XMLHttpRequest.

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

Sidebar

Related Questions

I have a output file which is a two dimensional array (this file was
I have generated XAML file from Windows Forms, and with the process calculated right
I have a NetCDF file, which contains data representing total precipitation across the globe
I am trying to create a CSV file from a dynamically generated table.I have
I have a property file which is generated by my ant script itself during
I have a SQL procedure that generates a util file as its output depending
Problem I have some pages that need dynamic data from website to generate output
I have three tables of concern and a query which generates the following output
I have a simple gateway listener which generates a log at the screen output
I have generated a pdf file with password protection by using the following code:

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.