Jump to content

kre8tiveart

New Members
  • Posts

    3
  • Joined

  • Last visited

kre8tiveart's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. ok thats sounds great. I'm thinking that this would make it easier for me to display the files for the users, with option of downloading or deleting there files. My question now is how can I go about coding all of what you said? Could you help me with the coding instruction. After registering I just made a directory with the users username before. but I don't know how to code the process of upload to table in database(MYSQL) prefixed with username/id. And then read from there.
  2. Ok thanks. I found a way to upload the files to a directory and also how to read into the directory and display the files from the directory using this function: <?php if ($handle = opendir('.../uploads')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "$file\n"; } } closedir($handle); } ?> Also, I can download a particular file from directory using this function <?php $file = '...upload/Thumb.png'; if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); ob_clean(); flush(); readfile($file); exit; } ?> I would like to know how I can display the items from the directory, in a list. And each item has a link that, if pressed can be downloaded. THANKS ALOT FOR YOUR HELP!
  3. I have been watching the PHP tutorials and they are great. I am currently a student and we have to create an "online inventory system", using our computer as a server and host instead of an actual host online. We have to let the users REGISTER an account, UPLOAD FILES and RETRIEVE THE FILES. I have been watching the PHP videos. I have set up the LOGIN SYSTEM using the video you did for login and now i need to know which videos to watch to learn how to create a directory for the newly registered user and display items from their directory after they upload items, on a page after they login. I appreciate your time and help. thanks!
×
×
  • Create New...