Jump to content

Play a wav from another server


phpcharlie

Recommended Posts

Hey guys, I'm really stuck on this one, I need to play a wav file on a webpage, but the wav file exists on another server which the php script has access to.

 

I can list the files in the directory using

 

$dir = "/foo/bar/baz";

if (is_dir($dir)) {

    if ($dh = opendir($dir)) {

        while (($file = readdir($dh)) !== false) {

//            echo "filename: $file" . "<br>";

}}}

 

Only the server has access to /foo/bar/baz , the web user does not.

How can I play the wav files in this folder?

 

thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/208287-play-a-wav-from-another-server/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.