nancyjames
Programmer
Hi I hope someone can help, its a silly little thing really but I cant seem to find anything about it online.
Its about file paths.
I have a script that will open the directory that it is in, read the contents and display thumbnails of all the .jpg files in the directory.
That all works fine but now I want to do something more advanced with it, I was to have before and after shots displayed when you click on one of the images so to do that I've got 2 directories called before and after with files of the same name inside, and the php file in the directory that the directories are in, but I cant seem to get it to open these directories... or if its opening them it isnt displaying the thumbnails anymore.
I'm using opendir('after/') and I dont get any errors but the thumbnails just dont display - what am I doing wrong?
Its about file paths.
I have a script that will open the directory that it is in, read the contents and display thumbnails of all the .jpg files in the directory.
That all works fine but now I want to do something more advanced with it, I was to have before and after shots displayed when you click on one of the images so to do that I've got 2 directories called before and after with files of the same name inside, and the php file in the directory that the directories are in, but I cant seem to get it to open these directories... or if its opening them it isnt displaying the thumbnails anymore.
I'm using opendir('after/') and I dont get any errors but the thumbnails just dont display - what am I doing wrong?