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 01:30
What “old fashioned” features of checking accounts is p2p replacing
Answers: 3
question
Computers and Technology, 22.06.2019 04:00
Which spereadsheet type will determine how well a bussiness has done over the past year
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
You know the right answer?
Song organizer< ? phperror_reporting(e_all); ini_set('display_errors',1); if (isset($_get['action...
Questions
question
Health, 20.11.2020 21:20
question
Biology, 20.11.2020 21:20
question
Mathematics, 20.11.2020 21:20
Questions on the website: 13722367