(the one from wikipedia/udpprofile CVS )
*/
-require_once('Profiling.php');
-require_once('ProfilerSimple.php');
+require_once(dirname(__FILE__).'/Profiler.php');
+require_once(dirname(__FILE__).'/ProfilerSimple.php');
class ProfilerSimpleUDP extends ProfilerSimple {
function getFunctionReport() {
global $wgUDPProfilerHost;
global $wgUDPProfilerPort;
global $wgDBname;
-
+
$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
$plength=0;
$packet="";