Jump to content

Best Way To Make A Message - HELP!!


oliverj777

Recommended Posts

Basically, All I want to do is save a .txt (doesn't have to be .txt) to my FTP and PHP simple echos it. The .txt is where a message is stored. But when I write the message my self like this:

Hello

 

This is a message.

 

- And then upload it to my FTP, PHP echos it like this "HelloThis is a message". Is there anyway for PHP to notice the 'white space'?

 

--OR--

 

If you know of a better way to make a message system, then also let me know

 

Thanks, Ollie!

Link to comment
Share on other sites

It isn't PHP that ignores the white-space, it's the browser. If you look at the source you'll see the spacing is preserved. HTML offers the <pre> tag that by default preserves white-space, or you can apply the CSS property white-space:nowrap;.

Link to comment
Share on other sites

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.