Jump to content

Recommended Posts

possible to create a file with a structure(spaces headers and stuff)

 

Yep, use fopen, fwrite, and fclose.

 

http://www.php.net/fopen

http://www.php.net/fwrite

http://www.php.net/fclose

 

read it with php

 

file_get_contents or fopen and fread.

http://www.php.net/file_get_contents

http://www.php.net/fread

 

display it

 

echo and/or print

 

http://www.php.net/echo

http://www.php.net/print

 

like it is saved

 

Don't know what you mean

 

What is the best text format to use for this purpose

 

ummm, text files.

 

Is it possible to do it with .doc files

 

.doc is a MS word extension.  It doesn't matter what extension you use, it will contain plain text regardless.

 

 

possible to create a file with a structure(spaces headers and stuff)

 

like it is saved

 

Don't know what you mean

 

I mean of i can read the file with fopen and display it on screen like it is saved, with all the heading fond size,bold, italic, the paragraphs. Cause when i try to read the file and display it it loses all that stuff.

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.