equal
deleted
inserted
replaced
83 $port = 7447; |
83 $port = 7447; |
84 |
84 |
85 try |
85 try |
86 { |
86 { |
87 status('starting PhpHttpd'); |
87 status('starting PhpHttpd'); |
|
88 status('doing PHP capabilities check'); |
|
89 if ( !function_exists('pcntl_signal') ) |
|
90 { |
|
91 warning('System does not support POSIX functions. Termination signals will result in unclean shutdown.'); |
|
92 } |
88 $httpd = new WebServer($ip, $port); |
93 $httpd = new WebServer($ip, $port); |
89 |
94 |
90 // setup handlers |
95 // setup handlers |
91 status('initializing handlers'); |
96 status('initializing handlers'); |
92 $httpd->add_handler('index', 'function', 'amarok_playlist'); |
97 $httpd->add_handler('index', 'function', 'amarok_playlist'); |