Forum : where to write the php code?
Brief description  about Online courses   join in Online courses
View rupa vishwanathan iyer 's Profile

where to write the php code?

sir where are we suppose to write php code i mean in notepad or wamp server?and how to save it?plz reply fast.
Asked by rupa vishwanathan iyer | Jan 13, 2011 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Rupa,

Notepad is a very simple text editor and can be used for writing any program/code even of Java/C/C++/.Net and of-course PHP. So you can start programming in PHP using notepad or any text editor you have.

Since Notepad is very simple tool so for interactive IDE You can use DreamWeaver etc.You have to save your PHP program with .php extension.

Ex

<?php

echo "Hi PHP";
?>

save this file with abc.php. You have to save it in c:\wamp\www folder.


You can run your program by launching the Wamp server and then browsing your php source file.

Generally it'll be http://localhost/abc.php

I hope you have got enough to write and run a php program.
Jan 14, 2011