Page 1 of 1

Writing new files...

Posted: Fri Sep 05, 2003 11:53 am
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/

really need help on this guys

Posted: Fri Sep 05, 2003 6:00 pm
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/

Posted: Fri Sep 05, 2003 8:00 pm
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.