PHP Classes

AudioFile

Recommend this page to a friend!

      AudioFile  >  All threads  >  AudioFile  >  (Un) Subscribe thread alerts  
Subject:AudioFile
Summary:was macht test.php?
Messages:2
Author:Cosmo Delaney
Date:2012-02-24 01:05:21
Update:2014-03-20 09:44:39
 

  1. AudioFile   Reply   Report abuse  
Picture of Cosmo Delaney Cosmo Delaney - 2012-02-24 01:05:21
Hallo,

die Klasse sieht vielversprechend aus, und genau so etwas könnte ich gebrauchen...

bei test.php sehe ich eine Liste der Audio-Dateien im angegebenen Pfad (habe das ganze auf localhost), aber wenn ich in dieser Tabelle einen einzelnen Namen anklicke, geschieht nichts.

brauche ich noch etwas anderes außer den beiden PHP-Skripten test.php und classAudioFile.php?

naja, das skript ist ja auch ein paar jahre alt... mal sehen, ob das jemand liest in den nächsten jahren ;-)

  2. Re: AudioFile   Reply   Report abuse  
Picture of Byron Byron - 2014-03-20 09:44:39 - In reply to message 1 from Cosmo Delaney
I had to play around with a few things to get it to work. First of all, $HTTP_GET_VARS has been deprecated, so use $_GET["filename"] instead.

Another problem I found, there are a lot of missing return statements. I don't know if it works with older versions of PHP that may not have required them, but with the newer versions, I guess it needs a return at the end of the functions? I'm not an expert, so I don't know for sure.

I traced down where it was failing in classAudioFile.php with some echo "DEBUG: it failed here" type statements, and put a few "return 1;" statements in where needed, and it worked.

Good luck!