lecture3a.wampmamp - Localhost/hello.php In firefox for...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
1 DIG 3134 Lecture 3a: WAMP and MAMP Michael Moshell University of Central Florida Media Software Design
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 The Objective: Learn how to execute your PHP code on your own computer Macintosh: the MAMP package Windows: the WAMP package
Background image of page 2
3 Step 1: Get the Package www.wampserver.com www.mamp.info Note: wamp works OK as-is, usually. MAMP requires some doctoring. We will see if this is needed, a bit later.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Step 2: Hello World <?php Print "hello world!"; ?> Create this code using Dreamweaver, CodeLobster, or Notepad++. MAMP: store code in mamp/htdocs/hello.php WAMP: store code in wamp/www/hello.php
Background image of page 4
5 Step 3: Run the code In firefox for Windows, type:
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Localhost/hello.php In firefox for Macintosh, type: Localhost:8888/hello.php You should see hello world! 6 Step 4: Blank screen? Many possible reasons exist. If you have A syntax error in PHP, maybe it won't Display. Let's make a deliberate error To verify that we can see error messages. &lt;?php Print &quot;hello world!&quot; And more junk here // NOT good php! ?&gt; 7 Step 5: Syntax errors The missing semicolon below should have Produced a red error message. &lt;?php Print &quot;hello world!&quot; And more junk here // NOT good php! ?&gt; If not, see the 'fixing php.ini' item on My web page or come SEE ME!...
View Full Document

Page1 / 7

lecture3a.wampmamp - Localhost/hello.php In firefox for...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online