Created
April 10, 2014 14:10
-
-
Save i-am-scott/10386462 to your computer and use it in GitHub Desktop.
Gmod lua_error_url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Gmod Command (Including quotes!): | |
lua_error_url "http://example.com/log_errors.php" | |
Expected POST data | |
Array | |
( | |
[v] => 4 | |
[hash] => 298231401 | |
[error] => lua/entities/wac_pod_mm1_gau12/shared.lua:6: attempt to index global 'wac' (a nil value) | |
[stack] => 1. unknown - lua/entities/wac_pod_mm1_gau12/shared.lua:6 | |
2. include - [C]:-1 | |
3. unknown - lua/entities/wac_pod_mm1_gau12/init.lua:2 | |
[realm] => server | |
[addon] => 221255637 | |
[gamemode] => terrortown | |
[gmv] => 166 | |
[os] => windows | |
[ds] => false | |
[time] => 20:04:12 | |
) | |
*/ | |
error_reporting( E_ALL ^ E_WARNING ); | |
if( !empty($_POST) ){ | |
file_put_contents( "log.txt", print_r( $_POST, true ) ); | |
} | |
print_r( file_get_contents( "log.txt" ) ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this :)