hi all
I am stuck on how to convert text files to php. Everybody says that a text editor will do it, but I do not know how to use a text editer. Note pad will work also, but how do I do it ???
converting text file to php help me
Started by
Guest_changoo_*
, Nov 11 2010 01:01 AM
5 replies to this topic
#1
Guest_changoo_*
Posted 11 November 2010 - 01:01 AM
Guest_changoo_*
|
|
|
#2
Posted 11 November 2010 - 01:56 AM
How do you mean by converting text files to php?
php is a text file, containing code.
php is a text file, containing code.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
#3
Posted 11 November 2010 - 02:36 AM
If your running windows, go to tools -> folder options -> uncheck "hide known file extentions"
Go to your file -> rename -> replace ".txt" with ".php"
Thats what I think your referring to in anyway.
Go to your file -> rename -> replace ".txt" with ".php"
Thats what I think your referring to in anyway.
#4
Posted 13 November 2010 - 05:29 PM
WHen you are saving PHP files just change the extension to .php instead of .txt e.g.
phpfile.php instead of phpfile.txt
I also recommend you change the file type (in notepad) to All Files.
phpfile.php instead of phpfile.txt
I also recommend you change the file type (in notepad) to All Files.
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).
#5
Posted 21 November 2010 - 12:32 AM
Just pointing out you need to have a PHP actually installed on the hosting machine, unlike HTML and JavaScript which you can save and test locally.
#6
Posted 22 November 2010 - 11:57 PM
The easiest why to do it, by rename the file.
Right click on your file.php, select rename from the available options.
Remove .php from that name and place .txt in the file name and press enter. A message will occur "Do you really want to change the type of the file". Select "Yes", your file will be renamed.
If you want to do this because you want to open it easily then you can open it by drag this file on the notepad. The notepad will show all the data in that .php file.
Right click on your file.php, select rename from the available options.
Remove .php from that name and place .txt in the file name and press enter. A message will occur "Do you really want to change the type of the file". Select "Yes", your file will be renamed.
If you want to do this because you want to open it easily then you can open it by drag this file on the notepad. The notepad will show all the data in that .php file.


Sign In
Create Account

Back to top










