2018年11月

SSLサイトをfile_get_contents()でエラー

単なる技術的メモです(^_^)

ちょっと古いPHPバージョン(5.1.6)のサーバからfile_get_contents()していた先のサーバがSSL化した事によるエラーあるあるでしょうか?

Warning: file_get_contents() [function.file-get-contents]: SSL: fatal protocol error in /…/… on line …
Warning: file_get_contents() [function.file-get-contents]: Failed to enable crypto in /…/… on line …
Warning: file_get_contents(https://…) [function.file-get-contents]: failed to open stream: Success in /…/… on line …
※…は動的に変わる部分

続きを読む SSLサイトをfile_get_contents()でエラー

windows 10 + Wake-on-Lan

自宅のWindows 10(HP Z800)をリモートで電源を入れたいな、という事で久しぶりにWake-on-Lanの設定を試みる事に(^_^)

まずはWindowsのMACアドレスを調べます。コマンドプロンプトからipconfig /allで出てくる物理アドレス、16進数のアレですね!ここでは仮にMACアドレスが、00-11-22-33-44-55だったとします。
Windowsの電源を切り、自鯖のLinuxからマジックパケットを発射します。

続きを読む windows 10 + Wake-on-Lan