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)); }