How To Extract Email Attachments With PHP

Looking for how to extract email attachments with PHP? I was too, because I needed to extract pictures from mail that came in. I’ve been looking around, and it looks like the best thing’s this: PHP Mime Mail Parser Class using PHP’s MailParse Extension. It’s an open-source project hosted on Google Code.

How To Install IonCube Loader On MAMP On Your Mac

MAMP (Mac, Apache, MySQL, PHP) is a package that allows you to run your own PHP-enabled web server with MySQL easily on your Mac. However, if you’re looking for additional libraries like the ionCube libraries, you’ll need to download and install them yourself. That’s not bad because it’s not hard at all. What you need is to go to http://www.ioncube.com/loaders.php, and download the ionCube loader file for your O/S version. For example, I’m running a Macbook Pro unibody, and so

Continue Reading

How To Activate/Install GD Library In WAMP Under Windows

Some projects require activation of the GD library, and this is especially true when you have to do image manipulation with your PHP script. If you’re using WAMP (Windows Apache MySQL PHP) in Windows, then good news: WAMP comes with GD library, just that it’s not activated by default. To activate the GD library, go to your WAMP’s PHP.ini file, which can be found by clicking on the WAMP icon in your system tray. Go to “Config files”, and you’ll

Continue Reading

Simple Way to Relay or Pass POST Data From A Page to Another Without .htaccess, Even Cross-Domain

So I had a page which I absolutely could not change or rename. The challenge was, this page would normally receive POST data, and I had to pass or relay this POST data to another page, which resided on another domain. I tried .htaccess, but that didn’t work, so I figured that I had to do some programming. It was simple enough with the curl library to do so, and here it is – The method to pass POST data

Continue Reading

PHP Code to Detect IE Browsers

The extremely buggy way that Internet Explorer renders CSS annoyed me again, this time because of the different way it displays elements with z-indexes. I spent a couple of hours trying to fix the bug, failed, and decided to go about it another way. The problem lay in a CSS/Javascript rotating banner gallery ,so I used PHP to redirect all Internet Explorer users to a static version of that instead. Here’s the PHP code that I used. This is the

Continue Reading

Protect Your Wireless Network with MAC Address Filtering…A Bad Idea

To secure your wireless network, you can use a variety of means, and one of which is by selecting only what MAC addresses are allowed. This is known as MAC filtering, and it can serve as a basic deterrent against most opportunistic attackers. However, just using MAC filtering alone will probably be a bad idea. It doesn’t take much determination or knowledge at all to spoof a MAC address. In fact, it’s actually quite easy to spoof a MAC address,

Continue Reading

Edit .htaccess to increase PHP’s max file upload

To increase the upload file size limit on your website, you need to edit PHP’s configuration settings. Unfortunately, not everyone has their own web server, so most of the time people are constrained by the limits of shared hosting. But you can still modify your base php.ini file by creating your own php.ini with the edits that you want. Your php.ini file needs to be in every folder that’s going to be affected, or at least in the folder where

Continue Reading

Sliding Sidebar