mysql – Error Code: 2006 – MySQL server has gone away
Při importu velkých SQL souborů. Nastavit v konfiguračním souboru (např. my.ini ve Windows): wait_timeout=28800 interactive_timeout=28800 max_allowed_packet=32M
Při importu velkých SQL souborů. Nastavit v konfiguračním souboru (např. my.ini ve Windows): wait_timeout=28800 interactive_timeout=28800 max_allowed_packet=32M
header(‚Content-Description: File Transfer‘);header(‚Content-Type: application/octet-stream‘);header(‚Content-Disposition: attachment; filename=‘ . $fileName;header(‚Content-Transfer-Encoding: binary‘);header(‚Expires: 0‘);header(‚Cache-Control: must-revalidate, post-check=0, pre-check=0‘);header(‚Pragma: public‘);header(‚Content-Length: ‚ . filesize($file));ob_clean();flush();readfile($file);exit;
<script> if(history.pushState) { history.pushState(null, null, ‚#zalozka‘); } else { location.hash = ‚#zalozka‘; }</script> <a name=“zalozka“>Text záložky</a>