Some .htaccess tricks to block access to certain files

Show .htaccess samples to block access to certain files you don’t want people to be able to access.

Read more No Comments »

How to get the plugins directory in WordPress

Shows a few useful function to get the path to the plugins directory in wordpress.

Read more No Comments »

PDO in PHP execute() does nothing

The execute() method seems to work fine when executing a stored procedure, but a look in the database shows no data was added.

Read more No Comments »

Install PDO for PHP on IIS 7

How to install PDO for PHP on IIS 7.

Read more No Comments »

Check variable exists and is defined in PHP

Shows how to check a variable is defined and assigned to in PHP.

Read more No Comments »

PHP not outputting errors in browser

PHP sending an empty page to the browser instead of an error message is not particularly helpful when your debugging an application. Here’s how to fix it (works on Linux Mint and probably Ubuntu).

Read more No Comments »

.htaccess not working in Ubuntu?

If your .htaccess file doesn’t appear to be working it’s worth checking it is installed.

Read more No Comments »

Install php5 and MySQL

Run the following commands to install PHP5 and MySQL in Ubuntu.

Read more No Comments »

Add site to Apache2 in Ubuntu

Shows how to add a site to Apache2 in Ubuntu.

Read more 1 Comment »

Run remote desktop in Ubuntu without loggin in

Took me an age to get this working but this script will allow you to run RDP on a server running Ubuntu Server on your network without having to log in (so you don’t have to connect monitors and keyboards everytime you want to restart).

Read more No Comments »

© 2017 Garry Passarella. All Rights Reserved. Facebook Twitter Twitter