-
April 15th, 2010, 12:00 AM #1Member
- Join Date
- Mar 2005
- Posts
- 93
PHP_SELF and dirname function behavior. Hint Please!
Hello all,
I created a folder with a redirect function, so the users do not need to learn a long login link.
The folder name is /login and it is located on the domain's root folder.
When users go through the main domain it works like a charm:
If they enter:
www.domain.com/login
They are redirected to:
www.domain.com/index.php?option=com_user&view=login
which is what I want.
-------BUT
When they go through a subdomain:
subdomain.domain.com/login
They are redirected to:
http://www.index.php/?option=com_user&view=login
I do not understand this difference!
Here is the syntax of the function:
<?php
header('Location: ' . dirname(dirname($_SERVER['PHP_SELF'])) . '/index.php?option=com_user&view=login');
Any ideas?
Thank you all!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Get the hint already!
By Beemer in forum IMO CommunityReplies: 0Last Post: September 1st, 2006, 12:14 AM -
Toshiba laptop function keys won't function
By sparkle in forum Technical SupportReplies: 2Last Post: September 25th, 2004, 03:20 PM -
php_self
By baby asp-er in forum Webmastering and ProgrammingReplies: 7Last Post: February 1st, 2003, 09:26 PM -
sun on linux (hint, they're VERY scared)
By storm2k in forum General Tech DiscussionReplies: 1Last Post: February 27th, 2002, 12:07 AM



LinkBack URL
About LinkBacks



Reply With Quote

Watch The Hangover 3 Online: Hangover 3 Was a massive hit, making symmetric solon currency than the ordinal celluloid. It got mixed reviews though because, critics argued, it had essentially the...
Watch The Hangover 3 Online full...