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 | |
| Co\run(function() { | |
| go(function () { | |
| var_dump(file_get_contents('http://localhost:9502/requestA')); | |
| }); | |
| go(function () { | |
| var_dump(file_get_contents('http://localhost:9502/requestB')); |
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 | |
| Co\run(function() { | |
| go(function() { | |
| echo "==========================================" . PHP_EOL; | |
| echo file_get_contents('http://localhost:8282/requestA') . PHP_EOL; | |
| echo "==========================================" . PHP_EOL; | |
| }); |
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 | |
| /** | |
| Give the data is this: | |
| [ | |
| { | |
| "name":"Joe", | |
| "meetings":[ |
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 | |
| /** | |
| * Extracted from https://github.com/openswoole/swoole-src/blob/f191c0b0a98e9b97f5c81d4877f450c863e6c36d/ext-src/php_swoole_library.h#L6999 | |
| * | |
| * Changes: | |
| * | |
| * - Added 'service' label | |
| * - Added additional label support | |
| * |
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 | |
| Co::set(['hook_flags' => SWOOLE_HOOK_TCP]); | |
| Co\run(function() | |
| { | |
| // refresh | |
| $redis0 = new Redis(); | |
| $redis0->connect('127.0.0.1', 6379); | |
| $redis0->flushDB(); |
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 | |
| // app/Http/Controllers/TutoringController.php | |
| use App\Models\Student; | |
| use Illuminate\Http\Request; | |
| class TutoringController extends Controller | |
| { | |
| public function updateRecommendations(Student $student) |
OlderNewer