Error when testing php code on webserver
Posted: Thu Dec 02, 2010 8:18 am
Hello, brand new to php and trying solve a problem. I have a device that is on wifi that can send info to a webserver and get info back, it is an HTML client. If using this string to the remote once the device opens the DNS at port 80:
GET$/testemail.php?
( $ only adds a space in the wifi radio)
The response from my website is:
[syntax]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
Hello World</body>
</html> [/syntax]
The code in the actually php file is:
But, I want to actually see just the Hello World response, which is the only thing that shows if going to the page in a browser.
Is there something other than GET I should be using? I tried sending the complete URL including /testemail.php but it returns and error.
Thanks
GET$/testemail.php?
( $ only adds a space in the wifi radio)
The response from my website is:
[syntax]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
Hello World</body>
</html> [/syntax]
The code in the actually php file is:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
<?php echo "Hello World";
?>
</body>
</html>
Is there something other than GET I should be using? I tried sending the complete URL including /testemail.php but it returns and error.
Thanks