|
Answer» 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?
ThanksAre you using Notepad? If so right underneath where you put the filename, change the "Save as TYPE" to all files.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? ---------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.
|