Log in

View Full Version : Simple php question


Kohhal
10-15-2002, 11:38 AM
The following php code is part of online.php :

case 'index.php':
$userinfo[activity] = 'index';
break;

This code is used to pickup the forum index in the /forum directory but I also have an index.php in my root ie. in public_html. How do I get it to differentiate between the two files as right now when someone is on my homepage it still shows them as being on the forum index?

I hope I've explained this ok, basically, what sort of path do I need to enter, absolute/relative or something like ../ ???

TIA,

G :rambo:

Kohhal
11-21-2002, 10:18 AM
*bump* noone knows? :(

Dark_Wizard
11-21-2002, 12:07 PM
Change:

'index.php':

to:

'../index.php':

Kohhal
11-21-2002, 12:26 PM
That's what I have right now and no joy???? Still shows me as being on the main index?

NTLDR
11-21-2002, 01:42 PM
Originally posted by Dark_Wizard
Change:

'index.php':

to:

'../index.php':

That won't work as online.php only takes into account of the filename (abc.php) and not any path associated with it.

Kohhal
11-21-2002, 02:56 PM
Originally posted by NTLDR


That won't work as online.php only takes into account of the filename (abc.php) and not any path associated with it.
So it's not possible then?

Dark_Wizard
11-21-2002, 03:03 PM
Originally posted by NTLDR


That won't work as online.php only takes into account of the filename (abc.php) and not any path associated with it.

Oops...your right...

TheMasterG >> try this hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=32849) from Firefly..

NTLDR
11-21-2002, 03:06 PM
No as far as I am aware, without probably alot of hacking.