subject

Song organizer< ? phperror_reporting(e_all); ini_set('display_errors',1); if (isset($_get['action'])) {if ((file_exists("songorganizer/songs. txt"))& & (filesize("songorganizer/songs. txt")! = 0)) {$songarray = file("songorganizer/songs. txt"); switch ($_get['action']) {case 'remove duplicates': $songarray = array_unique($songarray); $songarray = array_values($songarray); break; case 'sort ascending': sort($songarray); break; case ’shuffle’: shuffle($songarray); break; } // end of the switch statementif (count($songarray)> 0) {$newsongs = implode($songarray); $songstore = fopen("songorganizer/songs. txt","wb"); if ($songstore === false)echo "there was an error updating the song file\n"; else {fwrite($songstore, $newsongs); fclose($songstore); }}elseunlink("songorganizer/songs. txt"); }}if (isset($_post['submit'])) {$songtoadd = stripslashes($_post['songname']) . "\n"; $existingsongs = array(); if (file_exists("songorganizer/songs. txt")& & filesize("songorganizer/songs. txt")> 0) {$existingsongs = file("songorganizer/songs. txt"); if (isset($_post['submit'])) {$songtoadd = stripslashes($_post['songname']) . "\n"; $existingsongs = array(); if (file_exists("songorganizer/songs. txt")& & filesize("songorganizer/songs. txt")> 0) {$existingsongs = file("songorganizer/songs. txt"); if ("songorganizer/songs. txt"))|| (filesize("songorganizer/songs. txt")== 0))echo "there are no songs in thelist.\n"; else {$songarray = file("songorganizer/songs. txt"); echo "\n"; foreach ($songarray as $song) {echo "\n"; echo "" . htmlentities($song) .""; echo "\n"; }echo "\n"; }? > sort song list
remove duplicate songs
randomize song list
add a new songsong name:

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e.g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
You know the right answer?
Song organizer< ? phperror_reporting(e_all); ini_set('display_errors',1); if (isset($_get['action...
Questions
question
Mathematics, 07.12.2020 03:50
question
Mathematics, 07.12.2020 03:50
question
Mathematics, 07.12.2020 04:00
question
Mathematics, 07.12.2020 04:00
question
Mathematics, 07.12.2020 04:00
question
History, 07.12.2020 04:00
Questions on the website: 13722361