cowboysdude Posted April 27, 2009 Share Posted April 27, 2009 This is what I have.. BUT I would like to set the target_path equal to path so I can allow users to change the path in the admin section of the program.. it doesn't seem to be working unless I put the direct path in the code below then it works great! $target_path = 'c:\\wamp\\www\\clips\\uploads\\'; $id = $_GET['sessionId']; $id = trim($id); session_name($id); session_start(); $inputName = $_GET['userfile']; $fileName = $_FILES[$inputName]['name']; $tempLoc = $_FILES[$inputName]['tmp_name']; echo $_FILES[$inputName]['error']; $target_path = $target_path . basename($fileName); if(move_uploaded_file($tempLoc,$target_path)) { $_SESSION['value'] = -1; } The target_path has to remain but it's already set equal to something so am I right to say I can't also set it equal to path? Thanks!! Link to comment https://forums.phpfreaks.com/topic/155918-well-im-kinda-stucklol/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.