Click to See Complete Forum and Search --> : Touch() - help me


r_sole
12-29-2007, 06:19 AM
The PHP function touch() doesn't work for me. It says it's unable to create file because no such file or directory. Isn't that the point of the function. You 'touch' a file that doesn't exist and it will make it for you :eek:

Anyone... help?? :)

chazzy
12-29-2007, 07:07 AM
i believe the base directories need to exist first.

r_sole
12-29-2007, 08:41 AM
I figured it out. You need to use relative locations not absolute ('/images/image.jpg' and not 'http://www.site.com/images/image.jpg'). I should've known that.

Oh well, I figured it out so that's the main thing. :cool: