0

i have wamp server 2.0...iam new user of php..i wrote my script in notepad and saved it in the directory i created in www folder with extension php..but when i tried to run my script using wamp..the script file is with extension .php.txt and the server just displays my entire code..i cannot see my output..apache server was running...kindly anyone help me..

4
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by richie513
0

Notepad defaults to the extension .txt. You must change the Save As Type drop down menu to all files. You can also wrap it with quotes to save as .php.

0

i have wamp server 2.0...iam new user of php..i wrote my script in notepad and saved it in the directory i created in www folder with extension php..but when i tried to run my script using wamp..the script file is with extension .php.txt and the server just displays my entire code..i cannot see my output..apache server was running...kindly anyone help me..

edit http.conf file of apache server to accept .php extensions. also write your php scripts in htdocs directory( a good progamming practice not mandatory)

0

If you are using Notepad to write your PHP scripts, always change the Save Type to All files when saving.

This topic has been dead for over six months. 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.