quote:
Originally posted by hmaster
Or do you mean when they access a.php from http://my_server.com/a.php its an error but when it is accessed from http://my_server.com/b.php it runs the correct a.php page, if so you might wanna try $_SERVER['HTTP_REFERER']
i think it's something like that... a.php contains code needed by b.php, but it should produce an error when accessed alone.
how does that $_SERVER['HTTP_REFERER'] work? is it the url that the user is requesting to apache?