how can you create a new file using php?

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
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

how can you create a new file using php?

Post by itsmani1 »

for creating a new directory i am using

mkdir("xyz");

what can i use if i want to create a file like abc.html, or abc.htm or abc.php or abc.css etc.

2ndly can i rename a folder? if i can : which function will do it?
can i delete a file or folder ? if i can : which function will do this?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

All that you seek can be found here: The Manual - Filesystem Functions

Mac
Post Reply