You can either change the type to "all files" or you can surround the name of your file with quotation marks.
For example
"name.php"
instead of
name.php
that way it won't add the .txt
2007-05-20 14:06:43
·
answer #1
·
answered by LexiSan 6
·
0⤊
0⤋
Changing the type of file to any and adding the .php to the file name the first time you save it. Then it will automatically save itself as the same name when you edit.
2007-05-20 13:59:45
·
answer #2
·
answered by Anonymous
·
0⤊
0⤋
Okay, when you are in notepad, right below where you enter the filename, there is a selector box that is selected to text,change to all types, then add the .php extension in the file name box at the end of the filename, save and you should be set.
2007-05-20 13:47:37
·
answer #3
·
answered by Anonymous
·
0⤊
0⤋
The easy way is to use HTMLKIT or NVU both support PHP and then you can view a more familiar interface. Both are free to download.
Most HTML editors will allow you to save php extensions.
2007-05-20 14:11:39
·
answer #4
·
answered by Tracy L 7
·
0⤊
0⤋
To begin this tutorial in PHP sessions, you must first make sure that your web server (ie. apache) has the options to allow session with the configuration. Note: people using apache and php under a win32 enviorment must manually configure this option.
To start, this tutorial, you should have some basic knowledge of php coding. Refer to Hotscripts for some basic and more advanced php coding tricks.
To begin, create a test folder called session. With that you will created the two files below in that folder.
With that in mind let us begin. First, create a text file called config.php and add in the following code into that textpage.
config.php
# Admin Panel User Name
$uname = "admin";
# Admin Panel Password
$pword = "test";
?>
Save that file as config.php Next, create another test file as index.php and copy the following text into that file.
index.php
require ("config.php");
session_start();
if ((!$username) || (!$password)) {
echo '
';
}
else {
if ($username=="$uname") {
session_register("username");
session_register("password");
echo "user is $uname, and password is $pword
unreg";
}
else echo "nope";
}
if ($m==1) {
session_unregister("username");
session_unregister("password");
}
?>
Now open that session folder and you should see the code in action!!
HOPE THIS IS YOUR BEST ANSWER.
Nick
2007-05-20 13:45:45
·
answer #5
·
answered by Anonymous
·
0⤊
2⤋
if you save it in notepad, you have to change the save as type to all files then in file name you can type filename.php
2007-05-20 13:42:42
·
answer #6
·
answered by Jeffrey 4
·
0⤊
0⤋
... or simply rename the file and remove the '.txt'.
2007-05-20 13:44:38
·
answer #7
·
answered by Anonymous
·
0⤊
0⤋