Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-12-2005, 03:19 PM
brian
Unregistered

Posts: n/a

index.php?x=blahblah.mp3

I have been looking all over the internet for a php script like this. Where you have the file and when u click the link it generates the page for you.

Here is an example on eBaumsworld:http://www.ebaumsworld.com/morepranks.shtml
When you hover over the "Call" link you get that extension. And this would really help me with my site....

Anyone know where I can get a script like this? Or the correct name for this kind of script :?:


(Sorry for being a noob :oops
Reply With Quote
  #2  
Old 02-13-2005, 12:47 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

It's just a simple file database, hotscripts.com has many like this.
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 02-15-2005, 06:20 PM
varg
Unregistered

Posts: n/a

You'll need a database with at least two tables (name and url)
then use something like this code to generate a list of all the rows (entries) in that database.
PHP Code:
<?
$sql 
mysql_query("SELECT * FROM database ") or die (mysql_error());

while (
$row mysql_fetch_array($sql)) {
$name $row["name"];
$url $row["url"];

echo 
"<a href=\"folder/$url.mp3\">$name</a><br />";

}

?>
I think that should work, but I'm still kinda new to php coding.
Reply With Quote
  #4  
Old 01-09-2006, 05:54 PM
Guest
Unregistered

Posts: n/a

varg, you really wouldnt need a mysql database to load the files. this is what i would do,

// first get the file thats being called. Example: ?load=this.mp3

$file = $_GET['load'];

header("location: path to the file/".$file");
Reply With Quote
Reply


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MP3/Ipod? ShArP General Chat 15 08-27-2007 11:46 AM
Undefined index: doupload on line 130 Guest phphq.Net Forums 6 05-22-2005 12:06 AM
index.php?act=test&cat=5 Guest phphq.Net Forums 0 02-02-2005 04:46 PM
Mp3 SMITIE Sigs and Graphics 15 11-21-2004 05:17 PM
LINKS option on main index DevilDog#1 Feedback / Novahq.net Support 0 07-29-2002 03:50 PM


All times are GMT -5. The time now is 01:32 PM.




Powered by vBulletin®