|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
IF and page redirection
Hi,
I’m not sure if i’m just getting myself confused here! I want to build a simple redirection along the lines of : <?php require_once "siteDefaultsPage.inc"; if (!INTERACTION_TEST){ // redirect to new URL } ?> in order to control access to a page. I’m getting caught up with the headders being sent from the .inc file - however, I need the .inc file to set the variable INTERACTION_TEST. Can you help? |
|
#2
|
||||
|
||||
|
RE: IF and page redirection
Cool can try to help;
Post the error(s) and the code that resides to that error. Cheers West |
|
#3
|
|||
|
|||
|
RE: IF and page redirection
|
|
#4
|
|||
|
|||
|
RE: IF and page redirection
<?php
ob_start(); require_once "siteDefaultsPage.inc"; ...... |
|
#5
|
||||
|
||||
|
RE: IF and page redirection
I like the way you think Victor;
Cheers West |
|
#6
|
|||
|
|||
|
RE: IF and page redirection
that article might be helpful as well in understand header already sent errors.
http://www.decodephp.com/2007/02/25/php-the-headers-already-sent-error-a-brief-look-at-headers/ |
|
#7
|
||||
|
||||
|
RE: RE: IF and page redirection
Code:
<?php ob_start(); require_once "siteDefaultsPage.inc"; ...... I just have to ask where did you get that info from decodephp? I am lost maybe I need to play a game or something. Cheers West |
|
#8
|
|||
|
|||
|
RE: IF and page redirection
what info? the ob_start(); thing?
|
|
#9
|
||||
|
||||
|
RE: IF and page redirection
Yes but forget it I wasn't reading properly, sorry!
Cheers West |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Applications > IF and page redirection |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|