• PHP Help PHP Newbies
  • how do i save a .php file so that it doesnt save as .php.txt but saves a a true .php

can anybody help me with this question i found a site that does step by step insturctions on how to make a basic signup and login for your site and it gives the html codes and php codes but it askes to create a blank file and then enter the php code and save it as .php how do i do this cause i went to notpad and saved it .php but it saves it thenameichose.php.txt but i downloaded some php files and they are files that windows can read casue it shows a blank page with shapes on the page as the file picture meaning that i has no program that can you can use yo open it and to read it, so how do i save the php frile so it is really a php file and not just text cause i have every thing else right but when i try the signup page and fill it out and click submit it will go to a page that says cannot be displayed and thats because i save the php file in the wrong program so does anyone know how i save it right or if i need a certian program to save it right what program do i need.

thanks spencer

    When you save it go to save as, and from the drop down that says 'save as type' change it to 'all files' this will stop it adding .txt at the end

      or put quotes around the filename.

        but can i just paste the php code in notepad and then save it as all files or do i need to use a different programe like wordpad or word.

          Wordpad would just stick ".wri" on the end, and Word will stick ".doc" on the end.

          The solution is to turn off Microsoft™ BabyTalk™ (with added SecurityRisk™).

          Open Windows Explorer (not Internet Explorer, the other one). Choose Tools -> Folder Options, and click the "View" tab. Clear the checkbox next to "Hide extensions for known file types". Click "Apply to all folders" (never seems to make any difference but it helps to insist) and then click OK.

            8 days later

            You can write php in in notepad... infact you can write anything in notpad as long as you put save as "all files" and make sure you put .php extension on the end (ie: myphpfile.php)

              if u are writing a code in notepad do save it with extension .php example mainpage.php

                Write a Reply...