Waitrud Weber’s blog

things and reminders for memories

004 Not Laravel but Scoket connection on console on php

Anyway, I could connect to terminal server which I created myself.

 

> .\winmain_server_001.exe

 

f:id:Waitrud_Weber:20181223210511p:plain

 

\php> php -f .\client_001.php
<h2>TCP/IP Connection</h2>
OK.
Attempting to connect to '127.0.0.1' on port '27015'...OK.
Sending HTTP HEAD request...OK.
Reading response:

Closing socket...OK.

I'm pleasure if you download the below.

https://github.com/WaitrudWeber/source_zip/blob/master/winmain-php-20181224.zip

 

Please reffer to the below for compilation.

https://waitrudweber.hatenablog.com/entry/2018/05/01/005938