problem in running

Reply

Join Date: Jul 2007
Posts: 15
Reputation: gopi kannan is an unknown quantity at this point 
Solved Threads: 1
gopi kannan gopi kannan is offline Offline
Newbie Poster

problem in running

 
0
  #1
Feb 17th, 2008
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..
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: problem in running

 
0
  #2
Feb 17th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 205
Reputation: carobee is an unknown quantity at this point 
Solved Threads: 11
carobee carobee is offline Offline
Posting Whiz in Training

Re: problem in running

 
0
  #3
Feb 18th, 2008
Originally Posted by gopi kannan View Post
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)
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 158
Reputation: richie513 is an unknown quantity at this point 
Solved Threads: 11
richie513's Avatar
richie513 richie513 is offline Offline
Junior Poster

Re: problem in running

 
0
  #4
Feb 18th, 2008
If you are using Notepad to write your PHP scripts, always change the Save Type to All files when saving.
Technology is just a tool. In terms of getting the kids working together and motivating them, the teacher is the most important.
richie513
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC