Php webtags: Difference between revisions

14 bytes added ,  07:29, 20 April 2020
m
mNo edit summary
Line 12: Line 12:


If you adopt PHP Hypertext Processing on your web site; there are two main approaches:
If you adopt PHP Hypertext Processing on your web site; there are two main approaches:
#Either simply [[Customised_templates|customise]] the standard template pages by adding some PHP script that will be obeyed after the template processed by Cumulus has been uploaded to your web server, but before the resulting HTML is sent to the browser.
#Either simply [[Customised_templates|customise]] the standard template pages by adding some PHP script that will be parsed (interpreted) after the template processed by Cumulus has been uploaded to your web server, but before the resulting HTML is sent to the browser.
#Or write a web page including PHP code that does not need to be processed by Cumulus. To get the information that Cumulus provides, all your new pages can "'''include'''" (if you want the page to fail without that cumulus derived information - use "''require''" instead) one, or more, PHP script file that Cumulus '''has'''previously  processed. In that processing all the [[webtags]] values were assigned to PHP variables.  This second approach is more efficient for those using PHP on their website as the actual web pages are produced from PHP scripts on the web server and do not need to be uploaded each time the numbers they output change. In general each full HTML structure definition for a web page is a far larger uploading burden than the file containing the variables.
#Or write a web page including PHP code that does not need to be processed by Cumulus. To get the information that Cumulus provides, all your new pages can "'''include'''" (if you want the page to fail without that cumulus derived information - use "''require''" instead) one, or more, PHP script file that Cumulus '''has'''previously  processed. In that processing all the [[webtags]] values were assigned to PHP variables.  This second approach is more efficient for those using PHP on their website as the actual web pages are produced from PHP scripts on the web server and do not need to be uploaded each time the numbers they output change. In general each full HTML structure definition for a web page is a far larger uploading burden than the file containing the variables.


5,838

edits