English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to convert a txt file in php file. Someone told me just to open my txt file and save it as php but it does not work. Can you help me please?

2006-12-12 00:16:36 · 7 answers · asked by julie 2 in Computers & Internet Programming & Design

7 answers

Your missing a step...

Open the file. Then go up to the file menu and select Save as... and in the save as type drop down at the bottom select "all files" now in the file name put the name and include the ".php" at the end of the file name.

2006-12-12 00:22:08 · answer #1 · answered by Fremen 6 · 1 0

txt2rss.php is a trivial PHP script that can take small multi-line text files, an RSS template file and produce an entire RSS 1.0 XML file. This requires some RSS and XML knowledge to configure your template file, but requires only a text editor for your updates. The act of updating is the motivation and primary activity of RSS.

The Web feed could be generated continously and on-demand from the input files, but it is advised that the output is generated and saved to a regular file. This can be managed well with a unix Make file
The script needs a few bits and pieces from you:

One text file should have information about your Web site or feed. Consequently, this file should rarely change.
A wildcard glob expression, like "food*.txt" for matching text files starting with "food" is configured in the PHP source file. An output file name can be provided, but it is currently ignored for all intensive purposes.
Any files that match the glob (for the example, "food-new.txt" would), will contain information for each RSS item.
The RSS template file is provided with placeholders where the information from text files should be inserted. However, other customizations can be added to the RSS file, including images or user inputs and language or internationalization changes.

Regards,
~hero~
www.akbarthegreat.com

2006-12-12 00:38:29 · answer #2 · answered by The Hero 2 · 0 0

If you want to convert a text file to php, follow exactly the steps given below

01. PUT THE STRING ON THE TOP OF YOUR DOCUMENT










02. NOW PASTE YOUR TEXT HERE
03. AT THE END OF EACH PARAGRAPH PUT


04. ONCE YOU HAVE FINISHED DOING THAT ADD THIS STRING AT THE END





05. NOW RENAME THE FILE AS .PHP. IT WILL PERFECTLTY WORK. CHEERS !!!!

2006-12-12 00:24:06 · answer #3 · answered by Shaj 5 · 0 0

In order to save it as .php...you need a program on your computer which can read and edit php files.

Macromedia Dreamweaver can do that.

Even then...you won't be able to convert it.
You will need to create a php file with Dreamweaver and paste the text in it.

Maybe you should try to convert it to html first.
Because you can convert html to php.

2006-12-12 00:21:37 · answer #4 · answered by Aussies-Online 5 · 0 0

this problem occurs because your files' extentions are not visible.
right click on your .txt file and open it with notepad.
in note pad, select file,save as
then write your file name as: yourfile.php
save as type: all files
OR
open my computer
tools->folder options->view
in the hidden files and folders section, unmark hide extensions for known file types.
you'd see that your file is a yourfile.php.txt
rename it to yourfile.php

2006-12-12 00:23:50 · answer #5 · answered by John Doe 2 · 0 0

very primitive way of doing it is just simply make a copy and rename it with windows xp it usually works.

2006-12-12 00:21:31 · answer #6 · answered by Anonymous · 0 0

Try these sites
http://www.uvm.edu/~ashawley/php/txt2rss.html
and
http://media-convert.com/

2006-12-12 00:53:32 · answer #7 · answered by Sunny 4 · 0 0

fedest.com, questions and answers