Web Hosting Talk







View Full Version : Saving an php files


kkbbzzaa
03-18-2003, 01:09 AM
I'm new using php, creating my first php websites. The problem I’m having is that when saving the code file form the note book I save it as test.php when I upload the file the file was saved as test.php.txt

Am i doing something wrong? What can i do to fix this?

Thanks

Sorry for the bad English.

Mike in FL
03-18-2003, 01:32 AM
If you're using an editor like Notepad, there's an option to choose something like "All Files" or "*.txt" -- choose "All Files."

timesnme
03-18-2003, 05:26 AM
Yes, "All Files" can work, or perhaps simply use, "Save As...", instead of, "Save."

:)

ciao
.times enemy

Rich2k
03-18-2003, 06:19 AM
Turn off hide file extensions for known types in your windows configuration and this problem won't happen in notepad

timesnme
03-18-2003, 11:24 AM
that is not true. regardless if file extensions are visible or not, if one goes to, File | Save, then simply types in a filename, with an extension, then i believe, unless it is a dot txt extension, notepad will take the liberty of adding dot txt to the end of the new file.

i have it so i can see all files, and it does this for me also.

ciao
.times enemy

Rich2k
03-18-2003, 11:37 AM
Yes but if file extensions are hidden notepad has a tendancy to add .txt on the end anyway. If they are visible and you manually add your own file extension I've never seen it add .txt

timesnme
03-18-2003, 11:44 AM
i believe exceptions depend on registered extensions in one's ... registry. if i try to make, blah.doc, it allows it, without the added .txt. if i save the file as blah.dll, same. if i make it, blah.xxx it is saved as blah.xxx.txt .

so, i guess various systems will get various results.


ciao
.times enemy

jonasf
03-18-2003, 02:19 PM
just save it with the name in quotes: "name.php" that works regardless of what notepad wants to add.

kkbbzzaa
03-18-2003, 02:33 PM
It did work now. Thanks all for your help

Mateo

timesnme
03-19-2003, 12:51 AM
Originally posted by jonasf
just save it with the name in quotes: "name.php" that works regardless of what notepad wants to add.

Hmm. Kewl. Thanks for this infobit. :)