Skip navigation
.
The PHP WTF
Navigation
About PHPWTF
Submit a WTF
Categories
DB Hoopla (5)
4 days 7 hours ago
Fugly Code (3)
4 days 7 hours ago
Bad Architecture (13)
1 week 4 days ago
Announcements (3)
4 weeks 1 day ago
Wonky Code (16)
4 weeks 2 days ago
Hall of Fame (5)
5 weeks 5 days ago
Browse archives
«
January 2005
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Feeds
Recommended:
RSS 0.92
Sorta broken:
RSS 1
RSS 2
Atom
User login
Username:
Password:
Create new account
Request new password
Home
»
More solutions for idle CPU time.
Add new comment
Submitted by eth0 (not verified) on Wed, 2004-11-03 02:07.
Oh man, what happened to all those dollar signs? O_o
Anyways, here is a little improvement. Where it says:
echo $message;
It should say:
echo "$message";
It's too easy for the server to just print the variable. It must do variable substitution!
P.S.: I've seen lots of echo instructions like the latter in code written by beginners. ^_^
Reply
Your name:
E-mail:
Homepage:
Comment:
*
Formatting guidelines:
You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <p> <br>
Web and e-mail addresses are automatically converted into links.
More information about formatting options
$ Google $
Use Firefox!
Anyways, here is a little improvement. Where it says:
echo $message;
It should say:
echo "$message";
It's too easy for the server to just print the variable. It must do variable substitution!
P.S.: I've seen lots of echo instructions like the latter in code written by beginners. ^_^