how-to

  1. Andrew

    PHP Tips and Tricks

    Like Laravel Tips and Tricks, I will post here Tips and Tricks for PHP, but less regularly. If this is something you are interested in, make sure you follow/watch this thread. PHP Tip #1 Here is an example of how to convert an array of paragraphs to HTML string with <p> tags. Personally...
  2. Andrew

    Laravel Tips and Tricks

    Starting today, I will be posting one to two Laravel refactoring tips a week. If this is what you are interested in, you can follow/watch this thread. I will also make it sticky so that it is fixed at the top of the list under the Laravel (PHP Framework) forum. Laravel Tip #1 Here is an...
  3. Andrew

    How to dump variables in XenForo templates?

    To dump / debug a variable in XenForo templates, all you need to do is call the dump() method passing the variable as a parameter: {{ dump($variable) )}}
  4. Andrew

    How to create Cron Job using shell script?

    In this article, I will show you how to create a cron job to automate the /tmp directory clean-up process in Linux. I am going to use the script described in the previous thread about the Linux /tmp directory: find /tmp -type f \( ! -user root \) -atime +5 -delete This script finds temporary...
Top