Hi everybody,

I really should know this but I can't get it to work... :-O

I'm just trying to call a page based on the username of the person who is logged in!

<?php
include ({$session->username}/file.php\);
?>

Preparing to feeling stupid...

Peace
Adam

Recommended Answers

All 2 Replies

I'm not quite sure that this would be a maintainable model (one file for every user), but:

include("{$session->username}/file.php");

Thank you so much! I've probably tried everything but that... :-D

Cheers!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.