notepad++ extension wrong (Php senior master wizards only?)

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
helpmeout
Forum Newbie
Posts: 4
Joined: Fri Nov 05, 2010 6:45 pm

notepad++ extension wrong (Php senior master wizards only?)

Post by helpmeout »

i installed and un-installed xampp multiple times. Every time i tried to test php code in notepad plus plus while apache server was running it would'nt work. Then i tried regular old notepad [<html> <?php echo "hi"' ?> </html>] that came with my computer, saving with a .php extension, and changing the type to 'all files' instead of txt. and who would have thought, it worked.

I then tried copying and pasting a php script i got from hotscripts.com and it didnt work. Any tips? I'd like to be working as diligently as possible. Ive been learning for over a month.

please share tips and expiriences/ if you cant contribute anything helpful, stay and learn. Happy Halloween

(windows 7)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: notepad++ extension wrong (Php senior master wizards onl

Post by Christopher »

By default, webservers with PHP installed only use PHP to run files with a .php extension. You will need to make sure the PHP scripts you download and edit have a .php extension.
(#10850)
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Re: notepad++ extension wrong (Php senior master wizards onl

Post by DaveTheAve »

Are you editing and saving the files in the webroot of the XAMPP installation and trying to run the code from a web-browser with the address: 127.0.0.1 or localhost?
Post Reply