One page to run another

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
toucan
Forum Newbie
Posts: 3
Joined: Fri Mar 26, 2010 7:17 am

One page to run another

Post by toucan »

I have a php page that runs a few commands. At the end of it i just want it to close itself and open a new php page. What I don't want to do is use include or require as this causes errors on the next page.. something to do with modifying open headers etc. The next page works fine if i use an href to call it, but I want it to happen automatically at the end of the current page.

Probably really obvious solution here. Any ideas please?
User avatar
ambivalent
Forum Contributor
Posts: 173
Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON

Re: One page to run another

Post by ambivalent »

I think you're looking for header()
Post Reply