0

私のPHPコードは次のとおりです。

<?php
$name=$_POST["name"];
$image=$_POST["image"];
$decodedImage= base64_decode("$image");
$link="192.168.1.34:80/kullanici/profil/";
$link=trim($link);

//file_put_contents("C:\\xampp\\htdocs\\kullanici\\profil\\".$name.".JPG",$decodedImage);
file_put_contents($link.$name.".JPG",$decodedImage);
?>

コマンドラインを使用すると関数は機能しますが、パスを使用すると次の192.168.1.34:80/kullanici/profilエラーが表示されます。

file_put_contents(192.168.1.34:80/kullanici/profil/ad.JPG): failed to
open stream: Invalid argument in
4

0 に答える 0