Re: [PHP] Re: What makes _SERVER stop working (RESOLVED)

2009-08-04 Thread Miller, Terion
On 8/3/09 7:44 PM, "Shawn McKenzie" wrote: Miller, Terion wrote: > All of a sudden this stopped working and keeps defaulting to A again > > if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { > > $default = "A"; > > } > > > else { > > $default = ""; > > } > It stopped working or never

[PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Shawn McKenzie
Miller, Terion wrote: > All of a sudden this stopped working and keeps defaulting to A again > > if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { > > $default = "A"; > > } > > > else { > > $default = ""; > >

Re: [PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Miller, Terion
On 8/3/09 2:22 PM, "Ollisso" wrote: On Mon, 03 Aug 2009 21:48:08 +0300, "Miller, Terion" wrote: > > Thanks but it still doesn't work, it defaults to 'A' and I want it to > default to show 'A" only on browse.php all other pages should show NO > default selections. > ' Create file with this

Re: [PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Ollisso
On Mon, 03 Aug 2009 21:48:08 +0300, "Miller, Terion" wrote: Thanks but it still doesn't work, it defaults to 'A' and I want it to default to show 'A" only on browse.php all other pages should show NO default selections. ' Create file with this content: and run it with browser. an

Re: [PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Miller, Terion
On 8/3/09 1:40 PM, "Ollisso" wrote: On Mon, 03 Aug 2009 20:26:35 +0300, "Miller, Terion" wrote: > All of a sudden this stopped working and keeps defaulting to A again > > if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { > > $default = "A"; > } > > else { > $default = ""; > } > it sho

[PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Ben Dunlap
Miller, Terion wrote: > if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { You're using the assignment operator above ('=') instead of the comparison ('=='). If that's not simply a typo that entered the code when you composed your email, then that's the source of your problem. You might cons

[PHP] Re: What makes _SERVER stop working

2009-08-03 Thread Ollisso
On Mon, 03 Aug 2009 20:26:35 +0300, "Miller, Terion" wrote: All of a sudden this stopped working and keeps defaulting to A again if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { $default = "A"; } else { $default = ""; } it should be: if ($_SERVER['SCRIPT_FILENAME'] == "browse.ph