Skip to content

Commit e236c58

Browse files
authored
Update README.md
1 parent ca926b7 commit e236c58

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,6 @@ $http_worker->onMessage = function($connection, $request)
9090
Worker::runAll();
9191
```
9292

93-
### A WebServer
94-
```php
95-
require_once __DIR__ . '/vendor/autoload.php';
96-
use Workerman\WebServer;
97-
use Workerman\Worker;
98-
99-
// WebServer
100-
$web = new WebServer("http://0.0.0.0:80");
101-
102-
// 4 processes
103-
$web->count = 4;
104-
105-
// Set the root of domains
106-
$web->addRoot('www.your_domain.com', '/your/path/Web');
107-
$web->addRoot('www.another_domain.com', '/another/path/Web');
108-
// run all workers
109-
Worker::runAll();
110-
```
111-
11293
### A tcp server
11394
```php
11495
require_once __DIR__ . '/vendor/autoload.php';

0 commit comments

Comments
 (0)