Jump to content

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!!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.