Hi,
I'm trying to make a PHP/WML page by using the tutorial on phpbuilder. I've managed to integrate WML and PHP together, but the problem is as soon as I try to add the following code:
$headers = getallheaders();
$fp = fopen("data.txt","a");
$data = "\n";
fputs($fp,$data,strlen($data));
while (list ($header, $value) = each ($headers)) {
$data = "$header: $value\n";
fputs($fp,$data,strlen($data));
}
fflush($fp);
fclose($fp);
to try and grab the headers from my WAPer, the page no longer wants to work and I get a "No reply, try again later" message from my phone.
Any have any ideas what I'm doing wrong?