...

View Full Version : Notepad+php



Demension
09-04-2006, 11:32 PM
I cant seem to make php work with notepad.. I tried saving it as "Form.php" But that doesnt seem to work anyone know? :confused:

mark87
09-04-2006, 11:36 PM
Explain more what you're trying to do.

Notepad will edit PHP files... it won't run them. You need PHP installed on the server; unless you have a web server running on your computer (with PHP running) you will need to upload the files to your host (which must support PHP - most paid hosting will do). :)

rafiki
09-04-2006, 11:54 PM
i think he means saving as a php file,
well basically if there are quotes at the beginning and end of your file name so it does actually look like "index.php" it will save as php ext, if no luck try changing the file type to all files and just save as index.php it will save into php format aswell, your computer mite not no how to open a php file so better upload to web server, for testing php scripts try tripod.co.uk

_Aerospace_Eng_
09-04-2006, 11:58 PM
Usually having the quotes there tells notepad to save the file as is with the .php extension and all. You also don't need to upload your files to test them. You can install a server and php onto your system quite easily.

rafiki
09-05-2006, 08:22 AM
true but i find testin online easier, because i havent got IE so i test with fire fox and get a friend to test with IE also he mite not no how to install a server onto his setup

_Aerospace_Eng_
09-05-2006, 09:15 AM
true but i find testin online easier, because i havent got IE so i test with fire fox and get a friend to test with IE also he mite not no how to install a server onto his setup
Are you on linux? There are also programs that make installing a server on your system a breeze. The one I use is XAMPP (http://www.apachefriends.org/en/xampp.html). Its available for various operating systems. Its just an install package.

VortexCortex
09-09-2006, 02:54 AM
I use Notepad++ (http://notepad-plus.sourceforge.net/uk/site.htm) because it's designed for editing code (It knows what a .PHP file is).

You should really check it out if you're still using notepad to edit code.

Supports saving linebreaks in MAC / WIN / UNIX format (which could be your problem... saving WIN linebreaks and uploading to a UNIX server.)

Look at some of the screenshots displaying syntax highlighting and multi views of documents (Look at one part of a file and edit the other.)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum