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 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
question
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
You know the right answer?
Song organizer< ? phperror_reporting(e_all); ini_set('display_errors',1); if (isset($_get['action...
Questions
question
History, 26.10.2020 14:00
question
English, 26.10.2020 14:00
question
Biology, 26.10.2020 14:00
Questions on the website: 13722367