require_once help

i have two domain with different hosts,
server 1 : abcd.com
server 2 : wxyz.com

i want to use require_once function,

if this config.php hosted on abcd.com

<?php [b]require_once('/config.wxyz.php');[/b] ?>

i want to put config.php on wxyz.com server and how can i link to php code?

sorry im noob

thanks

please help me :frowning:

You can do this,
you can’t not include a file php from another host.

You can try to download the file from ftp, ssh or another conection that don’t pass by interpreter (don’t use apache or another web server) and include downloaded file.

Sponsor our Newsletter | Privacy Policy | Terms of Service