Page 1 of 1

upload a file, delete an uploaded file, write text...

Posted: Fri Dec 05, 2008 7:26 am
by dourvas
I am new in php coding and in builting sites but i learn quicly..

i want to built a site that a user after a succesful login (ok i ve managed it) can upload a file or delete a file that he uploaded sometime ago and write a text so when other users visit this page can download the file and read the text.
where do i begin? can u help me. i am totaly lost

Re: upload a file, delete an uploaded file, write text...

Posted: Fri Dec 05, 2008 11:51 am
by watson516
Upload a file: http://ca3.php.net/features.file-upload

Delete a file: http://ca3.php.net/manual/en/function.unlink.php

Write file: http://ca3.php.net/manual/en/function.fopen.php

For the most part, you probably won't be able to upload files larger than 2MB without modifying the ini file.