Ready for clone https://github.com/sorenpeter/pixelblog
A few years back I made the resolution to never execute PHP code again if I can help it. 8-)
Sadly the same here too, I used to actually be a PHP Web Deveoper once upon a time, never again 😅
But congrats @darch@twtxt.net I hope pixelblog flouries! Who knows maybe we can incorporate some ideas intp yarnd
over time 👌
@darch@twtxt.net Why PHP based and not pp
based?
@adi@twtxt.net Because apparently PHP is still commonly found in many cheap/free? hosting providers where allegedly nothing else is allowed? 🤔Which to be frank, I don’t really get because Lightsail is essentially free, Vultr VMs are a mere $2.50/month and I’m sure you could do interesting things on some rented space from a friend’s server or infra 😅
@lyse@lyse.isobeef.org Thank for the PR fixing the typo and for reminding me to get rid of the apple garbage files.
@lyse@lyse.isobeef.org So to sanitize the files going thought upload.php
is something like preg_replace(“/[^a-z0-9\.]/”, “”, strtolower($str)); // from:http://www.touchoftechnology.com/simple-way-to-clean-up-filenames-in-php/
enough or should I use this https://gist.github.com/sumanthkumarc/2de2e2cc06c648a9f52c121501a181df or something completely different?
I relation to checking if the uploaded files is in fact images it is this code from https://www.w3schools.com/php/php_file_upload.asp good?
@prologic@twtxt.net You are more than welcome to nick what every ideas and features you like - the only really new think pixelblog is adding is the gallery view, where you are free to rewrite it go.
@adi@twtxt.net and @prologic@twtxt.net to the question about PHP. My goal is to make something anyone with ftp access can deploy in a hour without having to use a command prompt. SSH access also often comes at a extra fee if available at all. I know PHP is not the most efficient out there compared to go and static site generators like pp, but my target users are not professional programmers like you guys - pixelblog - a twtxt frontend not just for hackers™
@darch@twtxt.net I understand your points, but this is very cheap https://tinykvm.com/, not trying to convince you of anything.
@david@netbros.com where is the fun in that 🤣