Sep 26th, 2009, 10:52 AM
Heya,
Yes, PHP_SELF usually includes the file name as well. The $_SERVER variable is invaluable for extracting certain information, but it's notoriously inconsistent across servers. This is one of PHP's really AWFUL features: inconsistent implementation of global variables like this. Unlike other keys like REQUEST_URI, PHP_SELF is defined on virtually all servers so I decided to rely on it in the Form Tools code.
Glad you found a solution, at least.
- Ben
Yes, PHP_SELF usually includes the file name as well. The $_SERVER variable is invaluable for extracting certain information, but it's notoriously inconsistent across servers. This is one of PHP's really AWFUL features: inconsistent implementation of global variables like this. Unlike other keys like REQUEST_URI, PHP_SELF is defined on virtually all servers so I decided to rely on it in the Form Tools code.
Glad you found a solution, at least.
- Ben