Giving a writien file an extension

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
Mobius Man
Forum Newbie
Posts: 8
Joined: Mon Dec 15, 2003 8:16 pm

Giving a writien file an extension

Post by Mobius Man »

What is the easiest and most secure way to give a file (writing using fwrite) a extension name. I need this so my menu system can read the files. I haven't been able to figure out how to do this.
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

Post by Sevengraff »

[php_man]rename[/php_man]?
and if you can't read the file, then you probally need to play with chmod.
Post Reply