whelpton Posted April 2, 2008 Share Posted April 2, 2008 Im having a problem with a bit of php code define("_DIR", "need code for here"); Ok, what I need to do in this piece of code is define a directory for my users. The default directory is home/kopoloko/public_html/USER'S NAME Right, so how would I be able to do this using sessions? The session variable that displays the users username is $_SESSION['s_username'] Thanks Link to comment https://forums.phpfreaks.com/topic/99251-please-help/ Share on other sites More sharing options...
discomatt Posted April 2, 2008 Share Posted April 2, 2008 define("_DIR", "home/kopoloko/public_html/" . $_SESSION['s_username']); Link to comment https://forums.phpfreaks.com/topic/99251-please-help/#findComment-507832 Share on other sites More sharing options...
whelpton Posted April 2, 2008 Author Share Posted April 2, 2008 Awsome! Thanks alot mate =) Link to comment https://forums.phpfreaks.com/topic/99251-please-help/#findComment-507845 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.