Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file paths Opendir()

Status
Not open for further replies.

nancyjames

Programmer
Aug 14, 2003
5
GB
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?
 
It could be a path problem.
It could ba a permissions problem.

Are you getting any errors? What does your error-trapping code look like?


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
I was being an idiot ;)
I got the path right but forgot to include it in the html img src bit heh. It was finding the directory, opening it and reading the contents but couldnt didplay the pictures becuase I forgot to tell it it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top