Jump to content

probably a stupid question about uploading files with php


newguy2010

Recommended Posts

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

Link to comment
Share on other sites

...

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.