# Uploading files using php

**URL:** <https://forum.kirupa.com/t/uploading-files-using-php/111444>\
**Category:** Uncategorized\
**Created:** [May 26, 2004, 11:54pm UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444 "2004-05-26T23:54:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![b\_rich](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@b\_rich](https://forum.kirupa.com/u/b_rich)\
**Post date:** [May 26, 2004, 11:54pm UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444/1 "2004-05-26T23:54:42Z")

</div>

Hi,

I recently ran into a problem with one of my clients. He owns a publishing company and needs to be able to upload manuscripts. I made a upload form using php and it works fine on small files but when i start getting up around 8+mb it will not work.

Is this a server problem? or a PHP issue?

please advise.

thanks,

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 1:12am UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444/2 "2004-05-27T01:12:25Z")

</div>

hmmm… i THINK there is something about this in the php.info page (is that what it is? I haven’t messed with php in ages). But I believe there is a setting that sets a cap if you don’t change it… I’ll look for what I’m thinking of…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 1:17am UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444/3 "2004-05-27T01:17:14Z")

</div>

I was mistaken, it’s php.ini. The info page, well, gives you info.  
here is a link about it:  
[http://www.php.net/manual/en/configuration.directives.php#ini.upload-max-filesize](http://www.php.net/manual/en/configuration.directives.php#ini.upload-max-filesize)  
try changing that 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 2:17am UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444/4 "2004-05-27T02:17:54Z")

</div>

> [@radioxromance](#):
>
> I was mistaken, it’s php.ini. The info page, well, gives you info.  
> here is a link about it:  
> [http://www.php.net/manual/en/configuration.directives.php#ini.upload-max-filesize](http://www.php.net/manual/en/configuration.directives.php#ini.upload-max-filesize)  
> try changing that 😉

is php.ini a file i need to edit or can i use any ini\_set in php?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 2:19am UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444/5 "2004-05-27T02:19:43Z")

</div>

I think you have to be able to change the php.ini on the server. If you’re paying for hosting, you will probably have to ask your host to change it for you, if you’re hosting it yourself it shouldn’t be a problem.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 2:42am UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444/6 "2004-05-27T02:42:11Z")

</div>

Ok… i figured it out … its my freakin server… the company i am hosting with sucks! i called them to change it and they say the max size is 5mb! So… now i get to tell my client i need to change hosting companies… and he is gonna freak out…YAH! can’t wait to tell him that one.

Thanks for your help guys…

any suggestions for hosting companies?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 3:52am UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444/7 "2004-05-27T03:52:35Z")

</div>

> [@Brichnibodesign](#):
>
> Ok… i figured it out … its my freakin server… the company i am hosting with sucks! i called them to change it and they say the max size is 5mb! So… now i get to tell my client i need to change hosting companies… and he is gonna freak out…YAH! can’t wait to tell him that one.
> 
> Thanks for your help guys…
> 
> any suggestions for hosting companies?

I have one with visicom media. They are awesome, the server is lightning fast… And thats really cheap. Just need a domain name.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 3:53am UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444/8 "2004-05-27T03:53:23Z")

</div>

[http://visic.com](http://visic.com/) This is truly the best hoster ever.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 27, 2004, 4:47am UTC](https://forum.kirupa.com/t/uploading-files-using-php/111444/9 "2004-05-27T04:47:41Z")

</div>

You will find that limit cap is common among most hosts and if you are on a shared server they more than likely won’t change it.
