Stoping a PHP File [SOLVED]
Moderator: General Moderators
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Stoping a PHP File [SOLVED]
How do you stop a file that is included with out stoping the code that includes the file, or will that now happen when you use exit;?
Last edited by tecktalkcm0391 on Sun Jun 18, 2006 3:41 pm, edited 1 time in total.
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Everything even on the included file and the file that includes...
This is an example of basically what I have:
Page.php<?php
if(1=1){
print("Hello");
exit;
} else {
print("bye");
?>
Will the exit terminate the print on page.php?
This is an example of basically what I have:
Page.php
Code: Select all
<?php
include("include.php");
print("Finished");
?>
and include.phpif(1=1){
print("Hello");
exit;
} else {
print("bye");
?>
Will the exit terminate the print on page.php?
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida