Archive for the ‘Web Programming’ Category

Error: data.dircontent is undefined [***] plugins/Archiv/php/fileLoader.php?file=javascript 165 tinymce archiv

I really needed a file and image manager plugin for tinyMCE. As most of you know the official tinyMCE file manager isn’t free so after a few searches i ran over Archiv. Archiv is a very nice and free image manager. You can find the official website here.
The plugin is easy to integrate but a [...]

Leave a Comment

HowTo: test if suPHP works with your apache installation.

I wrote this small script to verify that my suPHP was infact working on the server.
Copy & paste this in to a file test.php on your server and run it on your favourite browser.
If the current script owner is the same as the user that php runs as, than suPHP works.
<?php
echo ‘Current script owner: ‘ [...]

Leave a Comment

Fix: Internet Explorer 6 div height when less than 20px

Empty divs in IE6 seem to have a minimum height more or less equal
to the current line-height so if you want to have an emty div of 10px for example IE will render it as
being 20px in height.
To fix this add a html comment inside the div:
<div id=”smalldiv”> <!– –> </div>d

Leave a Comment

HowTo: write circular text with php and gd

I had a project in which I had to generate an image based on a string. The problem was that the text had to be displayed circulary. After hours of internet searching I’ve came across http://www.phpgd.com and found this piece of code which did the job quite nicely.
<?php
$text = “Around and around around and around [...]

Leave a Comment

HowTo: Disable yellow colored inputs in firefox because of google toolbar

You might have noticed that once installed, google toolbar will automatically fill with yellow the e-mail inputs in your nicely developed website. Now this might be ruining your design and functionality when you’ve got a dark background and a light color for the inputed text ( white or yellow ).
You can easily get rid of [...]

Leave a Comment

HowTo: Create Picture Thumbnails with PHP and GD

Hi, first of all I’d like to wish you all a Happy New Year. Hope you enjoyed your holidays, because I know most of us are now behind the desks again, working.
Now, here’s a nice PHP plugin you can use to generate thumbnails in PHP. It’s called phpThumb and you can get it from phpthumb.sourceforge.net.
First [...]

Leave a Comment

URL rewriting with .htaccess

If you’re looking for this, you know why you need it. But just in case you’ve stumbled upon this and are curious, URL rewriting is useful for several reasons:
1. Accessibility: most people will rather remember a path that looks like http://www.example.com/products/shoes/12/ than http://www.example.com/index.php?category=products&type=shoes&productid=12
2. Security: granted, this is security through obscurity, but at the very least [...]

Leave a Comment

Javascript Website Preloader

Here’s a nice java based website preloader I found recently. I needed it for a project and I think this might be useful to others too. Credits for this go to USINGIT.COM.
So here’s how you should use it :
Copy the following lines in to the header of the webpage:
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
function clearPreloadPage() { //DOM
if (document.getElementById){
document.getElementById(‘prepage’).style.visibility=’hidden’;
}else{
if [...]

Leave a Comment

Web Brands