PDA

View Full Version : another 'escape' problem


Billy T
07-13-2003, 12:06 PM
Hey all

I'm making something where the user types a name (eg "gallery 1 test") and my script stores that name and also creates an xml file of the same name.

All works fine if there are no spaces in the name or anything but if there is I get errors. So, I escape the name before I create the new file and end up with files called "gallery%201%20test.xml" which flash doesn't seem to be able to load back in

Anyone know a solution?

Thanks

Billy T
07-13-2003, 12:41 PM
hmmm I removed the escape() and flash handled the loading of file names with spaces in them fine (I guess I just assumed it would be a problem)

Anyway, now if I try to make "billy's gallery" I get a file name of billy\'s gallery.xml which does not correspond to what flash thinks it called...

hmm I guess I'll have to send the final file name back into flash from php....

any ideas?

Billy T
07-13-2003, 01:35 PM
nevermind

got it sorted

cheers