Page 1 of 1

Giving a writien file an extension

Posted: Sun Dec 21, 2003 12:16 am
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.

Posted: Sun Dec 21, 2003 5:32 pm
by Sevengraff
[php_man]rename[/php_man]?
and if you can't read the file, then you probally need to play with chmod.