Re: [PHP] Re: Page or URL function? (RESOLVED)

2009-07-30 Thread Miller, Terion
I Figured it out using this: if ($_SERVER['SCRIPT_FILENAME'] = browse.php ) { $default = A; }

Re: [PHP] Re: Page or URL function? (RESOLVED)

2009-07-30 Thread Jim Lucas
Miller, Terion wrote: I Figured it out using this: if ($_SERVER['SCRIPT_FILENAME'] = browse.php ) { $default = A; }

Re: [PHP] Re: Page or URL function? (RESOLVED)

2009-07-30 Thread Ben Dunlap
Jim Lucas wrote: Miller, Terion wrote: I Figured it out using this: if ($_SERVER['SCRIPT_FILENAME'] = browse.php ) { $default = A; } else { $default = ; } $letter = isset($_GET['letter'])? $_GET['letter'] :$default ; unless you are doing more then what you are showing above.

[PHP] Re: Page or URL function?

2009-07-29 Thread Ben Dunlap
I've been searching php.net for a function to do this: if page_url('browse.php') { The $_SERVER global array has this sort of information. The 'PHP_SELF' key might be what you want: http://us.php.net/manual/en/reserved.variables.server.php But where is the code that needs to know? I'm

[PHP] Re: Page or URL function?

2009-07-29 Thread Ben Dunlap
Ben Dunlap wrote [TWICE]: The $_SERVER global array has this sort of information. The 'PHP_SELF' key [8] Ben Very sorry for the double-post. Reply-all in Thunderbird News seems a little overzealous by default. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: