2007/03/12

How to schedule the deletes task

  1. Open C drive. Create a new folder named “tool” and copy “mydel.bat” into “C:\tool”
  2. Open “mydel.bat” using NOTEPAD. Change C:\ “documents and settings”\Cindy\“my document”\test to the path of back up folder. E.g C:\masslynx\systembackup new line: C:\masslynx\systembackup\*.* save the file.

    echo y del C:\"Documents and Settings"\Cindy\"My Documents"\test\*.*

  3. Run schedule task
    Start
    All programs
    Accessories
    System tools
    Schedule task
  4. Click “add scheduled task”
    next
    Brower to find the file at “C:\tool\mydel.bat”
    schedule time (two steps)
    User name is on the screen or = full computer name\user name
  5. Right click “my computer”
    Properties
    Find computer name
    User name is the log in name
    Password is the log in password
    Click finished without check the option of “open advanced….”

2007/03/08

my $line_old = $_; my $line = $line_old; my @lines = split (/,/ , $line); foreach my $item (@lines) { do something } $line = join ("," , @lines); ####split does not take the trailing empty element if ($old_line =~ /.*(,+)$/) { $line .= $1; }

2007/01/16

GD graphics library in PHP

GD 2.0 or later (built in to PHP since version 4.3 or so, but you might need to recompile PHP or contact your host if it's not working).

GD is the graphics library that ZenPhoto is based on. Normally, it should come already compiled in with your PHP executable, but as I found out, it's not always the fact.

Here's how to enable GD2 in PHP:
1) If you have access to your php.ini file...
• Open it up in your favorite text editor and look for the following line (near the middle):
;extension=php_gd2.dll
change it to
extension=php_gd2.dll
(basically, remove the semi-colon in front)
• Save the file and upload it back on the server and overwrite the old file.
• Restart your server
• That's it!

2007/01/15