Jump to content

Using Sesions in PHP ????


ashii

Recommended Posts

  • it will be easy if make ma problem into points...
     
  1. am havin a php file ..
     
  2. i create a session with the value eg: Ashii
     
  3. i am having a file upload function in that php file.....
     
  4. now i select the file and press the upload button....
     
  5. then the file should be uploaded into a folder...

 

upto this am fyn.. itz perfectly workin....

 

ma problem is...........

 

i should upload the file.. to the folder which has the similar name of sessions value...

eg: the file shud be uploded to the Ashii Folder...

it shud recognize that the file should be uploded to the relevant folder using the sessions...

 

$path='/upload/';

move_uploaded_file($_FILES["file"]["tmp_name"],
$path" . $_FILES["file"]["name"]);

the above code is to upload a file in a particular folder called ''upload'...

it wotkz perfectly....

but i need t in the otherway.... plz plz plz plz help me..........

Link to comment
https://forums.phpfreaks.com/topic/152588-using-sesions-in-php/
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.