|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Problem with PHP Gallery tutorial
Hi... I'm new here, and quite new to php, and found this tutorial. It's really well written, but I have encountered a problem. My apologies if the the answer is obvious... but I can't seem to fix it.
Here are the two errors I get when trying to load the images.php file off my site: Code:
Warning: OpenDir: No such file or directory (errno 2) in /usr/www/users/nb2436/pockynation/images.php on line 70 Warning: readdir(): supplied argument is not a valid Directory resource in /usr/www/users/nb2436/pockynation/images.php on line 71 Right, so I check those two lines to look for typing errors and whatnot, but they're identicial to the lines from the tutorial... here is the section of code where lines 70 and 71 are. php Code:
The two specific lines are: Line 70: Line 71: Can anyone see what the error is? Is it a problem with my site and not the code? Again, I'm sorry I am so stupid at php, as it is new to me... That's why I really liked this tutorial.. it explained stuff pretty well. Just baffled by this error Any help would be apprecriated... thanks. |
|
#2
|
|||
|
|||
|
RE: Problem with PHP Gallery tutorial
I don't think the error is in the code.. The error is in the arguments you send in. Check whether you have defined the path correctly as it in the tutorial according to your directory.
In config.php define('PATH', '/inetpub/wwwroot/scripts/gallery/images/'); Here the path sould be the actual path, not the relative path. |
|
#3
|
|||
|
|||
|
RE: Problem with PHP Gallery tutorial
I had originally changed that to what I thought was correct (IE: /pockynation/images/nixxer, the directory with the images I wanted shown), however, changing it to include the complete structure found on the ftp (IE: usr/www/nb2436/pockynation/images/nixxer/) seems to have fixed the parse errors.. thank you for your help. I feel really stupid now
*sigh* many apologies for my newb-ness... |
|
#4
|
|||
|
|||
|
RE: Problem with PHP Gallery tutorial
It is clearly stated in the tutorial that the filesystem is considers as the database. So only keep images in that folder.. Simple as that..
|
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > Problem with PHP Gallery tutorial |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|