icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Using Opendir() With My Url php syntax question

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Closed Thread
 
LinkBack Thread Tools Search this Thread Rate Thread
Old August 7th, 2003, 8:55 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2003
5 posts
Gave thanks: 0
Thanked 0 times
im trying to create a thumbnail gallery and im starting out with the basics, I want use the following code to set the dirrectory to my images folder. If my images were located at www.mysite.com/images how would the following code go

$handle = opendir(???????) or die("cannot open directory");
niplore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 7th, 2003, 4:39 PM   #2 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2003
Lives in St. Louis, MO USA
26 posts
Gave thanks: 0
Thanked 0 times
$config['albumdir'] = "/Photoalbum/albums/";
$config['fullpath'] = "/home/username/www/$config[albumdir]";

$dir = opendir("$config[fullpath]$filepath");

Something like that..
tekdoctor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 7th, 2003, 8:31 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2003
5 posts
Gave thanks: 0
Thanked 0 times
That worked, thanx a bunch

:worship: :worship:
niplore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

« Blog | Login Box »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On