Jump to content


Photo

Output rediredtion


  • Please log in to reply
2 replies to this topic

#1 eatc7402

eatc7402
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 26 April 2006 - 12:39 AM

I am thinking about writing an app that parses a 'script' written in php that is mostly html code but with
php database substitions in certain places. I would like toi instead sending the output of the program to a browser, to send the output to a FILE, which would end up with an .htm extension.

But, I have been searching for a way to REDIRECT the normal program output to a file instead of the 'normal' browser.

How can this be done??

DavidF

#2 toplay

toplay
  • Staff Alumni
  • Advanced Member
  • 973 posts

Posted 26 April 2006 - 02:38 AM


Start here:

[a href=\"http://us2.php.net/manual/en/ref.outcontrol.php\" target=\"_blank\"]http://us2.php.net/manual/en/ref.outcontrol.php[/a]



#3 eatc7402

eatc7402
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 26 April 2006 - 03:49 PM

Super! Just the help I needed. Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users