PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
HTTP_Request and a wav file

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTTP
View previous topic :: View next topic  
Author Message
sjemmie



Joined: 09 Aug 2006
Posts: 1

PostPosted: Wed Aug 09, 2006 10:34 am    Post subject: HTTP_Request and a wav file Reply with quote

Hi I want to start a wavbestand from a server wich is not reachable (sp?) from outside the network.
But with pear it is reachable


Code:
<?    require_once ('/opt/lampp/lib/php/HTTP/Request.php/');

    $req1 =& new HTTP_Request("http://ip adres/$code.wav");
    $req1->setMethod(HTTP_REQUEST_METHOD_POST);
    $req1->addPostData("code", $code);
    if (!PEAR::isError($req1->sendRequest()))
    {
        $response2 = $req1->getResponseBody();
    }
?>


With the code I can listen to the wav file but I want to start the wav file with a sound butten
But HOW can I do that?

This is my sound button
<span id=dummyspan></span><input type='button' value='Listen' onClick="DHTMLSound(('//here comes the url to the wav file'))"

I hope some can help
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTTP All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement