4
Contributors
9
Replies
11
Views
4 Years
Discussion Span
Last Post by Webville312
1

ONly just scanned this:

if ( $handle = opendir("gallery/.") ) {

What about:

if ( $handle = opendir("gallery/") ) {

Is 'gallery' correct with regard to a relative reference?

It should be '../gallery/' or something similar?

0

it says:
Warning: imagecreatefrompng(12731_474471135931166_1099382360_n.png): failed to open stream: No such file or directory

0

"gallery" folder placed in root folder. . i think that only

if ( $handle = opendir("gallery/") ) {

is used?

Edited by abeer.rao

0

Make sure, as diafol has pointed out, that you have the correct path which is what the error is suggesting.

Use something like this to make sure that you are not only in the working directory but also your servers root directory.

$_SERVER['DOCUMENT_ROOT'].'/gallery/'

I find that it won't always work to direct to the root folder using, /gallery/ and that when working in PHP it prefers to have the complete path.

0

You have to make sure that the gallery folder is in the same folder with the application.

Or at least ensure that you enter the correct path to these directories.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.