Writing new files...

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
wesnoel
Forum Commoner
Posts: 58
Joined: Fri Sep 05, 2003 11:53 am

Writing new files...

Post by wesnoel »

ok basicly what I want to do is write a csv file from a form which I have done.

I need the name of the file to be the currentdate.csv. It that file name already exists, I want to write another file with the same name but currentdate_01.csv and so on every time the form is filled out.

Can someone point me in the right direction?

Thanks

Wes/
wesnoel
Forum Commoner
Posts: 58
Joined: Fri Sep 05, 2003 11:53 am

really need help on this guys

Post by wesnoel »

I really do not know where to find this info. I have been searching the web and can not find anything.

I'm sure there is someone who can point me in the right direction.

Thanks again...

Wes/
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Take a look at readdir(); basename() might also be useful.

Try and put something together with that and post again if you're stuck.
Post Reply