Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2007, 03:53 AM
Registered User
 
Join Date: Sep 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Program Code Errors

Hi :)
A few days back I purchased this book- "Beginning PHP5,Apache,MySQL Web Development" by E. Naramore,J.Gerner,Stolz,M.Glass,Yann Le(Wrox Publication).
I have installed WAMP5 version(1.7.3).But after running this program code from page 34-35 of the book I get this output in my Firefox browser(latest version)-
<html>
<head>
<title>My 1st Program</title>
</head>
<body>
<?php
echo "<h1>I'm a lumberjack.</h1>";
echo "<h2>And I'm okay.</h2>";
?>
</body>
</html>

Output:-

I'm a lumberjack."; echo "
And I'm okay.
"; ?>

Why is wrong with the code? I am getting the 'echo,'; ?' which are syntax of the program as output!!Also, the <h1> tag doesn't work!!!
Is my configuration wrong?
Also,I have saved the notepad files with .php extension in a folder called "myprog" in the c:\wamp\www\myprog folder.
But when I select the files for running from Firefox browser,it doesn't run.Why i don't know...I have to type http://localhost/programname.php every time I have to run a program in the browser!!
Or there is a shortcut?When I select File->Open File -> program name the program doesn't run.
I have IIS installed but I have to stop these service manually every time before I start Apache Monitor & wampServer.
Do i also need to start the apache monitor for running PHP
:(
I am new to PHP programming so please help me...
Thanks in advance





Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing code and errors dba BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 January 15th, 2008 01:34 PM
can you help me find the errors with the code ousys Java Basics 7 June 15th, 2007 07:18 AM
Chapter 4 Example Code Errors beckerm13 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 September 28th, 2006 03:40 PM
Printing Errors / Example Code Fire BOOK: Access 2003 VBA Programmer's Reference 0 April 12th, 2005 02:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.