Page 1 of 1

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

Posted: Fri Nov 26, 2010 7:52 pm
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)

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

Posted: Fri Nov 26, 2010 10:36 pm
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.

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

Posted: Sun Nov 28, 2010 2:45 pm
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?