Soru & Cevap

file_put_contents:failed to open stream: Invalid argument in ...

24.05.2016 - 08:54

Merhaba,

php ile servera resim aktarmaya çalışıyorum android studio ile profil resmi gibi bir şey yapmak amacım ama file_put_contents çalışmıyor


file_put_contents(192.168.1.34:80/kullanici/profil/ad.JPG): failed to open stream: Invalid argument in hatasını alıyorum.

php kodlarım ise şöyle 

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

7 Görüntülenme

0 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.