Saturday, October 18, 2008

not posted for a while http://www.chimera.com.au/

http://www.chimera.com.au/

design
http://www.chimera.com.au/

new site build - http://www.streamer.net.au

The holy grail, CMS controlled Flash site with seamless google indexing, luvly!

http://www.streamer.net.au/

design
http://www.streamer.net.au

strip special character html

from
http://www.php.net/mysql_real_escape_string

function mysql_prep($value){
$magic_quotes_active = get_magic_quotes_gpc();
$new_enough_php = function_exists("mysql_real_escape_string");
// i.e PHP >= v4.3.0
if($new_enough_php){
//undo any magic quote effects so mysql_real_escape_string can do the work
if($magic_quotes_active){
$value = stripslashes($value);
}
$value = mysql_real_escape_string($value);
}else{ // before PHP v4.3.0
// if magic quotes aren't already on this add slashes manually
if(!$magic_quotes_active){
$value = addslashes($value);
} //if magic quotes are avtive, then the slashes already exist
}
return $value;
}

Actionscript find hidden line breaks

function insertBreaks(theText) {
newText = "";
for (i=0; i if (theText.charAt(i) == String.fromCharCode(13)) {
newText += "
";
} else {
newText += theText.charAt(i);
}
}
return (newText);

}