خرید بک لینک

So I believe this is the right place for these questions if not a moderator can move it to where it should be don't down vote a valid question for that reason

Now with that out of the way I have a server which I am ruing this code

<?php
echo 'get file...';
if(!isset($_REQUEST['from'])){die('Fail: Parameter "from" not set.');}
if(!isset($_REQUEST['to'])){die('Fail: Parameter "to" not set.');}
$data=file_get_contents($_REQUEST['from']);
if($data===false){die('Failed getting file.');}
echo 'saving file...';
$succ=file_put_contents($_REQUEST['to'],$data);
echo $succ ? 'Success' : 'Failed saving file';
?>

The goal is for me to transfer data from one server to another without having to download and reupload cause thats just tedious and aoying

So currently when I run this I get the following echo

get file...saving file...Failed saving file

Anybody have any clue why the data is not being saved?

برچسب: نویسنده: استخدام کار تاريخ: شنبه 14 فروردين 1395 ساعت: 12:03

صفحه بندی