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

Related Questions

I've some questions .. and I really need your help. I have an application.
Due to restrictions of editing some of my templates I really need your help
Need your help. I'm trying to create a page that has two UI states.
need some help from a regex jedi master: If I have a string of
I need some resources that talk about how to design your software to be
Do you need to use some kind of provider? Can you setup your own
I need your help, For example I have a decimal type variable and I
I need your help to define a special case in XML schema: A sequence
I really need your help in my issue very quickly and it's too close
I've got a SharePoint problem which I need some help with. I'm creating some

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.