Page 1 of 1

What is a valid directory url?

Posted: Thu Dec 04, 2008 2:13 am
by groc426
Hello everyone-

So I'm creating a simple php image gallery. I'm suppose to give the directory file where my images are stored. Easy enough I thought...but apparently I'm to php'tarded to figure it out. I'm new so your patience and help is appreciated! :D

So simple enough, a function wants the parameter url directory. So I have have a folder on the root called gallery1. I try to use this as the url directory parameter but I get an error (coded in the function) telling me that it does not exist or is not a valid url directory.

Here is what my code looks like:

Code: Select all

<?php
    include("./bolGallery.php");
    bolGallery("./gallery1/", 5, 80, 50);
    ?>

That is it. If you need more info, just let me know. Thanks!

Re: What is a valid directory url?

Posted: Thu Dec 04, 2008 3:19 am
by papa
Show us the code for the function.

Re: What is a valid directory url?

Posted: Thu Dec 04, 2008 2:40 pm
by groc426
Figured it out! i needed two dots for the reference '../gallery1/'