Jump to content

[SOLVED] Problem with session variables.


whelpton

Recommended Posts

Im trying to use the following function in conjunction with my session variables. Ive never been good at explaining what im trying to do so Ill post the code to explain.

 

<?php
$source ='/home/alport/public_html/shared/profilecopy';
$target = "/home/alport/public_html/".$_SESSION['s_username']."/"
full_copy($source, $target)
?>

 

Basically, I am trying to get $target to point to /home/alport/public_html/Logged In user ($_session['s_username']) then end with a trailing slash.

 

Every code I try just gives me a T_Error. Can someone point out what Im doing wrong please?

Link to comment
https://forums.phpfreaks.com/topic/143311-solved-problem-with-session-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.