Feed Rss



Posts Tagged ‘PHP

Mar 12 2008

WordPress TinyMCE Image Upload Plugin

After many hours looking and looking for a plugin for TinyMCE i finally found one that actually worked quite well and was what it said it is .. An actual image upload plugin for WordPress's TinyMCE ... ! Take a look here: http://www.soderlind.no/archives/2006/01/03/imagemanager-20/ Download here: http://www.soderlind.no/download/ImageManager2.41.zip I know someone will really appreciate this post as [...]

tag: , ,


Feb 28 2008

Tag Cloud v2

category: PHP,Tutorials author: lotsofcode

Please check out the demo page for examples on how to use the new functions available in this version. Some of the new features included in the new tag cloud script are: Link and URL Assignment Additional attribute assignment e.g. title etc Add styles and colour options to each tag Set a limit to the [...]

tag: , , , ,


Feb 27 2008

Tag Cloud

category: PHP,Tutorials author: lotsofcode

Tag Cloud Script (Version 2) is now Available, with more customizable features Introduction In this tutorial i am going to show you how to create a basic word / tag cloud using php and utilizing php classes for easy inclusion. I am going to create a class based cloud, this is because it will be [...]

tag: , , , ,


Feb 27 2008

Var Vars

category: PHP,Snippets author: lotsofcode

Var vars can be very handy, you can use them to associate a name to a variable. <? $my_soon_to_be_variable = 'wow_my_variable'; $$my_soon_to_be_variable = 'Now it's a VAR VAR'; // It's a var var echo $wow_my_variable; // That's right, it's a variable ?>

tag: , ,


Feb 27 2008

Sorting Arrays

category: PHP,Tutorials author: lotsofcode

You can sort an array in many different ways using PHP using many different functions, here are a few. sort($array); asort($array); ksort($array); These three different sorting functions all can be sorted in ascending order. The reverse functions are: rsort($array); arsort($array); krsort($array);

tag: , ,


Feb 27 2008

Session based coordinates mapper

category: PHP,Projects author: lotsofcode

This is a very basic clickable image mapper based on coordinates submitted on a form. By using html form elements and php's GD Library extension. It creates a nice little box around the coordinates you click on and stores them into the session super global. This would work well if integrated with a database to [...]

tag: , ,


Feb 27 2008

Make all letters caps

category: PHP,Snippets author: lotsofcode

A nice little way of making all letters into capitals is to use PHP's inbuilt function strtoupper, like so. echo strtoupper('Hi, i am going to be all in caps in just one mo'); Will print ... HI, I AM GOING TO BE ALL IN CAPS IN JUST ONE MO

tag: , ,


Feb 27 2008

Validation

category: PHP,Tutorials author: lotsofcode

n this day and age and taking into consideration the evolution of the web, allot of things are overlooked when programming and one of the main subjects I see commonly being 223overlooked" is validation. Validation isn't that difficult you just need to question the integrity of every string trying to be parsed, the most common [...]

tag: , ,


Feb 27 2008

Uploading Files

category: PHP,Tutorials author: lotsofcode

Uploading file is one of the most convenient things to do with PHP. This tutorial will cover how to upload files safely and how to ensure no files are replaced in the process. The first step would be creating your form, this will be a basic HTML form with the attribute encrypt added to it, [...]

tag: , ,


Feb 27 2008

Sticky Caps

category: PHP,Tutorials author: lotsofcode

Ever bothered thinking about how to make your site stand out a little more? I was think about this a while back and what came to mind was sTicKy cApS, i think that's the terminology, well anyway here is the code to create "sticky caps". First of all we need a string to apply this [...]

tag: , ,