Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,341
    Thanks
    260
    Thanked 32 Times in 31 Posts

    uploading mp3 issue

    Ok i got my uploader done, works great except for one thing and its a mind bogler.

    i ripped creed my own prison to mp3

    all of the songs upload fine except for the first one Torn.

    so i checked the size, thats ok
    i checked the type thats ok

    what is strange is that i used mode=amend on the url to trigger the upload code. When i use print_r or echo any var at all like this

    PHP Code:
    if ($mode=='amend')
     {

    either print or echo title or something here 
    all of the files trigger that, but this first file on the cd Torn does not even trigger it.

    could it be some kind of a security feature to keep that file from ever being uploaded to the net? I have never heard of anything like that before.

    and the print_t gives an array for all the other files on the cd but this one Torn the array is empty.

    Any ideas because im sooo brain boggled on this one.
    Last edited by durangod; 09-17-2011 at 05:25 PM.

  • #2
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,341
    Thanks
    260
    Thanked 32 Times in 31 Posts
    this is driving me nuts, one file works one file does not, im only getting about 50 percent completion and they are all mp3. I wish i could just upload using FFMPEG and screw the php upload, i know it can be really touchy and i hope that one day they rewrite it to at least display some kind of error so i know whats going on with it.

    anyway question. Am i required to unlink the temp file after process?

  • #3
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,341
    Thanks
    260
    Thanked 32 Times in 31 Posts
    Solved - two day 16 hrs later omg lol...

    after going thru my list of scenarios and eliminating guesses, on a whim i decided to put the force flag in my htaccess file forcing the max upload to 50M ( i had this in my php ini so i thought i was covered)

    and whalla all the files uploaded fine.

    so my guess is that the phpini command was not working. I have had similar issue with dif php ini commands before with shared hosts, and i wonder why?

    I guess to be safe i should start putting both ini and htaccess force flags just to be safe because im not sure why ini works on some but not on others.

    anway that was the deal i just didnt have enough upload allowed.

    crazy stuff.

  • #4
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Quote Originally Posted by durangod View Post
    I have had similar issue with dif php ini commands before with shared hosts, and i wonder why?

    I guess to be safe i should start putting both ini and htaccess force flags just to be safe because im not sure why ini works on some but not on others.
    Are you sure you're editing the correct php.ini and restarting the web server(if PHP is running as a module)?

    Also, some items aren't changeable everywhere(see appendix).

    phpinfo() will tell you the path of php.ini it's loading and what the value of all of your ini settings is in the current context.

  • #5
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,341
    Thanks
    260
    Thanked 32 Times in 31 Posts
    yeah it says usr/local/lib which im assuming is my site root correct.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •