What is a valid directory url?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
groc426
Forum Newbie
Posts: 16
Joined: Tue Oct 28, 2008 4:44 pm

What is a valid directory url?

Post 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!
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: What is a valid directory url?

Post by papa »

Show us the code for the function.
groc426
Forum Newbie
Posts: 16
Joined: Tue Oct 28, 2008 4:44 pm

Re: What is a valid directory url?

Post by groc426 »

Figured it out! i needed two dots for the reference '../gallery1/'
Post Reply