Home » 2022

Output or Display an Image in the Browser from PHP

PHP Output Image File

This article will show you how to output or display an image in the web browser from PHP, with a quick copy & paste code snippet. Images in PHP We’ve covered how to resize images in PHP using the GD library. Once an image is created, it can be saved or returned to the browser to be displayed without saving it. Outputting/Displaying an Image in PHP without Saving it The following PHP code snippet creates an image object and returns it without saving it: // The header() function is … Read more

Categories PHP

Home » 2022

How to Set up a Samba/SMB Windows Share in OpenWrt with LuCi

OpenWRT Samba SMB Share LuCi

This super quick tutorial will show you how to set up a Samba/SMB Windows network share on an OpenWrt device. This tutorial works best if you have some extra storage available for your file share – check out our article on adding extra USB storage to OpenWrt here. What is Samba? Samba is a file sharing package which provides network file shares compatible with the SMB and CIFs protocols used by Windows. Install Dependencies/Packages You will need to install two packages to set up the network … Read more

Home » 2022

How to Locate the PHP.ini Configuration File [Linux/Ubuntu]

Locate PHP ini configuration

Here’s a quick tip on how to locate the php.ini configuration file which is currently in use by PHP on your system or web host. Locate PHP.ini From the Command Line You can usually find out which php.ini file PHP is pulling its configuration from from the command line. The php -i command will print the information about your current PHP environment and grep will filter that output to only lines containing the string ‘Configuration File’, including it’s location: php -i | grep ‘Configuration File’ Finding the PHP.ini Configuration in Use for … Read more

Categories PHP

Home » 2022

Browsing the Internet on a 1993 Windows 3.11 All-In-One PC

Internet Browsing in Windows 3.11 via Raspberry Pi

I found some cool software called Web Rendering Proxy that lets your browse the internet on vintage computers and decided to try it out – here’s how it went. The result of this was that yes, I could browse the internet, and that yes, it was a completely miserable experience. But it was worth it anyway. What’s Involved A computer with an ethernet adapter Windows 3.11 For Workgroups Google will help you find a copy if you need one Microsoft TCP/IP-32 3.11b for Windows for Workgroups Again, … Read more