Hello everyone...
Im a'bit of a php n00b, so please fogive me if what im about to do is one of those blatant things that everyone should know.
Ok, i've got the following scripts:
1) image uploader that uploads to a dir via a form.
2) a random char maker to change the name of the file to make it unique
3) a dir viewer that views all imgs in a dir.
I've modifide them all into one big sexy script, but the img viewer also has the option of reading text files for discriptions. It works like this.
Image = hello.jpg
description = hello.jpg.desc
This all works fine. However, I would like to add to my uploader a file-discription thinggy that would write a new text file to the dir. This is where the trouble is, I just can't work it out. If you could show me the function like
$extention = ".desc"
$filename = "<random file name used for the image renamer that works fine right now so I don't need help for this bit>"
$text = "$name_of_input_box"
$dir2goto = "pictures/$catagory/"
makefile("$text","$filename$extention")
see what I mean?
If you know, please email s9psilver@hotmail.com with a sullution.
Cheers one-and-all 😃