Re: How to load another php page?
| From: | Marek Kilimajer | Date: | Sat, 02 Oct 2004 19:30:59 +0000 |
| Subject: | Re: How to load another php page? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198504@lists.php.net to get a copy of this message | ||
Arnold wrote:
This (header() function) works only if this is the first output sent to browser so later in the script this doesnt work anymore, i've tried that. After that you get error messages like: "Warning: Cannot modify header information - headers already sent by (output started at D:\Inetpub\wwwroot\xxxxxxx.php:5) in D:\Inetpub\wwwroot\xxxxxx.php on line 31" So what i want is to go to another php file everywhere in the php script with something like: if(thisistrue) { load yyyyy.php; exit; }Once again, why cannot you use inlude()? If include() does not work for you, you have to rethink the logic of your script.