0

プレーン テキスト ファイル (text.txt) があります。

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

私の PHP スクリプトでは、後で解析できるようにこのファイルを読み取ろうとしていますが、ファイルを読み取ると、改行が表示されず、全体が 1 つの長い行のように見えます。

これが私のPHPです:

ini_set('auto_detect_line_endings',true);
$text = file_get_contents("test.txt");
echo $text;

違いがあれば、MacでTexteditを使用してプレーンテキストファイルを作成しています。

4

3 に答える 3

0

これは、デフォルトで HTTP content-type ヘッダーが「text/html」に設定された状態で PHP が出力するためです。改行はまだそこにあります(ソースを表示してみてください)

于 2013-06-25T20:47:42.893 に答える