Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: .php etension  (Read 4256 times)

0 Members and 1 Guest are viewing this topic.

shouvik

    Topic Starter


    Apprentice

  • Computer Hope - Always For Your Help
    .php etension
    « on: February 28, 2007, 11:42:10 PM »
    I am on the begining stage of learning php

    I created a small php fie and save it as [highlight]hworld.php[/highlight]

    now when i uploaded it to my site it displayed Ok but the address
    became [highlight]http://www.mysite.com/hworld.php.txt[/highlight]


    Why that [highlight].txt[/highlight] is coming?

    Thanks

    fffreak



      Adviser

    • That's right I am a final fantasy freak.
    • Thanked: 3
      • Yes
      • JSPCRepair
    • Certifications: List
    • Experience: Guru
    • OS: Windows 7
    Re: .php etension
    « Reply #1 on: March 01, 2007, 07:19:14 AM »
    Are you using Notepad? If so right underneath where you put the filename, change the "Save as type" to all files.
    Computers are the future, not us. Learn everything you can about them while you still can, soon they will be learning about us... Every bit of advice that I give you is best guess, it is your choice whether or not you listen to it.

    shouvik

      Topic Starter


      Apprentice

    • Computer Hope - Always For Your Help
      Re: .php etension
      « Reply #2 on: March 01, 2007, 01:39:56 PM »
      Yes I am using Notepad.

      Ok I again opened that notepad files hworld.php and click at "file> Save as" and  change it to "all files".

      But then it showed :-

      "the file /desktop/hworld.php.txt already exists. Do you want to replace it?"

      That means it is again taking it as .txt . What's the problem?
      ---------

      rockerest



        Hopeful
        • Yes
      • Experience: Experienced
      • OS: Windows 7
      Re: .php etension
      « Reply #3 on: March 02, 2007, 12:28:01 AM »
      Tell your computer to stop hiding known file extensions.  It's very annoying.

      Or perhaps you just forgot to delete the .txt portion of the filename?  If it's included in the filename, it'll still save as that type.
      In general, the PEBKAC.  Whether it's now or was three weeks ago, the PEBKAC.
      Unsafe browsing and general computer / internet illiteracy IS the users problem.  Don't have sex if you don't know how to use a condom.
      Also, there are 10 types of people in the world, those who understand binary, and those who don't.