I put the file on the wp3 subdomain
https://www.livingislam.org/wp3.livingislam.org/nlinks.php
[php = no success]
<?php
include ($_SERVER['DOCUMENT_ROOT']. 'https://www.livingislam.org/wp3.livingislam.org/nlinks.php');
When I have it on my static page @ main domain, then this is the php:
<?php include($_SERVER['DOCUMENT_ROOT'].'/m/nlinks.php');?>
<br />
My error-log is not updating right now (why?), the last entry was:
[09-Nov-2021 19:34:50 UTC] PHP Warning: include(): Failed opening ‘/home/livingis/wp3.livingislam.orgwp3.livingislam.org/nlinks.php’ for inclusion (include_path=’.:/opt/alt/php73/usr/share/pear’) in
/home/livingis/wp3.livingislam.org/wp-content/plugins/insert-php-code-snippet/shortcode-handler.php(97) : eval()'d code on line 2
older log entry
[24-Oct-2021 16:29:34 UTC] PHP Warning: include(/home/livingis/wp3.livingislam.org…/wp3.livingislam.org/nlinks.php): failed to open stream: No such file or directory in
/home/livingis/wp3.livingislam.org/wp-content/plugins/insert-php-code-snippet/shortcode-handler.php(97) : eval()'d code on line 2
.
It might be a path issue, -
/
with best regards, Omar KN, Stockholm, Sweden