Please help me with PHP? 10 points for working answer?

Ethan

New member
I have one page called index.php that contains:

<?php
$member = substr(dirname($_SERVER['PHP_SELF']), 8); // This is the name of the directory
include 'http://www.EXAMPLE.com/users/member.php';
?>

I have another page called member.php (the one that is included) that contains:

<?php echo "$member"; ?>

There is only one problem. The above code doesn't work. It won't display $member. How can I fix this? 10 points for the best working answer. Thanks for the help!
Setting a cookie didn't work. Maybe because member.php is included in index.php and I'm not going from index.php to member.php.
 
Back
Top