Code: <HTML> <HEAD> <TITLE>MY FIRST PHP PROGRAM</TITLE> </HEAD> <BODY> <?PHP ECHO "I'M A LUMBERJACK."; ?> </BODY> </HTML> The above program when run in my Firefox browser shows no output.Only a title "My First PHP Program" is appearing in the title bar. The source code is listed in page33 of the Book called - "Beginning PHP5,Apache,MySQL Web Development" by E. Naramore,J. Gerner,Stolz,M.Glass,Yann Le(Wrox Publication). I have WAMP5(latest) installed. What to do to see the output? Are there errors in the code above?
Code: <HTML> <HEAD> <TITLE>MY FIRST PHP PROGRAM</TITLE> </HEAD> <BODY> <?PHP echo "Hello to the world of PHP"; ?> </BODY> </HTML> What is the output for the following program.
Disabling IIS and setting Apache to auto start will help. Make sure your php.ini file is copied to your windows system32 folder as well.
Hii, Thanks everyone for the replies. Thanks Shabbir.It worked. How to disable IIS & set Apache to autostart everytime Windows starts?At present,I cant start Apache server without disabling IIS every time windows boots up. Also,I have installed wamp5 in C:\wamp\. Then where to find the php.ini file? And,also how to avoid manually typing the path http://localhost/ 'programename'.php in my browsereverytime I have to execute a program in browser? Is there a way to run it in my browser just by RClicking on the "program name" in the test folder( I have created a "test" folderunder c:\wamp\test)?
Also, in my PHP Folder I have many php files with various extensions but none exactly with the .ini extension.There is one php configuration settings notepad file,a php Application (CLI) file, php Application (CGI/Fast CGI) file,php-win(CLI) file,php.ini-dist,php.ini-recommended file and 2 registry files - pws-php5cgi,pws-php5isapi. ...So many files with the name 'php' are there...which one to copy??
to avoid typing programname change the page name to index.php. the "There is one php configuration settings notepad" is the ini file, but if the above worked leave it alone