HTML error

I have this HTTP request, I expected this, but WURFL is returning that. Please provide enough data to reproduce the problem.
MDAds
Posts: 1
Joined: Wed Jul 13, 2011 3:56 pm

HTML error

Postby MDAds » Wed Jul 13, 2011 3:58 pm

Hi,
I'm sure it's not an html error, more of a user error. But I'm getting text at the top of this page:
http://www.mobideviceads.com/pbma.html
and I can't figure out why.
Lil help please.
Thanks,
MDA

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: HTML error

Postby kamermans » Wed Jul 13, 2011 4:02 pm

I can see from your page's source code that your server is not parsing the page as PHP:

Code: Select all

<?php
 
require_once("Tera-Wurfl/TeraWurfl.php");
$wurflObj = new TeraWurfl();
$wurflObj->getDeviceCapabilitiesFromAgent();
$isWireless = $wurflObj->getDeviceCapability("is_wireless_device");
 
if($isWireless)
	header("location: http://www.m.mobideviceads.com/pbma.html");
 
?>
This is because your file extension is .html. You will need to rename the file to pbma.php
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!


Who is online

Users browsing this forum: No registered users and 14 guests