diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-11-01 15:00:44 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-11-01 15:00:44 +0000 |
| commit | 368037d4a4839d7ba701ca76b387ed18a9fa7cf3 (patch) | |
| tree | 7cbf568f759cc96f1a22a70e18ad544fd7e15bff | |
| parent | b0d6fa038a74d283db89f7967a1875c3ff9108c7 (diff) | |
| download | boca-368037d4a4839d7ba701ca76b387ed18a9fa7cf3.tar.gz boca-368037d4a4839d7ba701ca76b387ed18a9fa7cf3.zip | |
more memory limit
| -rw-r--r-- | src/.htaccess | 2 | ||||
| -rw-r--r-- | src/fextdata.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/.htaccess b/src/.htaccess index dbafa30..7c89b5b 100644 --- a/src/.htaccess +++ b/src/.htaccess @@ -1,5 +1,5 @@ php_flag output_buffering on -php_value memory_limit 256M +php_value memory_limit 1024M php_value post_max_size 128M php_flag magic_quotes_gpc off php_value upload_max_filesize 128M diff --git a/src/fextdata.php b/src/fextdata.php index 7e95977..1046f29 100644 --- a/src/fextdata.php +++ b/src/fextdata.php @@ -26,7 +26,7 @@ function makeurlhttps($siteurl) { return $siteurl; } -function scoretransfer($putname, $localsite, $timeo=30) { +function scoretransfer($putname, $localsite, $timeo=20) { $ds = DIRECTORY_SEPARATOR; if($ds=="") $ds = "/"; $logstr=''; @@ -246,7 +246,7 @@ function scoretransfer($putname, $localsite, $timeo=30) { } -function getMainXML($contest,$timeo=30,$upd=false) { +function getMainXML($contest,$timeo=20,$upd=false) { $ds = DIRECTORY_SEPARATOR; if($ds=="") $ds = "/"; $logstr = ''; @@ -377,7 +377,7 @@ function getMainXML($contest,$timeo=30,$upd=false) { $opts['ssl'] = array('verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true); $opts['https'] = array('verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true); $context = stream_context_create($opts); - $logstr .= "Transfering data to main server\n"; + $logstr .= "Transferring data to main server\n"; try { $s = @file_get_contents($siteurl . "site/getsite.php", 0, $context); } catch(Exception $e) { @@ -385,7 +385,7 @@ function getMainXML($contest,$timeo=30,$upd=false) { } // $logstr .= "ABB: " . now() . "\n" if($s===false) { - $logstr .= "timeout at transfering\n"; + $logstr .= "timeout at transferring\n"; LOGError("getMainXML: timeout at transfer for $siteurl"); return $logstr; } |