Skip to main content

ghost3k

  • Home
  • About

Photo uploads randomly failing on Android, and a Chrome bug

24 November 202624 November 2026 ghost3k Leave a comment

Uploading several photos from Android randomly lost some of them, with an error about “permission problems”. It turned out to be a Chrome bug: the photo picker’s files get a new modification time (mtime) when the kernel drops its cache, and Chrome then refuses to read them.

Read More

There’s a storm coming… PHP2Shell and the AI “help”

1 November 20261 November 2026 ghost3k 1 Comment

A critical PHP vulnerability, and Claude Code confidently suggesting fixes that would have left my server wide open.

Read More

Classifying SunPhoto users from 100k album names

24 July 202624 July 2026 ghost3k Leave a comment

I needed a rough way to understand what kinds of users and communities still exist on SunPhoto. There was no category field I could query. No clean list saying this user is a pigeon breeder, this one collects African violets, and this one runs an old roleplay account based on some TV series. What I […]

Read More

Setting up wildcard ssl certificates from Let’s Encrypt in Debian 8 Jessie using PowerDNS verification

13 November 201813 November 2018 ghost3k Leave a comment

This is a very rough guide on how it can be done on an old Debian release, like Jessie (debian 8). There might be something missing, or it might break some stuff for you. Please read everything before starting, you might not wanna do some things or they might not be ok for a production […]

Read More

Remote reboot / keepalive using watchdog

9 December 20169 December 2016 ghost3k Leave a comment

I needed something that can do the following: – automatically reboot if another server goes missing/offline – reboot if instructed by another server – it must be failproof and work in all conditions (bad hardware, bad memory, lots of errors) Why? Because I want more control, more automation and don’t want to depend on datacenter […]

Read More

Fixing MySQL / InnoDB index corruption

25 June 201625 June 2016 ghost3k Leave a comment

Index corruption is usually a very rare issue, caused either by bugs in MySQL or hardware problems. Here’s how I handled it.

Read More

Maintenance mode on Apache / PHP using .htaccess and mod_rewrite

7 June 20167 June 2016 ghost3k Leave a comment

There always come a time where you need to temporarily stop a site for some required maintenance. The simplest quick&dirty method would be to stop the web server, but it’s not pretty for the users and also it brings down all the sites you are hosting. Another method (which I’ve used in the past) was […]

Read More

MySQL – Copying tables/databases without using mysqldump

18 February 201619 February 2016 ghost3k Leave a comment

Mysqldump must be one of the most frequently used MySQL utiliies. It’s very easy to use to peform backups with it and it’s reliable. And since its output is a set of SQL statements it’s easy to understand what’s happening and how to use it. For smallish databases mysqldump it’s perfect, but once you’re getting […]

Read More

jQuery CDN and Internet Explorer 6 & 7

13 February 201613 February 2016 ghost3k Leave a comment

Basically it seems that you can’t use the following combination: https + jQuery CDN (code.jquery.com) + Internet Explorer / Windows XP. Altough jQuery 1.x officialy supports Internet Explorer 6+, this doesn’t work. Why? It seems that the official jQuery CDN can’t handle https connections coming from Internet Explorer running under Windows XP.

Read More

Updating mysql code to mysqli in PHP

10 February 201610 February 2016 ghost3k 2 Comments

There are a few different ways of accessing MySQL from PHP. Historically the mysql extension was the only way until PHP 5.0 (circa 2004). After that mysqli appeared, which is an improved version of the older mysql driver. And also PDO, which gives you an abstraction layer for different databases. Unfortunately there’s still a lot […]

Read More

Posts pagination

1 2 Older posts

Categories

  • linux
  • php
  • webdev
  • mysql
Theme by Colorlib Powered by WordPress