Jump to content

unlink / file not found


astralaaron

Recommended Posts

I can't seem to figure out how to make the path correct to the files.ROOT:-DIR: images----DIR: portraits--------FILE: pic1.jpg----DIR: groupPics-DIR: phpclasses----FILE: pictureClass.phpThe delete function is in the pictureClass.php file... I have tried the following but the file is not found when it tries to delete:A)$picture = '../images/portraits/pic1.jpg';unlink($picture);B.)$picture = 'http://www.website.com/images/portraits/pic1.jpg';unlink($picture);

Link to comment
Share on other sites

It doesn't matter where the function is defined, only the location of the script where you're trying to access the files from.
I thought it was within the same folder but actually that file is being called from the root directory also! thanks yet again JSG
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...