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.
失敗する前にこれを確認することは可能ですか?
if (is_in_open_basedir($path)) { }
ini_getを使用して、open_basedirの現在の値を取得し、他の値と照合することができます。
これはphp標準関数ではありません。例外を処理するには、次を使用できます。
try { } catch( $e ) { }
これを確認してください:PHP例外