I'm having a very strange problem with constants. I have the following code (Not exact of course but...):
<?php
define("SECURE","Done");
require("page.php");
echo SECURE;
?>
OK that works perfectly fine it says 'Done' on the screen. But, if I do:
<?
echo SECURE;
?>
on the page.php page, it says SECURE meaning PHP turned it into a string. So if I use the constant("SECURE") it says
Warning: constant(): Couldn't find constant SECURE
Does anyone know what could possibly be going wrong? Any help is greatly appreciated 😉