converting text file to php help me

by timr
4 replies
I am stuck on how to convert text files to php. Everybody says that a text editer wll do it, but I do not know how to use a text editer. Note pad will work also, but how do I do it ???
#converting #file #php #text
  • Profile picture of the author BlogHostInc
    Note pad will work fine. Its a txt editor.


    Click File

    Save As

    Click the drop down menu beside. Save File Type As - (All files)

    Now go back up to the file name field - replace .txt with .php

    Click Save.
    {{ DiscussionBoard.errors[1813167].message }}
  • Profile picture of the author Sue McDonald
    Note pad is great - never underestimate. It will strip any format out and I find it a great place when you are building a site to put all your page URLs into it. It is so convient and easy to use.
    {{ DiscussionBoard.errors[1813175].message }}
  • Profile picture of the author naffets77
    If your in windows it can be confusing when windows hides the file name extensions. It does this in XP/Vista/7 and while they're hidden it can be difficult to see what type the file is.

    If you open a folder -> tools -> View -> Uncheck "Hide extensions for known file types"

    An FYI on notepad, it'll get the job done.. but there are much better tools especially if you're new to programming languages like PHP and HTML. Check out Notepad++ or PsPad etc
    {{ DiscussionBoard.errors[1813191].message }}
    • Profile picture of the author Bruce Hearder
      To make any text file into a PHP file, do the following :

      1. Open file it NotePad or someother text editor (NOT WORD)

      2. Add the following to the top of the file.. Before the very first line

      <?php

      3. At the bottom of the file, after the very last line add..

      ?>

      Now save as something.php
      Now the file is a PHP file

      Hope that helps

      Bruce
      {{ DiscussionBoard.errors[1813959].message }}

Trending Topics