Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
DNPL Ban List - Some issues (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: DNPL Ban List - Some issues
#353
Rush (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Krieger-Lawrence Genealogy
Re:DNPL Ban List - Some issues 5 Months ago Karma: 0  
I found the problem

Line 344 reads:
Code:

$htmlsrc .= '</td></tr></table></form>";
Should read:
Code:

$htmlsrc .= "</td></tr></table></form>";
Darn those crazy quotes... Rush
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#354
Dewed (User)
Administrator
Posts: 220
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:DNPL Ban List - Some issues 5 Months ago Karma: 7  
DANG DANG DANG !

Well my own fault of course, but as you may know, enclosing everything in double quotes takes just a fraction more time for PHP to parse than text enclosed in single quotes, so I've been trying to get into the habit of using single quotes whenever possible.

As I understand it, when PHP parses a double quoted string, it basically has to run through it twice, once to get the "static" values and once to look for any variables that need converting.

So this ...

$html .= 'Some static text with a '. $variable .' in it';

is preferable to this ...

$html .= "Some static text with a $variable in it";

of course on a single line like this the difference in parsing time is infinitesimally small, but on larger programs it does add up.

Now if I can just remember to get the single quotes on both ends of the line.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#355
Dewed (User)
Administrator
Posts: 220
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:DNPL Ban List - Some issues 5 Months ago Karma: 7  
The download has been corrected. Thanks again .
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#356
Rush (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Krieger-Lawrence Genealogy
Re:DNPL Ban List - Some issues 5 Months ago Karma: 0  
I've been in the habit of using double quotes and I'm still trying to break that

Yes, $html .= 'Some static text with a '. $variable .', is much better than using the double quotes like I mentioned.

Thanks,

Rush
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008