Every person that joins my site gets their own folder with an index.php that contains only this:
<?php
include 'http://www.example.com/users/member.php';
?>
This works fine and displays member.php. There is a problem though. In member.php I have this code:
<? print substr(dirname($_SERVER['PHP_SELF']), 8); ?>
This code shows the name of the directory (which is the user's name). The problem is that it shows the name of the folder where member.php is and not the name of the user's directory. Is there any way to change this without adding more code to member.php? Thank you so much for the help. 10 points for the best working answer.
<?php
include 'http://www.example.com/users/member.php';
?>
This works fine and displays member.php. There is a problem though. In member.php I have this code:
<? print substr(dirname($_SERVER['PHP_SELF']), 8); ?>
This code shows the name of the directory (which is the user's name). The problem is that it shows the name of the folder where member.php is and not the name of the user's directory. Is there any way to change this without adding more code to member.php? Thank you so much for the help. 10 points for the best working answer.