blackhawkso Posted April 15, 2011 Share Posted April 15, 2011 Hey Folks This is a major long shot but is their a way that i can use php to upload one mp3 file and one doc file, then get the php script to place the mp3 file in one folder but also copy the mp3 file and make it into a zip file and place it into another folder as well as also make another copy of the mp3 file pair it with the doc file and make it into another zip file in yet another folder mp3->---------------------------->--mp3----------------->----mp3 into zip-------->--mp3 + doc into zip &---- > --Uploaded via php----->--placed in folder a--->----placed in folder b--->--placed in folder c doc-->---------------------------->--copied--------------->----mp3 copied--------->-- But thier is a catch the host i am using didn't activate ZipArchive() function so need a diferent way to make the zip file. Any Ideas people? because i have been pulling my hair out at this one please help Phil Quote Link to comment https://forums.phpfreaks.com/topic/233859-this-is-a-long-shot-but-can-someone-help-me/ Share on other sites More sharing options...
Krash Posted April 16, 2011 Share Posted April 16, 2011 Why would you want to zip an mp3? The zip file will be the same size as the original - there's nothing to compress in an mp3. Quote Link to comment https://forums.phpfreaks.com/topic/233859-this-is-a-long-shot-but-can-someone-help-me/#findComment-1202206 Share on other sites More sharing options...
blackhawkso Posted April 16, 2011 Author Share Posted April 16, 2011 The orignal mp3 is for streaming on the site but the user of the site can also download the song both with and without the lyrics (doc file) which is why im putting the mp3 into zip files as well Quote Link to comment https://forums.phpfreaks.com/topic/233859-this-is-a-long-shot-but-can-someone-help-me/#findComment-1202212 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.