Home > php function

set permission for magento – magento-cleaning

set permission for magento - magento-cleaning If you are facing issue of permissions or internal server error then try to set permission to magento folder that might help you. set 777 for media , var and app/etc folder and for rest of file and folders create a file with name "magento-cleaning.php" and paste

Read More

drupal 6 basic form , create form in drupal

drupal 6 basic form <?php function test_myform($form_state) { // Access log settings: $options = array('1' => t('Enabled'), '0' => t('Disabled')); $form['access'] = array( '#type' => 'fieldset', '#title' => t('Access log settings'), '#tree' => TRUE, ); $form['access']['log'] = array( '#type' => 'radios', '#title' => t('Log'), '#default_value' => variable_get('log', 0), '#options' => $options,

Read More