PDA

View Full Version : I hate coding and PHP!


Rude Awakening
02-21-2007, 05:37 AM
I hate coding as well. (no pun to you pros out there, lots of respect :rolleyes: )

We all know that the default upload size for an attachment is at 2mb, and for a post its 8mb. I'm having a hard time increasing this. I noticed a lot of people saying you have to talk to your host, and this is what they said:

The following may assist you on how to change the upload_max_filesize settings
on your account.

Because we use suPHP to parse php files, you have the option of using a custom
php.ini file.

Your account can have multiple php.ini files on your account in different
folders so you can customize the php processing in different folders should
your script require it. Bla Bla Bla


How the hell am I supposed to create a compatible php.ini when there isnt even one in the damn root folder. I go to php.net, download the zip file, make the two adjustments I needed (upload size and post size). I throw it into the forum root and it tells me it has to be Zend optimized, plus I dont see any changes on the admincp panel of vbulletin (still shows 2mb upload, 8 total). I download the Zend optimizer and realize that I have no idea what Im doing from this point on. I'm basically stuck, confused and pissed! :eek:

I always hated coding and thats the main reason I left my stupid computer engineering degree to continue in business and marketing. Oh well! ;)

nico_swd
02-21-2007, 12:24 PM
Try .htaccess.

php_value upload_max_filesize 300M
php_value post_max_size 300M
php_value memory_limit 300M
php_value max_execution_time 500000

Rude Awakening
02-21-2007, 03:05 PM
Tried it. It wont work only with .htaccess I have to configure a php.ini file as well and I dont know how! :eek:

MarkPW
02-21-2007, 03:33 PM
I'm not sure where the file is supposed to be located/created (ask your host). But once created, it should automatically inherit the global php.ini's settings, and then it should be a simple case of specifying your custom settings.

Rude Awakening
02-21-2007, 11:49 PM
I dont think I'll have a hard time with customizing the settings. It's the creation part that I totally get lost in.

AndrewD
02-22-2007, 04:28 AM
I dont think I'll have a hard time with customizing the settings. It's the creation part that I totally get lost in.

If you've got VB up and running, then go to the admincp/maintenance/phpinfo.

The results will tell you whereabouts the system is reading the standard php.ini

Alternatively create a short php script like the following:


<?php

phpinfo();

?>


and run it.

Then ask you hosts for a copy

Digitalus
02-22-2007, 06:24 AM
login with ssh and do whereis php.ini
that give you de location of your php.ini

Rude Awakening
02-22-2007, 01:44 PM
Apparently I dont have access to the "main" php.ini
Because they use SuPhp I'm allowed to create a php.ini file that I can set to affect all folders beneath it.