Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Øystein Håland
I expected it to NOT link to the calling document, but it did (but not any longer). "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 06 February 2003 04:50, Øystein Håland wrote: > > "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:50, Øystein Håland wrote: > "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > On Thursday 06 February 2003 04:21, Øystein Håland wrote: > > > The part $file == basename ($PHP_SELF) is intended to not link to the

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Øystein Håland
"Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 06 February 2003 04:21, Øystein Håland wrote: > > > The part $file == basename ($PHP_SELF) is intended to not link to the > > calling document, but this part doesn't work. So, what shall

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:21, Øystein Håland wrote: > The part $file == basename ($PHP_SELF) is intended to not link to the > calling document, but this part doesn't work. So, what shall I do instead? Could you explain HOW it doesn't work? -- Jason Wong -> Gremlins Associates -> www.greml

[PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Øystein Håland
I use the following function to create links to files in the same catalog (and format the link text): function createLink() { $handle=opendir("."); while ($file = readdir($handle)){ if (($file == ".") || ($file == "..") || (ereg("index", $file) == true) || ($file == basename ($PHP_