FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Use of Includes
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Use of Includes [message #170907] Tue, 07 December 2010 14:55 Go to previous message
me is currently offline  me
Messages: 192
Registered: September 2010
Karma:
Senior Member
New to PHP.

Have searched for answer without finding anything that seems to address
it, save perhaps for situations where the script writes HTML markup
before the header is called.

When would it be preferable/required to chain scripts one to the next
rather than use includes? (The question could be reversed, also.)

Chaining:

[php] // script1.php
code;
header("location: script2.php");
[endphp]

[php] // script2.php
code;
header("location: script3.php");
[endphp]

[php] // script3.php
code;
[endphp]

Include:

[php]
// scriptname: script1.php
code;
include 'script2.php';
include 'script3.php';
[endphp]


Bill B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Best PHP Groupware Tools Script Sharing
Next Topic: newbie question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 23:06:08 GMT 2024

Total time taken to generate the page: 0.04065 seconds