Delete File - Rename File - Show File?

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
Mr. Tech
Forum Contributor
Posts: 205
Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia

Delete File - Rename File - Show File?

Post by Mr. Tech »

Hi guys!

I have 3 questions:

1. How can I delete a file from my Website? I searched but got 1600 posts and just couldn't find anything :(


2. I have an upload script wich uploads files to my Website. How can I make it so when someone uploads a file, it automatically renames the file to something else? e.g file name was image.gif it would rename it to something like 27438736213.gif and the same with any other .file extension?


3. When people upload their files I don't want them to see the directory the uploaded it to. For example if all the files where uploaded to the folder uploads, when they want to view the image it takes them to open.php?file=images.gif and that will open the file uploads/image.gif.

Any help with either 3 would be GREAT!

Thank you!

Ben
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

This list should help you. :)
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

I'm working on a complete facility project that's heading in your direction. :) I'll be sure to announce it on here (or if you would like, I'll email you a free copy of it when I'm finished).
Image Image
Mr. Tech
Forum Contributor
Posts: 205
Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia

Post by Mr. Tech »

THANKS!
Post Reply