0

Hi

I recently installed XAMPP and tried my first test page by creating a sub-folder in htdocs namely password_test which containts 2 files: password.txt and an index.php.

While trying to execute i get the following: file:///C:/xampp/htdocs/password_test/

--------------
Index of C:\xampp\htdocs\password_test\
Name Size Date Modified
[parent directory]
index.php.txt 129 B 11/18/11 12:23:16 PM
password.txt.txt 13 B 11/18/11 11:55:39 AM

I am just able to see the code i typed on clicking the files but not the result. Can someone telling me if i am traveling the wrong way.

Awaiting your reply

Thank you
Laya

4
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by Stefano Mtangoo
0

Hi

I recently installed XAMPP and tried my first test page by creating a sub-folder in htdocs namely password_test which containts 2 files: password.txt and an index.php.

While trying to execute i get the following: file:///C:/xampp/htdocs/password_test/

--------------
Index of C:\xampp\htdocs\password_test\
Name Size Date Modified
[parent directory]
index.php.txt 129 B 11/18/11 12:23:16 PM
password.txt.txt 13 B 11/18/11 11:55:39 AM

I am just able to see the code i typed on clicking the files but not the result. Can someone telling me if i am traveling the wrong way.

Awaiting your reply

Thank you
Laya

rename the file index.php.txt to index.php
BTW did you use notepad?

0

Hi guys,

I finally managed to solve the issue. It was evstevem who gave me the clue of the notepad. Finally, i was able to change my file to .php from the .php.txt and it worked.

Thank you so much for all the support everyone.

I will be back with more queries since its just my first day of programming.

Thank you!!

Regards
Laya

0

Hi guys,

I finally managed to solve the issue. It was evstevem who gave me the clue of the notepad. Finally, i was able to change my file to .php from the .php.txt and it worked.

Thank you so much for all the support everyone.

I will be back with more queries since its just my first day of programming.

Thank you!!

Regards
Laya

Throw notepad, it is useless and stubborn when it comes to programming. Alternatively use something like NPP

Please mark thread solved!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.