Thread: File Extensions

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Randolph, NJ
    Posts
    36
    Rep Power
    15
    When I write my scripts, I write them in Notepad. I have dealt with this problem earlier, but now as I am making complex scripts, with many includes, I need this problem fixed.

    When I save a file in Notepad it saves it as whatever.php4.txt . I do not like this very much considering I have to rename all the files. If you could please help me find a program, modify Notepad, or do something to make it so I can save .php4 files without renaming. Thanks.

    ------------------
    ================
    -Khill, www.tsrealm.com
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    Seaside, CA
    Posts
    84
    Rep Power
    15
    I can't tell you why it's happening but it is happening because of the "4" at the end of your file name. If you can save it just as ".php" Notepad won't append the ".txt" extension to it.
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    firstly - should you not be saving php4 files as .php anyway? unless you have altered your config .php4 may not be recognised.

    And as for notepad - when you save_as - make sure you set the 'save_as_type' dropdown to 'all files(*.*)' to avoid having .txt added to it.


    If your scripts are getting longer! perhaps you should look at moving up to a more featured text-editor, there are many good ones out there - I use http://www.notetab.com 's notetab light. It (like many others) allows editing of several documents at once , search and replace (invaluable) and loads of stuff you will probably never use. But is at the end of the day just a notepad with turbo.



    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL
  6. #4
  7. No Profile Picture
    damari
    Guest
    Devshed Newbie (0 - 499 posts)
    I recommend CodeCommander. You'll find it at codecommander.sourceforge.net


    ------------------
  8. #5
  9. No Profile Picture
    wangjun
    Guest
    Devshed Newbie (0 - 499 posts)
    It's quite easy!!
    U just wirte "filename.php4" in save box of notepad. ( Note: there are two '"'. ^_^)

Similar Threads

  1. Pointer problem in opening a file
    By LAKI in forum C Programming
    Replies: 13
    Last Post: February 11th, 2004, 08:27 AM
  2. Pointer problems opening file *formatted*
    By LAKI in forum C Programming
    Replies: 4
    Last Post: February 11th, 2004, 06:06 AM
  3. check file extensions
    By darkane in forum PHP Development
    Replies: 2
    Last Post: February 9th, 2004, 11:32 PM
  4. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 07:42 PM
  5. Overwritng contents of Binary file in C
    By nmsudhan in forum C Programming
    Replies: 3
    Last Post: January 14th, 2004, 06:43 AM

IMN logo majestic logo threadwatch logo seochat tools logo