[svn r13315] Trying, when possible, to increase the allowed memory size to avoid hang-up, only for the time of this script's execution

skala
Yannick Warnier 19 years ago
parent 3bfc2b52f1
commit 26cec5f295
  1. 9
      main/coursecopy/copy_course.php
  2. 10
      main/coursecopy/create_backup.php
  3. 9
      main/coursecopy/import_backup.php

@ -1,5 +1,5 @@
<?php
// $Id: copy_course.php 12219 2007-05-01 18:46:59Z yannoo $
// $Id: copy_course.php 13315 2007-09-27 08:17:12Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
@ -49,6 +49,13 @@ if (!api_is_allowed_to_edit())
api_not_allowed(true);
}
//remove memory and time limits as much as possible as this might be a long process...
if(function_exists('ini_set'))
{
ini_set('memory_limit','256M');
ini_set('max_execution_time',1800);
}
$nameTools = get_lang('CopyCourse');
$interbreadcrumb[] = array ("url" => "../course_info/maintenance.php", "name" => get_lang('Maintenance'));

@ -1,5 +1,5 @@
<?php
// $Id: create_backup.php 12597 2007-06-14 12:43:49Z elixir_inter $
// $Id: create_backup.php 13315 2007-09-27 08:17:12Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
@ -43,6 +43,14 @@ if (!api_is_allowed_to_edit())
{
api_not_allowed(true);
}
//remove memory and time limits as much as possible as this might be a long process...
if(function_exists('ini_set'))
{
ini_set('memory_limit','256M');
ini_set('max_execution_time',1800);
}
// section for the tabs
$this_section=SECTION_COURSES;

@ -1,4 +1,4 @@
<?php // $Id: import_backup.php 12219 2007-05-01 18:46:59Z yannoo $
<?php // $Id: import_backup.php 13315 2007-09-27 08:17:12Z yannoo $
/*
==============================================================================
Dokeos - elearning and course management software
@ -47,6 +47,13 @@ if( ! api_is_allowed_to_edit())
api_not_allowed(true);
}
//remove memory and time limits as much as possible as this might be a long process...
if(function_exists('ini_set'))
{
ini_set('memory_limit','256M');
ini_set('max_execution_time',1800);
}
// section for the tabs
$this_section=SECTION_COURSES;

Loading…
Cancel
Save