Warning: include(/home/girlie/public_html/common/phphead.inc) [function.include]: failed to open stream: No such file or directory in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 3

Warning: include() [function.include]: Failed opening '/home/girlie/public_html/common/phphead.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 3

Warning: include(/home/girlie/public_html/tips/phpscripts/lgf/lgf-reflog.php) [function.include]: failed to open stream: No such file or directory in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 6

Warning: include() [function.include]: Failed opening '/home/girlie/public_html/tips/phpscripts/lgf/lgf-reflog.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 6

Warning: include(/home/girlie/public_html/common/header.inc) [function.include]: failed to open stream: No such file or directory in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 9

Warning: include() [function.include]: Failed opening '/home/girlie/public_html/common/header.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 9

Warning: include(/home/girlie/public_html/common/headerxmltips.inc) [function.include]: failed to open stream: No such file or directory in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 12

Warning: include() [function.include]: Failed opening '/home/girlie/public_html/common/headerxmltips.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 12
[the girlie matters]mini tips: archives may 2003
Warning: include(/home/girlie/public_html/common/pagehead.inc) [function.include]: failed to open stream: No such file or directory in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 23

Warning: include() [function.include]: Failed opening '/home/girlie/public_html/common/pagehead.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 23

Warning: include(/home/girlie/public_html/common/beginbody.inc) [function.include]: failed to open stream: No such file or directory in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 25

Warning: include() [function.include]: Failed opening '/home/girlie/public_html/common/beginbody.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 25

mini tips

protect a single file with htaccess
May 25, 2003

Surround the statements in the .htaccess file with <FilesMatch>...</FilesMatch> tags:

<FilesMatch filename.html>
AuthName "username"
AuthType Basic
AuthUserFile /usr/local/share/httpd/htdocs/yourdir/.htpasswd
require valid-user
</FilesMatch>

where filename.html refers to the name of the single file you want to protect.

permissions for mt-db-pass.cgi
May 25, 2003

Quote from Ben Trott:

If you're running under cgiwrap/suexec, you can set the permissions to 600 (readable/writable only by you). This prevents anyone else on the server from reading it (through the command line, for example).

If you're not running under cgiwrap/suexec, set the permissions to 644.

It doesn't need to be executable; just having it named .cgi makes the webserver try to execute it.

limiting comment text
May 25, 2003

Adding the following onkeyup attribute to your textarea tag will limit text to 20 characters:

<textarea onkeyup="this.value = this.value.slice(0, 20)"></textarea>

Via Stepan.

IP banning wildcards
May 25, 2003

Partial matches work, so yyy.zzz should match xxx.yyy.zzz.

URL to reset activity log
May 25, 2003

If your activity log gets too large, you may not be able to access the page to reset it. Use this URL to reset it instead.

http://your-mt-cgi-path/mt.cgi?__mode=reset_log

Via Stefan Smalla.

IM this article
May 25, 2003

Provide a link to IM an entry with AOL Instant Messenger:

<a href="aim:goim?message=Check+out this+article+at+The+Girlie+Matters:+<MTEntryPermalink>">IM this article to a friend!</a>

file upload bookmarklet
May 25, 2003

Kristine created a file upload bookmarklet in this MT support forum thread; just drag to your toolbar.

file upload

Then right click on it and select properties - change your-site.com to the name of your site, and change blog_id=2 to the blog id of your choice.

there's more...


Warning: include(/home/girlie/public_html/tips/common/sidebar.inc) [function.include]: failed to open stream: No such file or directory in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 103

Warning: include() [function.include]: Failed opening '/home/girlie/public_html/tips/common/sidebar.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 103

Warning: include(/home/girlie/public_html/common/footer.inc) [function.include]: failed to open stream: No such file or directory in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 109

Warning: include() [function.include]: Failed opening '/home/girlie/public_html/common/footer.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 109

Warning: include(/home/girlie/public_html/common/sitemeter.js) [function.include]: failed to open stream: No such file or directory in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 112

Warning: include() [function.include]: Failed opening '/home/girlie/public_html/common/sitemeter.js' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/girlie/public_html/girliematters/tips/mini/archives/0305/index.php on line 112