學術及資源的交流園地 ^_^

DRAC

最後更新: 2024-04-23

目錄

sed

最後更新: 2019-12-10

介紹

Sed (stream editor)

很詳細的 Documment: http://www.grymoire.com/Unix/Sed.html

目錄

  1. 常用 options
  2. Command
  3. 刪除()
  4. 取代(substitution)
    Use variable in replacement
  5. "|" ":" "@"
  6. print (簡寫 p)
  7. Comments
  8. Print line number with =
  9. Transform with y (1對1的)
  10. Grouping with { and }
  11. Adding(a), Inserting(i), Changing lines
  12. How sed Works
  13. Writing a file with the 'w' command
  14. Change configuration files setting value (ini file)

 

FastCGI

http://xxxx/foo.jpg

http://xxxx/foo.jpg/bar.php

Proxy   ----->    FastCGI Server

SCRIPT_FILENAME = /var/www/foo.jpg/bar.php

cgi.fix_pathinfo = 1

SCRIPT_FILENAME = /var/www/foo.jpg

/var/www/foo.jpg/bar.php
/var/www/foo.jpg

SCRIPT_FILENAME = /var/www/foo.jpg
$_SERVER['SCRIPT_FILENAME']

cgi.fix_pathinfo boolean

Drupal 7

 

 

sqlite DB 位置

sites/default/files/.ht.sqlite

/var/www/sites/default/settings:

$databases = array (
  'default' =>
  array (
    'default' =>
    array (
      'database' => 'sites/default/files/.ht.sqlite',
      'driver' => 'sqlite',
      'prefix' => '',
    ),
  ),
);

 

保護此目錄:

.htaccess

order allow,deny
deny from all

 


 

由 Program 上的角度來看

modules/field/modules/text/text.module

text_summary($text, $format = NULL, $size = NULL)

 

 

RSS feed