- Joined
- Apr 27, 2010
- Messages
- 705
- Reaction score
- 1
Hi, im trying to setup a Web Call Back service, here is my code
Call.php
I seem to have a problem at
$handle = fopen("$url", "r");
$contents = '';
while (!feof($handle)) {
}
fclose($handle);
?>
Error is
feop(): supplied argument is not a valid stream and looks as if a problem is with
while (!feof($handle)) {
any ideas?
Call.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
</head>
<style type="text/css">
.fond {
position: absolute;
background-image: url(http://www.alternativenetworks.com/Media/images/call-back-button3-71fc20e2-8bca-416d-9d21-34e20b020f17.jpg);
width: 396px;
height: 184px;
}
.title {
color: #1b7bb5;
font-size: 0.9em;
font-family: arial;
font-weight: bold;
}
.title2 {
color: #1b7bb5;
font-size: 0.7em;
font-family: arial;
font-weight: bold;
margin-left: 40px;
margin-top: 5px;
}
.texte {
position: absolute;
width : 390px;
height: 80px;
margin-left: 15px;
margin-top: 30px;
color: #000;
font-size: 0.6em;
font-family: arial;
}
</style>
<div class="Thank You">Thank you. Someone will contact you within a few minutes. </div>
<br><br><center>
<input type="button" name="btFermer" value="Close" onclick="javascript:self.close();" />
</center>
<?php
require ('config.php');
$number = $_POST["number"];
$url = "$host$port/PbxAPI.aspx?func=make_call&from=$ext&to=$number&pin=$ext_pin";
$handle = fopen("$url", "r");
$contents = '';
while (!feof($handle)) {
}
fclose($handle);
?>
I seem to have a problem at
$handle = fopen("$url", "r");
$contents = '';
while (!feof($handle)) {
}
fclose($handle);
?>
Error is
feop(): supplied argument is not a valid stream and looks as if a problem is with
while (!feof($handle)) {
any ideas?