jeudi 6 avril 2017

PHP variable not passed to an include from another server

allow_url_includes is enabled with a php.ini file inside my domain's root folder. The file that is to be included is on another web server (http://ift.tt/2p48iaT) and is like following:

<?php

var_dump($myvar);

?>

The test.php that I have on my domain has the following code:

<?php

$myvar = "mystring";
include 'http://ift.tt/2nean7H';

?>

The final output when I open http://ift.tt/1s1F1MK is:

NULL

Is there anything else that needs to be enabled in .ini file or am I going completely wrong with the code?




Aucun commentaire:

Enregistrer un commentaire