Jump to content

converting text file to php help me

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
Guest_changoo_*

Guest_changoo_*
  • Guests
hi all
I am stuck on how to convert text files to php. Everybody says that a text editor will do it, but I do not know how to use a text editer. Note pad will work also, but how do I do it ???

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
How do you mean by converting text files to php?

php is a text file, containing code.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
DEViANT

DEViANT

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 358 posts
If your running windows, go to tools -> folder options -> uncheck "hide known file extentions"

Go to your file -> rename -> replace ".txt" with ".php"

Thats what I think your referring to in anyway.

:D You should rep+ me so that I can win :D

My Blog | Ask me!
Error : Satan did it

#4
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
WHen you are saving PHP files just change the extension to .php instead of .txt e.g.
phpfile.php instead of phpfile.txt
I also recommend you change the file type (in notepad) to All Files.
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).

#5
by0logic

by0logic

    Newbie

  • Members
  • PipPip
  • 19 posts
Just pointing out you need to have a PHP actually installed on the hosting machine, unlike HTML and JavaScript which you can save and test locally.

#6
mnamjad

mnamjad

    Newbie

  • Members
  • Pip
  • 8 posts
The easiest why to do it, by rename the file.

Right click on your file.php, select rename from the available options.

Remove .php from that name and place .txt in the file name and press enter. A message will occur "Do you really want to change the type of the file". Select "Yes", your file will be renamed.

If you want to do this because you want to open it easily then you can open it by drag this file on the notepad. The notepad will show all the data in that .php file.