ec2のサーバーを2つ持っています。
(A,Bとする)
Aのサーバーに、あるxmlを置いています。
BのサーバーにphpをおいてAのサーバーのxmlを読み込む方法
はありますでしょうか?
file-get-contentなど一通り調べてやったのですが、ダメでした。
<?php $path = '/test1/test2/test3/test4/fileA.xml'; readfile($path); require($path); include($path); file_get_contents($path); ?>
などなどを試しました。