Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2004, 12:38 AM
WebProWorld New Member
 

Join Date: Apr 2004
Posts: 1
glenn55 RepRank 0
Default increase upload size to website

hi iam pretty new to php and websites but am learning , i have a website with a forum on it and afile uploader on it but my website only allows an upload of 4meg and i want to increase it , i know i have to edit the php.ini file , when i do a phpinfo.php chech it says the PHP.ini file is here ,
web addy
http://dreamslayerartworks.com

/usr/local/Zend/etc/PHP.ini
but i got no idea where this is , one web page said it was in my cgi-bin folder but there is nothing in there when i look with cuteftp or do i need to download a PHP.ini file and edit it and upload it to the cgi-bin folder i got no idea ....
PHP Version 4.3.2

MAIAN_UPLOADER v.1.3

any help would be greatfully appreasiated

glenn
Reply With Quote
  #2 (permalink)  
Old 04-17-2004, 02:38 AM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

HI glenn,

If you are on a normal virtual/shared hosting account, you will not be able to edit php.ini, as it is server-wide.
However you can make modifications for your site/account.
I see you're running Apache, so you can use a file called .htaccess

Create a file with notepad and save as htaccess.txt
Put the following code in:
Code:
php_value upload_max_filesize ###
php_value post_max_size ###
php_value memory_limit ###
Replace ### to the amount you want to allow.
Every host is a bit different. On some you can use megabytes, like 10mb, if that doesn't work, then try converting to bytes (10000000)

You may not need the memory limit directive, but it depends on the number used for the others.

Upload htaccess.txt to the folder which holds the script, then change the name to .htaccess
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0