I just downloaded PHP, but I am having trouble finding where to write my code. I found a website said to use php-cgi.exe. Is this right, because I can't figure out how to save nor display the code and output.
You Can Download this programmer http://en.softonic.com/s/appserv-2.5.7
and install it
now when you install it you will find folder with the name appserv
under the folder of appserv you will find folder with name www
tou can write your code in it
Now what I like about AppServer is that it automatically goes online anytime you restart. I guess there ways of configuring WAMP and XAMPP to start auto but I jus dont know how or maybe I dont care. Anyway, Csoft, I am guessing u are on windows and u have notepad already, jus open up notepad and type the following:
Save this file with any name and save it in ur root directory(depends on ur webserver as Vaultdweller said, so u figure out what and where it is and save the file in). Mostly, these directories are in the local drive eg C:/wamp, C:/Xampp, C:/program files/appserver. After u have saved the file at the www root or htdocs of ur webserver, jus open up ur browser and type; localhost/yourfile.php and hit enter. U should see some info on ur PHP installation.
Have fun coding.