Date: 11/03/00
- Next message: Siim Einfeldt aka Itpunk: "Re: [PHP] tough one"
- Previous message: AJDIN BRANDIC: "Re: [PHP] Checking for records + deleting via URL"
- Next in thread: Rasmus Lerdorf: "Re: [PHP] Requires and if statements problems, PLEASE HELP ME :)"
- Reply: Rasmus Lerdorf: "Re: [PHP] Requires and if statements problems, PLEASE HELP ME :)"
- Reply: Matthias Endler: "RE: [PHP] Requires and if statements problems, PLEASE HELP ME :)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi guys
I have just moved my site to a new hosting company who are running PHP4
where my old host was running PHP3 and i am having a strange problem, Here
it is:
I am calling a php file which will detects & will show a no login message if
it doens't detect a cookie to prove they are logged in like so, else it will
move on to the else: statement.
----login_detect.php3----
<?
if( !$cookie_variable ):
require("top.php3");
echo"NO LOGIN";
require("bottom.php3");
else:
?>
Then i call this file here in the main page like so, the remainder of this
page becomes the else: statement.
----main_page.php3----
<?
require("login_detect.php3");
require("top.php3");
echo"MAIN PAGE TEXT";
require("bottom.php3");
endif;
?>
However when i do this I get a parse error in the login_detect.php3 on the
last line, this works in PHP3 can any one suggest whats wrong ? or had
similar problems ? as I am running out of ideas.
Ade
-------------------------------------
ade <email protected>
-------------------------------------
- Next message: Siim Einfeldt aka Itpunk: "Re: [PHP] tough one"
- Previous message: AJDIN BRANDIC: "Re: [PHP] Checking for records + deleting via URL"
- Next in thread: Rasmus Lerdorf: "Re: [PHP] Requires and if statements problems, PLEASE HELP ME :)"
- Reply: Rasmus Lerdorf: "Re: [PHP] Requires and if statements problems, PLEASE HELP ME :)"
- Reply: Matthias Endler: "RE: [PHP] Requires and if statements problems, PLEASE HELP ME :)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

