#50097 [Bgs]: The code on your first page didn't work
| From: | rquadling@php.net | Date: | Fri, 06 Nov 2009 10:15:36 +0000 |
| Subject: | #50097 [Bgs]: The code on your first page didn't work | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3065@lists.php.net to get a copy of this message | ||
ID: 50097
Updated by: rquadling@php.net
Reported By: farfallabill at isp dot com
Status: Bogus
Bug Type: Documentation problem
Operating System: XP
PHP Version: 5.3.1RC3
New Comment:
Can you rename the .php file as .txt, so we can see EXACTLY what you've
got please?
Previous Comments:
------------------------------------------------------------------------
[2009-11-06 01:52:49] rasmus@php.net
Your copy-and-paste did something weird then. That code is fine and
copying and pasting it from this bug report works fine.
------------------------------------------------------------------------
[2009-11-06 01:49:00] farfallabill at isp dot com
Description:
------------
I swept my mouse over your code on the "your first" page, went Ctrl C
and Ctrl Ved it into a text file that I changed the txt to php on, sent
it to my public html directory at WebHostingPad.com, then typed in
"http://www.bliss-fire.com/Experiments.php"
into my Firefox 3.5.2 and I
got back:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in
/home/sle97ncr/public_html/Experiments.php on line 6
(I'm damned if I know what version of PHP they have. I selected the
first one because you would let me select "I dunno".)
Reproduce code:
---------------
---
From manual page: tutorial.firstpage
---
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
Expected result:
----------------
Hello World
Actual result:
--------------
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in
/home/sle97ncr/public_html/Experiments.php on line 6
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50097&edit=1