| View previous topic :: View next topic |
| Author |
Message |
sjemmie
Joined: 09 Aug 2006 Posts: 1
|
Posted: Wed Aug 09, 2006 10:34 am Post subject: HTTP_Request and a wav file |
|
|
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 |
|
 |
|
|
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
|
|