Jump to content

[SOLVED] Extra stuff echoed from a 'hello.php' page


cozmosys

Recommended Posts

I'm new to php and I went through a tutorial and wrote the standard 'hello world' program, which I've listed below. However, when I load the page into my browser, I get what I think is extra stuff at the top of my page. Can anyone explain why? Or, tell me how to stop it from apperaing? I've also pasted the characters that my browser returns.

 

<html>

<head>

  <title>PHP Test</title>

</head>

<body>

<?php echo '<p>Hello World</p>'; ?>

</body>

</html>

 

 

{\rtf1\mac\ansicpg10000\cocoartf102 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww9000\viewh9000\viewkind0 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0\fs24 \cf0 \ \ \ \ \

 

Hello World

 

\ \ }

Most excellent! It was my editor. Thank you very much!! I used TextEdit, as I'm a Mac user. I was able to use Word and save it as text only with line breaks. I'll dig around for another editor. If you have any suggestions, I'd appreciated them. Thanks again!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.