# PHP Problem: Upload script working and not working

**URL:** <https://forum.kirupa.com/t/php-problem-upload-script-working-and-not-working/227382>\
**Category:** programming\
**Created:** [May 29, 2007, 8:05pm UTC](https://forum.kirupa.com/t/php-problem-upload-script-working-and-not-working/227382 "2007-05-29T20:05:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorren\_biffin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lorren_biffin/32/2726_2.png) [@lorren\_biffin](https://forum.kirupa.com/u/lorren_biffin)\
**Post date:** [May 29, 2007, 8:05pm UTC](https://forum.kirupa.com/t/php-problem-upload-script-working-and-not-working/227382/1 "2007-05-29T20:05:40Z")

</div>

I wrote out a script on my local test server that allows a user to upload a file, set some information about it, and insert the information into a database. The thing worked fine on my local test server(Windows machine, PHP5, MySQL4, Apache), but did not work at all on my MT Grid-Server (Linux machine, PHP5, MySQL4, Apache). I’ve narrowed the problem down to the file upload(everything else works great). I’ve checked the CHMOD settings for the upload folders, and they’re a go. I’m not sure what else the issue could be.

Unfortunately this isn’t a situation where I can show off my code, but I’m not doing anything other than using a File Form element(html) and some file vars($\_FILE[‘filefield’][‘tmp\_name’], etc…) So I can’t imagine that y’all would need to see it to help me diagnose the problem. I have a feeling it’s something on the MT(GS) side that’s funkin’ things up.

Anybody got any ideas on what I could check? What settings should be in place for a file upload(averaging from 2.5mb to 7mb) to work?
