By ffletch on
I have a php file that I wrote that I want the ability to load both inside and outside of Drupal. I have created a page node that only has this for its content:
require 'path_to_my_php_file';
I would like to do some things in my php file based on whether the file was loaded from drupal or as a standalone file. I can see in the compose tips doc how to do something based on whether the user is registered or not. But most of the time users accessing my site aren't registered or logged in. Is there some variable that is always set when drupal loads a page that I can check for? Can anyone point me in the right direction?
Comments
I would like to do some
--
Drupal development and customization: 2bits.com
Personal: Baheyeldin.com
--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba
Worked Perfectly! Thanks!
Worked Perfectly! Thanks!