Hey everyone,
I have a PHP script that goes through and checks the prefix on a url and
rewrites all of the links in that page accordingly. This is the script:
<? if( isset ( $domainArray ) )
{
if($domainArray[0] == 'new' )
{
$directory = " new.sample.com"
}
else if ....
else ...
}[
I need to rewrite that script in coldfusion but I don't know how to replace
the '$domainArray[]' variable. Does anyone know a variable I can use or a way I
can just read the first three charachters of a url? I thought about using trim.
...

I need to rewrite that script in coldfusion but I don't know how to replace
the '$domainArray[]' variable. Does anyone know a variable I can use or a way I
can just read the first three charachters of a url? I thought about using trim.
Would that work?