hosting

Send files via PHP

0

So for no reason other than ‘I can’ I decided to chuck a few ‘Trance in Motion‘ sets onto my server. Soon after I realised how dangerous that could be for my bandwidth so I set off to look for a hot-link protection solution.

I searched the web for hours and I just couldn’t find the right keywords to get it (honestly I tried everything).

After much failed attempts, I finally found a useful PHP script that allowed me to send files not normally accessible by the public and also doesnt require much to set up.

Zubrag’s Download Script.

http://www.zubrag.com/scripts/download.php

The only thing I really needed to change was the directory where the files are stored and also I had to add the MIME information for .rar files (incidently its application/x-rar if you were interested) because for some reason he limited the file types to a select few. Now I think about it, that’s actually a good idea since there could be, for example; a .htaccess file.

I should also note that despite there being multiple ways of getting apache to process PHP inside HTML, I never got it to work properly. So I ended up changing all of my site over to .php files.

I thought the W3 validation might fail after I did that, but it seems to be perfectly fine with it.

Anyway, now all my downloads are processed by http://downloads.derrynjones.com/download.php.

Now unfortunately this doesnt stop direct downloads, but it’s a step in the right direction. I think.

Actually, it also has the ability to restrict downloads to a specific address. So you can have it only allow downloads from downloads.derrynjones.com for example. Cool stuff.

Derryn,

 

 

Mystique theme upgrade

0

DON’T DO IT!

I’m sure it’s great and all, but in my opinion a) it doesn’t look as good as the last version b) its not in the WordPress directory and c) all of the customisations made to the extra nav buttons are useless.
Cheers to the author of this theme, but no thanks to the update.

So… its been a while

0

So yeh its been a few days since I’ve posted here, and much has happened since my move to the new domain. I’m thinking I’ll split things up so as to ensure things are more easily found via Google.

I’ve been working on the actual site “DerrynJones.com” and so far so good. This time I actually bothered to plan and design the whole thing in advance (WOW, apparently I actually learnt something in my high-school IT classes!). Though before that I needed to brush up on the latest standards for HTML design. To do that I used one of the templates in Adobe Dreamweaver and used it as well just that, a template. This taught me 2 things: 1) Tables are no longer the layout manager of choice, <div> and <id> are used and 2) External CSS is the way to go for styles.

So I knocked it all up as per my plan and I didn’t like it. So I went back to some of my previous website projects and drew inspiration. Luckily most of the changes were purely cosmetic and only required minor changes to the external CSS style sheet. Overall I’m pretty happy with it now, and because I used colours similar to my blog, they blend quite well.

I actually found it much easier to make a ‘modern’ website than using tables to make a layout changes and embedded html tags to define styles.

So I used <div> tags to define each area of the page and <p class = classname> to apply styles; way easier than applying individual font parameters.

I must say its great that we are seeing more modular design when it comes to anything software related.

Also, I decided to check my site against the W3C validator for XHTML Transitional 1.0 and also CSS 2.1. Surprisingly I passed on both so I added their buttons to the bottom of my page to add a little more ‘professional’ touch =D.

Well I think that’s about it for the second.

Coming up next: Bloggin’ along…

Go to Top