Jump to content

keeping external file structure and .reading .doc


alejandro52

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.

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.