3.128.199.88 |    

Navigation

Google Advertisement

Diese Funktion liest eine Datei in einen String und gibt diesen zurück. Ich nutze es um HTML Template-Dateien einzulesen.

return_template
  1. // *************************************************************
  2. // This function load the current defined template file. If the
  3. // template file not exists, the function dies with an error message.
  4. //
  5. //      (string) string return_template( (string) $file )
  6.  
  7. function return_template ( $file ) {
  8.  
  9. (string) $tpl = implode( '', file( $file ) ) or
  10.     die ( "Can't load \"".$file."\" as template file!" );
  11. return $tpl;
  12.  
  13. }
Parsed in 0.009 seconds at 44.79 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 1 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)