Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Popups from links

 
   Database Forums (Home) -> PHP RSS
Next:  error on processing a structure on Analysis servi..  
Author Message
Bill Ray

External


Since: Mar 30, 2006
Posts: 1



(Msg. 1) Posted: Thu Mar 30, 2006 7:46 pm
Post subject: Popups from links
Archived from groups: comp>lang>php (more info?)

Heya all

I have a script that allows my website to display the contents of a
folder as links. I want those links to open as their MIME type (MP3
files) in a small window, displaying that file's name as an H2 tag.

Can someone help me out? Here's the script that I have:


$imagepath="/media/mp3s/new_tunes";
$realpath=$_SERVER['DOCUMENT_ROOT']."$imagepath";
$n=0;
$list=array();
if ($dir = @opendir($realpath)) {
while (($file = readdir($dir)) !== false) {
if(is_file("$realpath/$file") && ($file!=".htaccess")){
$n++;
$list[]=$file;
}
}
closedir($dir);
natcasesort($list);
echo "<p>$n Files:</p>\n";
echo "<ul>\n";
for ($i=0;$i<count($list);$i++){
$x=$i+1;
echo "<li>";
echo "<a href=\"$imagepath/$list[$i]\">$list[$i]</a>";
echo "</li>\n";
}
echo "</ul>";
}

Any help would be mucho appreciated!

~B

 >> Stay informed about: Popups from links 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Parsing content for links - I have a content management system that has links within the content field in the database and I need to verify if those links are correct. What I need to have happen is have a php script query the database and then parse through the content field to fin...

Search page result links - Hi, I have a search function pulling data from a MySQL db which works nicely - other than the fact that I can't get the URL to link correctly when the linked document is located in the home directory. All other docs are located below the home..

Problem with links with form data - Less than 1% of my users say they can not open links like this: index.php?variable=value&variable2=value2 Is anyone aware of some firewall/security setting that would prevent people from clicking on such types of links?

json and special chars - Hi! In my DB table I've chars like עטלש but when I generate json file I show \u00e0\u00f2\u00e8\u00ec\u00f9 is it right this change in my char? Thanks

Simple question?? PHP..ODBC..and...dBASE - Ok this may be a dumb question to some but for the first time this evening I have to access dBASE file through ODBC.. I'm trying to do simple queries of SELECT * FROM ??? however I can't for the life of me figure out what to put in place of the ???. Any....
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]