Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP Reading plain text with newline?
    primarykey
    data
    text
    <p>I have a plain text file (text.txt):</p> <pre><code>11. Bonus: In humans, it is composed of 24 vertebrae plus the sacrum and coccyx. For ten points each: [10] Identify this support structure found in almost all chordates. An excessive curvature of this structure results in scoliosis, and it usually takes a slim "S" shape in an upright human. ANSWER: spine (or spinal column; accept backbone; accept vertebral column) [10] The embryos of many chordates contain this precursor to the spinal column, which is essentially a flexible support rod made of collagen. Unlike most other chordates, lancelets retain this structure as adults. ANSWER: notochord [10] These members of the subphylum Urochordata possess notochords as larvae, but then promptly lose it and settle down as sessile filter feeders devoid of any vertebrate characteristics. ANSWER: tunicates (or sea squirts) 12. Bonus: This novel's protagonist is chased by Detective Fix, who thinks he is a bank robber. For ten points each: [10] Identify this Jules Verne novel in which Phileas Fogg bets that he can circumnavigate the globe in a certain amount of time. ANSWER: Around the World in Eighty Days (or Le tour de monde en quatre-vingts jours) [10] In this Verne novel, Professor Lindenbrock finds a coded note in a Snorri Sturulson book, prompting an adventure through the subterranean world before escaping during an eruption of Stromboli. ANSWER: Journey to the Center of the Earth (or Voyage au centre de la Terre) [10] This novel is a sequel to both In Search of the Castaways and Twenty Thousand Leagues Under the Sea. In it, Cyrus Smith and other Union soldiers escape from Richmond on a hot-air balloon, but get stuck in the title locale. ANSWER: The Mysterious Island (or L'Île mystérieuse) 13. Bonus: He owns the spear Gungnir and sacrificed an eye to drink from the Well of Mimir. For ten points each: [10] Name this owner of the ravens Hugin and Munin who was the chief Norse deity and father of the Aesir. ANSWER: Odin (accept Wotan or Woden) [10] With his brothers Vili and Ve, Odin killed this primordial giant to build the world. He was formed in Ginnungagap by the union of fire and ice. ANSWER: Ymir (accept Augelmir or close pronunciations of that) [10] This cold and icy realm met with the fiery Muspelheim to create Ymir. According to some sources, the wicked dead are sent to this place instead of Hel. ANSWER: Niflheimr </code></pre> <p>In my PHP script I am trying to read this file so I can parse it later, but when I read the file, the newlines do not appear and the whole thing looks like one long line.</p> <p>Here is my PHP:</p> <pre><code>ini_set('auto_detect_line_endings',true); $text = file_get_contents("test.txt"); echo $text; </code></pre> <p>It it makes any difference, I am using Textedit on the mac to create the plain text file.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload