#50097 [NEW]: The code on your first page didn't work

From: Date: Fri, 06 Nov 2009 01:49:01 +0000
Subject: #50097 [NEW]: The code on your first page didn't work
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3062@lists.php.net to get a copy of this message
From: farfallabill at isp dot com Operating system: XP PHP version: 5.3.1RC3 PHP Bug Type: Documentation problem Bug description: The code on your first page didn't work 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 bug report at http://bugs.php.net/?id=50097&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50097&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50097&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50097&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50097&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50097&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50097&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50097&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50097&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50097&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50097&r=support Expected behavior: http://bugs.php.net/fix.php?id=50097&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50097&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50097&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50097&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50097&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50097&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50097&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50097&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50097&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50097&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50097&r=mysqlcfg

« previous php.doc.bugs (#3062) next »