View Single Post
  #1   [ ]
Old 10-29-2003, 05:02 PM
sea Canada sea is offline
Join Date: Feb 2003
Location: Toronto
View Posts: 17,414
[Tech](php help)Random file .php troubles

Not sure if this is the greatest place to put this, as it isn't schoolwork-related, but whatever. I need some help. I'm using a random file .php for my signature, which works fine. However, I'm trying to get it to play random music when it is clicked on. It was working a day or so ago, but now I am prompted to download a file, which displays random gibberish (well, to me, anyways ). The code is as follows:

Quote:

<?php

$st= $_REQUEST['st'];
$fn= $_REQUEST['fn'];
$et= $_REQUEST['et'];

$st='0';

$fn='4';

$et='mid';

readfile(rand($st,$fn) . '.' . $et);
?>


I don't really know any php, I just got this stuff from Yoshi 15. Maybe I should be asking him...well, whatever.

I'm using the url "http://acious.50free.net/music.php", minus the quotes, of course. It was working fine before (opened up Windows Media Player, started playing song), but now it asks me to download an html file, which doesn't make sense to me, considering that it worked before. All the files are in the folder.
Reply With Quote