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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dourvas
Forum Commoner
Posts: 26
Joined: Fri Dec 05, 2008 7:21 am

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

Post 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
watson516
Forum Contributor
Posts: 198
Joined: Mon Mar 20, 2006 9:19 pm
Location: Hamilton, Ontario

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

Post 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.
Post Reply