php include via udt - how do i get target_self?
Posted: Mon Oct 04, 2010 9:59 pm
I have added an external php script via a UDT to my content page.
Everything works fine except i want each link within the script to target self.
( at the moment every link from the script takes me away from cms and onto the external php script)
The external script php has $_SERVER['PHP_SELF']; set.
Do i need bespoke coding or does any one know a quick way to fix this.
UDT test one..
include("/home/client/public_html/folder1/newscript.php");
results in url linking like
http://www.client.co.uk/index.php?jabs=1
UDT test two
$includeFile = file_get_contents("http://www.client.co.uk/folder1/newscript.php");
echo $includeFile;
results in url links like www.client.co.uk/folder1/newscript.php?jabs=1
A massive thanks for any tips or guidance.
Everything works fine except i want each link within the script to target self.
( at the moment every link from the script takes me away from cms and onto the external php script)
The external script php has $_SERVER['PHP_SELF']; set.
Do i need bespoke coding or does any one know a quick way to fix this.
UDT test one..
include("/home/client/public_html/folder1/newscript.php");
results in url linking like
http://www.client.co.uk/index.php?jabs=1
UDT test two
$includeFile = file_get_contents("http://www.client.co.uk/folder1/newscript.php");
echo $includeFile;
results in url links like www.client.co.uk/folder1/newscript.php?jabs=1
A massive thanks for any tips or guidance.