[PHP] Problem with require(), determining context.

2001-08-06 Thread Ryan Fischer
Hello! :) I have a script that loads another script with require() and based on the context, I'd like different things to happen. So, index.php is calling the required file require.php. And when require.php is run, if there's no HTTP_REFERER and the file is index.php, everything is OK. But if

Re: [PHP] Problem with require(), determining context.

2001-08-06 Thread Michael Mehlmann
Hello! :) I have a script that loads another script with require() and based on the context, I'd like different things to happen. So, index.php is calling the required file require.php. And when require.php is run, if there's no HTTP_REFERER and the file is index.php, everything is OK.