RE: [PHP] Transfer control from one PHP file to another PHP file

From: Date: Sun, 30 Jul 2000 07:59:59 +0000
Subject: RE: [PHP] Transfer control from one PHP file to another PHP file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9034@lists.php.net to get a copy of this message
-----Original Message----- I know what you're looking for, and I'm sure it doesn't exist, as it would be approximated to GOTO, and us geeks tend to frown on GOTO :-) Isn't header("Location: ...") really a goto? include and require can be used to bring in a function, some html, or a whole page, so it really should be flexible enough for your needs... Of course if I knew what your needs were I could be more helpful :-) What I'm looking for in other words is: You know how there's sometimes a link on a page and then you click on it and then it takes you to another page? Well, that's what I'd like to do, programmatically and without the user ever seeing the link. -Gfunk [-= Visit my website! http://www.gfunk007.com/ - ICQ:74477509 =-] ----- Original Message ----- From: <henrydesiato@iname.com> To: "PHP Mailing List" <php-general@lists.php.net> Sent: Sunday, July 30, 2000 5:37 PM Subject: [PHP] Transfer control from one PHP file to another PHP file > Hi, > > I'm a new to PHP. I'd like to know if there's a way to transfer control from > one PHP file to another PHP file within a frame on a Web page. I want to be > able to have independent pages with related functionality "call" each other > "with no return". > > I've poured over the documentation and I've already discovered header(), > require() and include(). header() requires strict control over output to the > browser and there doesn't seem to be a way to make it redirect frames > anyway. The other two functions seem to be meant for importing a function or > a group of functions, not an entire, fully grown page. > > I just can't believe that such an intelligently designed language expects > the code for an entire Web site to be contained in just one file. > > If what I'm asking isn't possible to do, is there at least a way to abort > all the accumulated output to the browser at a given point in the script? > > I imagine that many of you have heard similar questions from novices in the > past. I apologize if that's the case. > > Any help will be greatly appreciated. >

« previous php.general (#9034) next »