View Single Post
  #1 (permalink)  
Old 08-23-03, 10:01 AM
NickyWhicko NickyWhicko is offline
New Member
 
Join Date: Aug 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
PHP - Dir listing and write to file

Hi there,

I'm having a bit of trouble with this !

I'm a flash actionscripter but need a bit of php to do this -

I need to know how to read all the files in a certain directory and then write the names to a textfile.

The main probs are, I need it to write to the file without the file extender, and I need the &'s in it so I can read it from flash?

textfile needs to be like this -

&product00=magrore&product01=sydney&product02=engl and&product03=paris&produc
t04=newyork&product05=cuba&fileloaded=1&

where magrore, sydney, england etc are the filenames less the *.jpg
extension

fileloaded is my swonking tag and the &'s are just how flash reads vars from
a textfile.

Any help would be immensly apprecitated -

CHeers
Reply With Quote