Jump to content

Kindly Help Me? im new in PHP


rjtengco

Recommended Posts

Hi.. can somebody out there can help me. im totally frustrated and im googling crazy. can somebody tell me the right configuration of php and mysql to upload more than 1mb file size and store it in a mysql database. my script works fine and it only can upload less than 1mb files size. can somebody give me the right configuration?

Link to comment
Share on other sites

First, you need to find your php.ini file. If you installed php yourself, it's in the directory you installed php in, otherwise it's most likely in a folder called php.

 

Open the php.ini file in Notepad or whatever you use to edit files, and search for the following lines and make sure they are the same as what I've put here.

file_uploads = On
upload_max_filesize = 128M ;;Or whatever size limit you'd like to set.
post_max_size = 128M ;;Doesn't need to be the same.

 

Then restart apache and see if that works.

 

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.