Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバーに接続するために netcat を使用していますが、次のようなことをしたいと考えています。
$sock=pfsockopen($i,$p,$errno,$errstr,30); symlink($file,$sock);
しかしうまくいっていません。私がやりたいのは$file、netcat のコンテンツを表示することです。それを行う方法はありますか?
$file
組み込み関数ではありません。手動でコピーする必要があります:
while(!feof($file)) { fwrite($sock, fread($file, 4096)); }