Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10440

View the profile for g1smd Send g1smd a private message

Posted: 2005-Dec-10 00:17
Edit Message Delete Message Reply to this message



I found this to be useful, discovered while browsing for something else...

http://evolt.org/these-things-i-know-php-tips



Note for additional posters: we don't normally allow links in posts; we never allow self-promotion.
This thread WILL be closely monitored and heavily moderated.




IanK
Joined: Dec 07, 2003
# Posts: 90

View the profile for IanK Send IanK a private message

Posted: 2006-Feb-03 00:48
Edit Message Delete Message Reply to this message

A note about one of the tips...

What is the the super-secret of keeping those scripts speeding along the rusty pipes of your server? Avoid double quotes at all costs. Even if you are working with a variable and think you need double quotes, it is more efficient for PHP to execute this:

echo $mytext . 'Lisa needs braces.';
As opposed to this bit of molasses-like code:

echo "$mytext Lisa needs braces.";


This hasn't been true for a year at least (i.e. you won't find a server anywhere with a version of php where it's still true). Both methods now run at about the same speed. However, using double quotes where there isn't a variable is obviously still a no no.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions