Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 12-20-2005, 11:40 PM Help with opendir
Average Talker

Posts: 21
Name: Connor
Location: Knob Noster, Mo
Trades: 0
Ok so I am using this with a dropdown... It works if there is just one file name (i.e. dev) it will read that dir but if I do ./theme it doesn't work please help.
PHP Code:
if ($handle opendir('../theme')) {
   while (
false !== ($file readdir($handle))) { 
    if (
$file != "." && $file != "..") { 
       
$opt .= "<option value='".$file."'>".$file."</option>";
    }    
   }
   
closedir($handle);

Connor is offline
Reply With Quote
View Public Profile Visit Connor's homepage!
 
 
Register now for full access!
Old 12-21-2005, 09:31 AM Q
Novice Talker

Posts: 12
Trades: 0
Is this over a secure or unsecure connection? secondly, ensure that it is a valid directory using is_dir and also ensure that the files are readable.
synapsex is offline
Reply With Quote
View Public Profile
 
Old 12-21-2005, 05:34 PM
Average Talker

Posts: 21
Name: Connor
Location: Knob Noster, Mo
Trades: 0
It will be with a CMS I am hoping to get it on both types of connections.
Connor is offline
Reply With Quote
View Public Profile Visit Connor's homepage!
 
Old 12-21-2005, 06:11 PM
Average Talker

Posts: 21
Name: Connor
Location: Knob Noster, Mo
Trades: 0
Well I got that problem fixed.
Connor is offline
Reply With Quote
View Public Profile Visit Connor's homepage!
 
Reply     « Reply to Help with opendir
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13003 seconds with 12 queries