Hi,
I have a php file, where i am using an include from a URL
detail.php:
$html = "";
$contentFile = "http://www.mysite.com/link.php";
if ( $contentFile ) {
$fileBuffer = file($contentFi le);
foreach ($fileBuffer as $tmp) {
$html .= $tmp;
}
}
------------------------
link.php contains a script which echos $PHP_SELF
when i echo it, it displays "link.php" but i want the output as
"detail.php " basically i need to echo where the link is called from..
any solution ??
thanks
murali
I have a php file, where i am using an include from a URL
detail.php:
$html = "";
$contentFile = "http://www.mysite.com/link.php";
if ( $contentFile ) {
$fileBuffer = file($contentFi le);
foreach ($fileBuffer as $tmp) {
$html .= $tmp;
}
}
------------------------
link.php contains a script which echos $PHP_SELF
when i echo it, it displays "link.php" but i want the output as
"detail.php " basically i need to echo where the link is called from..
any solution ??
thanks
murali
Comment