What is clickTAG?
PHP data types are divided in two main categories: scalar and composite.
Apache suEXEC is a feature of the Apache Web server to give more security to the files in a shared server (virtual host).
Most websites are hosted at commercial web hosts who are able to give their customers run scripts, suEXEC allows the cgi files to be executed with the account of the owner, so it can cause some risks.
One of the most important parts in any programming language is comments. Is a very good practice to comment every part of the code (variables, functions, classes, etc).
PHP has several types of comments:
Single line comment:
Single line comment (another option):
Multi line comment:
API Documentation:
The code in PHP must be inserted into a text file using a special tags, then PHP will process everything between those tags, the rest is just ignored. There are the types of tags:
In Drupal we can customize everything, even the search forms. This example show you how to make a custom search block. First you have to make a file named "search-block-form.tpl.php" with this content:
even if it isn't different from the one in the core distribution; otherwise the preprocess function isn't executed.
After that you must to open the template.php and use the mechanism of preprocess function to modify template variables before they are passed into the template files.
When you make a theme sometimes need to place a block directly into the theme instead of using the blocks section. For example, you need to insert the block in the page.tpl.php file what have to do is:
Print comments block:
Print locale block:
Print search block:
Some people prefer use trailing slash for urls for example http://example.com/something/ instead of http://example.com/something, actually, according to RFC 3986 it does make a difference. Any two URLs are not a character-by-character match (ignoring URL encoding which does not apply in this case) are considered to indicate different resources.