Hi Ya Shabab..
i make print page for many files
.
What this do, $SCRIPT_URL
i have this Script, i need the path, so what $SCRIPT_URL do?
this is the code........
$mypath = substr($mypath, strlen($mypath));
$mypage = $mypage == "" ? $p : $mypage;
(i understand this line)
windowprops = "top="+height+",left="+width+",resizable=no,width=600,height=500";
window.open("/print.php?pagetoprint=<?=$mypage?>&from=<?=$mypath?>", "Print", windowprops);
$mypath = str_replace("index.php","",$SCRIPT_URL);-------------------------------------------------------------------------
about the ( print.php ) page:
str_replace("..","",$pagetoprint);
str_replace("..","",$from);
$file_to_print = $from."/inc/".$pagetoprint.".inc";
if (file_exists($file_to_print))
include $file_to_print;
else
echo "Error openning files.";
?>
<?
------------------------------------------
i need to have the right path for, $myPage which =
pagetoprint , and $myPath which = $form .
-------------------------------
thanx alot
