newguy2010 Posted April 18, 2011 Share Posted April 18, 2011 i am trying to make a page to upload music to my website and add the information of the songs into a database, but i cannot get php to let me upload a file bigger than 2mb even after i went into the php.ini and changed the max_upload_size and a few others to 99mb. So i was wondering if i could put my music in a folder on my website and pull the data from the items in the folder and make database entries(probably doubtful) or if i could get some help with getting php to upload bigger files? thanks, Adam Quote Link to comment https://forums.phpfreaks.com/topic/234054-probably-a-stupid-question-about-uploading-files-with-php/ Share on other sites More sharing options...
Muddy_Funster Posted April 18, 2011 Share Posted April 18, 2011 ... So i was wondering if i could put my music in a folder on my website and pull the data from the items in the folder ... Do you mean that you want PHP to pull the MP3 tag info from the files, or just the names? although that's not really relevent, someone here will explain the process of setting the file size limit for upload in short order, I just have never used PHP for rile management before, so can't comment. Quote Link to comment https://forums.phpfreaks.com/topic/234054-probably-a-stupid-question-about-uploading-files-with-php/#findComment-1202971 Share on other sites More sharing options...
dcro2 Posted April 18, 2011 Share Posted April 18, 2011 Do you mean that you want PHP to pull the MP3 tag info from the files, or just the names? That's a great question actually. OP, please post some code so we can see what might be going wrong with it. Quote Link to comment https://forums.phpfreaks.com/topic/234054-probably-a-stupid-question-about-uploading-files-with-php/#findComment-1202990 Share on other sites More sharing options...
newguy2010 Posted April 18, 2011 Author Share Posted April 18, 2011 i would like it to pull the mp3 tag if possible. and i dont have any code for the database part yet because i was trying to get the upload part set up first, but if i could just get php to pull the mp3's tag while it is in the folder then i wouldnt need php to upload the files i could just use a ftp connection with my site and upload the music and tell it to compile a database and to show the data. thank you Adam Quote Link to comment https://forums.phpfreaks.com/topic/234054-probably-a-stupid-question-about-uploading-files-with-php/#findComment-1202991 Share on other sites More sharing options...
dcro2 Posted April 18, 2011 Share Posted April 18, 2011 I found three different id3 tag plugins for PHP: If you use PEAR (or know what it is): http://pear.php.net/package/MP3_Id/download example: http://www.codediesel.com/pear/reading-mp3-file-tags-in-php/ There's also a PECL extension that you can install: http://pecl.php.net/package/id3 example: http://devzone.zend.com/article/4025 And there's also http://getid3.sourceforge.net/ which has some nice examples inside. Your pick. Quote Link to comment https://forums.phpfreaks.com/topic/234054-probably-a-stupid-question-about-uploading-files-with-php/#findComment-1203001 Share on other sites More sharing options...
newguy2010 Posted April 18, 2011 Author Share Posted April 18, 2011 sweet,i will check them out, the zend one seems to be what i want. thank you Adam Quote Link to comment https://forums.phpfreaks.com/topic/234054-probably-a-stupid-question-about-uploading-files-with-php/#findComment-1203016 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.