suppose I have a php program....http://www.aaaaa.com/aaa.php......the output is a html file.. now..I want to split it to 2 php program http://www.aaaaa.com/aaahtml.php http://www.aaaaa.com/aaapdf.php the 1st one is same as http://www.aaaaa.com/aaa.php... the 2nd one just change the output format to pdf...(the content is same as the first one) Is there a easy way to do it?