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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:41:33+00:00 2026-05-13T06:41:33+00:00

I need your some help… How to create parallel output from many pages in

  • 0

I need your some help…

How to create parallel output from many pages in one pages, see examples:

I store all data in plain text e.g.

old-book-version.txt
1:1 dadidedodu....
1:2 cacecocuci....
2:1 papopupepi....
2:2 lalilolule....
2:3 and more......

mid-book-version.txt
1:1 dedadodedu....
1:2 cacicecuca....
2:1 popapepupi....
2:2 lalilolule....
2:3 and more......

new-book-version.txt
1:1 dudadidode....
1:2 cucacoceco....
2:1 pepipupapo....
2:2 lalilolule....
2:3 and more......

and i create php file to show them to the web broser for each file txt
like:

old-book-version.php to show old-book-version.txt, 
mid-book-version.php to show mid-book-version.txt,
new-book-version.php to show new-book-version.txt.

the url browser look like:

http://localhost/book/old-book-version.php/old-book-version.txt/2/1 output: 2:1 papopupepi.... 
http://localhost/book/mid-book-version.php/mid-book-version.txt/2/1 output: 2:1 popapepupi....
http://localhost/book/new-book-version.php/new-book-version.txt/2/1 output: 2:1 pepipupapo....

(…/2/1 mean chapter 2 verse 1)

all running well but i also want to create them parallel in one page as comparison with drop down command button option, that mean i give an option to the visitor to compare each version as parallel in one page. after i search on the google i found the example

https://i.stack.imgur.com/bFlAN.gif

Regards,

  • 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-13T06:41:34+00:00Added an answer on May 13, 2026 at 6:41 am

    your select can have an onchange

    <select onchange=”document.location=this.options[this.selectedIndex].value”>

    <option value=”page1.php”>Page #1</option>

    <option value=”page2.php”>Page #2</option>

    </select>

    To concatenate them all, you can do

    $files = glob(dirname(__FILE__) . '/articles/*.txt');
    foreach ($files as $f) {
      echo "<p>File $f:</p><pre>";
      readfile($f);
      echo '</pre>';
    }
    

    that form with the dropdowns lets you select 2 different sources, so the php script will control the display based on the requested sources. you can let the user hit “submit” to submit the form or you can automatically do it in the onchange event.

    First: <select name="source[]"><option value="s1">Source #1</option></select>
    
    Second: <select name="source[]"><option value="s1">Source #1</option></select>
    

    for ($i = 0; $i < count($_REQUEST[‘source’]); ++$i) {
    printText($_REQUEST[‘source’][$i];
    }

    function printText($source)
    {
    $file = dirname(FILE) . “/texts/$source/something.txt”;
    $text = file_get_contents($file);
    echo “$text”;
    }

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

Sidebar

Ask A Question

Stats

  • Questions 322k
  • Answers 322k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A MINUS is a set operation which, as well as… May 14, 2026 at 12:47 am
  • Editorial Team
    Editorial Team added an answer I think that you may be missing izPack's CheckedHelloPanel which… May 14, 2026 at 12:47 am
  • Editorial Team
    Editorial Team added an answer Not in C++03. C++0x introduces decltype: typedef decltype(C::value) type; Some… May 14, 2026 at 12:47 am

Related Questions

I need your help with the following scenario: I am reading some data from
I need some help from the shell-script gurus out there. I have a .txt
Hi I need some help with the following scenario in php. I have a
I need some help trying to come up with a way to set this
I need some help with a SQL query for SQL Server 2005. Here is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.