To increase the default php memory limit and max file upload size in Drupal 6, the following methods can be performed:
If you have access to your php.ini file add this script (recommended):
In your php.ini file...
PHP ScriptsTo increase the default php memory limit and max file upload size in Drupal 6, the following methods can be performed: If you have access to your php.ini file add this script (recommended): In your php.ini file... The following PHP function checks to see if a particular taxonomy id (term name) exists: <?php The following PHP script checks to see if a url argument is TRUE: <?php Here is a list of available variables within page.tpl for Drupal 6: General utility variables: The following PHP script can be used to check if the Drupal home page is TRUE: <?php Basic PHP date() script: <?php print date('Y'); ?> -------------------------------------------------------- Simple copyright statement using year ('Y') date format: <?php echo... Here is an example of applying a Drupal Imagecache preset to the output of an imagefield within a .tpl file. Example: <?php print theme('imagecache', 'preset_name_here',$node->field_my_image[0]['filepath']);?> Here is a Drupal PHP example using !empty that checks to see if a particular field has content. If the field IS NOT empty, then display the contents of that field. Else, output a text string. Example: <?php |