Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.