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)
notepad++ extension wrong (Php senior master wizards only?)
Moderator: General Moderators
- 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
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)
- 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
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?