www.webdeveloper.com
Results 1 to 3 of 3

Thread: Touch() - help me

  1. #1
    Join Date
    Mar 2007
    Posts
    63

    Touch() - help me

    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

    Anyone... help??

  2. #2
    Join Date
    Aug 2005
    Location
    The Garden State
    Posts
    5,634
    i believe the base directories need to exist first.
    Acceptable Use | SQL Forum FAQ | celery is tasteless | twitter

    celery is tasteless - currently needing some UI time

  3. #3
    Join Date
    Mar 2007
    Posts
    63
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles