Hi everyone,
Simple query. I have a RSS.php file in my includes folder and in this I write out an XML file to a feeds folder. It has been working fine except when I changed the relative link used in the file_put_contents function to a root relative one. I want to do this besause I now have a need to include the rss.php file in multiply locations (and levels) of the site.
So this works:
$filename_path = '../feeds/vstudio_'.$_COOKIE['lang'].'.xml';
But this doesn't:
$filename_path = '/feeds/vstudio_'.$_COOKIE['lang'].'.xml';
I have tried using the realpath() function as well with no luck.
Anyone have any tips or advice on something else I can try. Any help much appreciated.
Many thanks,
Richard