• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic PHP question

#8
(08-08-2019, 09:27 AM)John_Betong Wrote: > @includebeer 
> You're just making the computer work harder for nothing. Static HTML will always render faster.

The PHP script is a single block and I think vastly reduces processing because it eliminates the need to jump in and out of HTML script to insert variables.

I'd be curious to see benchmark and memory usage on this. I'm not convince your method performs better than plain HTML with some PHP variables but I guess it's a matter of personal preferences.

But I must say this is some weird code formatting! 

PHP Code:
PUBLIC function htmlHeader
(
 
 string $title PLATFORM .' - A wonderful book search utility'
 
 string $desc  'Yes we have no description???'
)
:
string // $result 
Test your translation files with Translation Tester
Reply


Messages In This Thread
Basic PHP question - by ronniebel - 08-06-2019, 04:22 PM
RE: Basic PHP question - by includebeer - 08-06-2019, 05:14 PM
RE: Basic PHP question - by John_Betong - 08-06-2019, 11:12 PM
RE: Basic PHP question - by albertleao - 08-06-2019, 11:20 PM
RE: Basic PHP question - by includebeer - 08-07-2019, 02:57 AM
RE: Basic PHP question - by dave friend - 08-07-2019, 06:28 AM
RE: Basic PHP question - by John_Betong - 08-08-2019, 09:27 AM
RE: Basic PHP question - by includebeer - 08-08-2019, 10:12 AM
RE: Basic PHP question - by dave friend - 08-08-2019, 12:10 PM
RE: Basic PHP question - by kilishan - 08-08-2019, 02:27 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.