User login

PHP

How to use Less Than or Greater Than in a switch statement

Solution

(From rnreekez in the comments, syntax modified to conform to Drupal's more verbose coding standards.)

Technically you want your switch statement to process for all things TRUE.

Increasing PHP file upload limits... capabilities is another matter

Upping PHP's maximum file size upload limit:

Your problem: the file upload settings page on your Drupal site (if you've found it) is telling you silly PHP won't let people upload big files, to wit:

Your PHP settings limit the maximum file size per upload to 2 MB.

There's two places that this has to change in your php.ini file; this can also be set in your settings.php PHP initialization variables.

Syndicate content