Archives For PHP

General articles about PHP, useful code snippets, PHP tutorials, etc.

I wanted to have a sidebar widget for my website displaying the latest movies I’ve rated on IMDb, so I threw this project together and have been using it for a while now.
Let’s run through some bits of the code together 🙂

It looks like this:

If you simply want your own, visit https://dev.asbra.net/imdb/ to generate it.

You can find the full code for this entire project on my GitHub repo

Continue Reading…

PHP Steam Profile Widget

March 6, 2016 by Asbra — Leave a comment

This article will show you code, as well as a run-down of it, for my Steam profile widget.

If you simply want your own, visit https://dev.asbra.net/steam/ to generate it.

You can find the full code for this entire project on my GitHub repo

So, what I set out to make was a simple way to display a link to my Steam profile, as well as some statistics and status.

First of all you’re gonna need to get your Steam Web API Key

Continue Reading…

Quick script I wrote up for someone a while ago, might as well post it.
Scrapes a given section on Craigslist, checks titles for specified keyword(s) and emails you matching posts.

Utilizes my simple PHP cURL wrapper so you’re gonna need to get a copy of that too 😉

Continue Reading…

Cleaning up a hacked WordPress

April 23, 2013 by Asbra — Leave a comment

Recently I received a few spam emails in the “LinkedIn” campaign and analyzed them, they led to multiple hacked Wordpress sites. Here’s a brief analysis of the malware uploaded to the site and the damage they caused the site-owner.

As well as a brief introduction to Wordpress security, what can be done to protect your Wordpress-based websites.

Continue Reading...

Learn how to make a BattleKnight bot that can attack, quest, do everything for you. This is part 2 of the tutorial-series.

Continue Reading...

This will be a long article, the topic is creating a bot for playing browser games while you sleep, a friend asked me specifically for a BattleKnight bot which would play the game while he is in school or sleeping.

This type of games (browser games) are generally impossible to make a hack/cheat for. If you see any BattleKnight hack or BattleKnight cheat online, or another method that claim to give you gold or rubies it is surely fake and/or a virus, trojan or keylogger. Beware of such attempts to compromise your computer.

Continue Reading...

An example on how to easily create an RSS-feed using PHP, with a custom class that wraps PHP5’s XMLWriter for creating an XML-document.

Continue Reading...

Example and tutorial of with my PHP cURL wrapper-class which is easy & quick to use in your projects. Shows you how to log in to a website using PHP cURL.

Continue Reading...

A basic tutorial on website compression, how to cache web pages in a way so that PHP does not have to be run each time a visitor arrives to your site.

Continue Reading...