Skip to main content


I have the same issue due to multi database setup in D6.

plz read the following:

In your .htaccess you can try this code:
php_value memory_limit 64M

Please add this code in your theme functions.php file

/** CSS Cache Buster */
add_filter( 'stylesheet_uri', 'child_stylesheet_uri' );
function child_stylesheet_uri( $stylesheet_uri ) { return add_query_arg( 'v', filemtime( get_stylesheet_directory() . '/style.css' ), $stylesheet_uri);

My clients want to change drupal blog->articles and i have done this using string override module

But for blog links we need to use these strings

!username's blog -> !username's article

!username's latest blog -> !username's latest article

@name's blog ->@name's article

@username's blog ->@username's article

Blog -> Article

blog -> article

you need to  change the line

header("Cache-Control: store, no-cache, must-revalidate");


header("Cache-Control: no-store, no-cache, must-revalidate");

in function drupal_page_header() in ./include/

if($device->getCapability('is_wireless_device') == 'true') { print 'This is a mobile device';
} else { print 'This is NOT a mobile device';
function wpp_change_search_url_rewrite() {
    if ( is_search() && ! empty( $_GET['s'] ) ) {
        wp_redirect( home_url( "/search/" ) . urlencode( get_query_var( 's' ) ) );
add_action( 'template_redirect', 'wpp_change_search_url_rewrite' );

write this line at the top of settings.php file:

header('P3P: CP="CAO PSA OUR"');

This line allows IE to accept 3rd party cookies.

In this code snippet, I'll show how you can parse a (large) CSV file using Drupal's Batch API. The purpose of batching an operation is to avoid PHP memory limits and time outs. Before you begin, I recommend reviewing the following two articles. Be sure to review the additional batch parameters outlined in the documentation, you might need to use them.

function MYMODULE_callback_csv_import() { // define path to CSV file $csv_file_path = file_directory_path() . '/import_path/myfile.csv'; // define a redirect path upon batch completion $redirect_path = 'admin/import-csv'; // define batch array structure // NOTE: minimal parameters defined to simplify code $batch = array( 'title' => t('Reading File'), 'operations' => array( array( '_MYMODULE_batch_read', array($csv_file_path), ), ), ); // set batch batch_set($batch); // process batch batch_process($redirect_path);

Next, we'll define the batch callback function. This function will be called repeatedly until the $context['finished'] variable is set to "1".

function _MYMODULE_batch_read($csv_file_path, &$context) { // define batch limit   $batch_limit = 100; // assume the batch process has not completed $context['finished'] = 0; // open the file for reading $file_handle = fopen($csv_file_path, 'r'); // check if file pointer position exists in the sandbox, and jump to location in file if ($context['sandbox']['file_pointer_position']) { fseek($file_handle, $context['sandbox']['file_pointer_position']); } // loop through the file and stop at batch limit for ($i = 0; $i < $batch_limit; $i++) { // get file line as csv $csv_line = fgetcsv($file_handle); // NOTE: at this point, do what ever you'd like with the CSV array data! if (is_array($csv_line)) { // db_query(), etc } // retain current file pointer position $context['sandbox']['file_pointer_position'] = ftell($file_handle); // check for EOF if (feof($file_handle)) { // complete the batch process $context['finished'] = 1; // end loop break; } }
global $custom_theme;
$custom_theme = 'garland';