Aynı (dedicated) sunucu içinde bulunan 2 site arasında include kullanmak istiyorum.
İşletim sistemi: Windows
PHP sürüm: 5.2.3
abc.com/a.php dosyasını
xyz.com/b.php nin içine alamıyorum bir türlü.
Aşağıdaki şekillerde denedim fakat sonuç elde edemedim..
b.php <?PHP
include 'D:\vhosts\abc.com\httpdocs\a.php';
?>
<?PHP
require 'D:\vhosts\abc.com\httpdocs\a.php';
?>
<?PHP
echo file_get_contents("D:\vhosts\abc.com\httpdocs\a.php");
?>php.net'te böyle bir uyarı var ama bu durumu aşmanın bir yolu yok mu?
Alıntı
WarningWindows versions of PHP prior to PHP 4.3.0 do not support accessing remote files via this function, even if
allow_url_fopen is enabled.
Düzenleme: Veritabanını kullan dosyaları öbür siteme aktarıp veritabanını ortak kullanmayı denedim, sorun çözüldü.