We use cookies to ensure that we give you the best experience. If you continue using this website, we'll assume that you are happy about that.
Larry's Avatar
Larry (Jenolan) Lewis

Coding is what defines me, especially when it doesn't… also.

Jenolan Caves

This is not Jenolan Caves, we use the Jenolan name because we love the Jenolan, Abercrombie, Wombeyan, & Yarrangobilly caves.

Who's Active

Copyright © Larry Lewis 1973-2019 Jenolan's CESS. All Rights Reserved.

All Trademarks and Registered Names are held by their respective owners.

HTML5 Powered with Connectivity / Realtime, CSS3 / Styling, Graphics, 3D & Effects, Performance & Integration, and Semantics

CESS Code v0.14

About  ·  Terms  ·  Privacy  ·  Cookies
  • Check through your web sites for those pesky PHP error logs

    # Put the line below (without the #) into your cron "crontab -e" this one is hourly
    #0 * * * * /root/bin/sendlog > /dev/null 2>&1
    rm $LOG &> /dev/null
    # Do not check these direcorties
    IGNORE=".cpan .cpanm .cpcpan cPanelInstall clamav cpeasyapache virtfs"
    # Get list of all directories
    LIST='ls /home'
    for path in $LIST; do
            # set skip variable
            if [ "$IGNORE" != "" ]; then
                    for i in $IGNORE; do
                            [ "$path" == "$i" ] && skip=1 || :
            if [ "$skip" == "0" ]; then
               #echo "--------------------------------------------------------" >> $LOG
               #echo "Scanning :: $path" >> $LOG
               #echo "--------------------------------------------------------" >> $LOG
               ERRORS='find /home/$path -name error_log'
               for err in $ERRORS; do
                    echo "--------------------------------------------------------" >> $LOG
                    echo "Error File :: $err" >> $LOG
                    echo "--------------------------------------------------------" >> $LOG
                    cat $err >> $LOG
                    rm $err &> /dev/null
    if [ -f $LOG ]
        mail -s "PHP Error Log" myname@example.com < $LOG
    rm $LOG &> /dev/null
  • Most php servers require that files be '-rw-r--r--' and directories 'rwxr-xr-x' running the example in the directory you want will change all these recursively for you.

    find . -type f -exec chmod 644 {} \;
    find . -type d -exec chmod 755 {} \;
  • This will create a 'shadow at he top of your page.

      content: "";
      position: fixed;
      top: -10px;
      left: 0;
      width: 100%;
      height: 10px;
      -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
      -moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
      box-shadow: 0px 0px 10px rgba(0,0,0,.8);
      z-index: 100;