astralaaron Posted May 23, 2011 Share Posted May 23, 2011 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 More sharing options...
justsomeguy Posted May 23, 2011 Share Posted May 23, 2011 It doesn't matter where the function is defined, only the location of the script where you're trying to access the files from. Link to comment Share on other sites More sharing options...
astralaaron Posted May 24, 2011 Author Share Posted May 24, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.