I am working on something like this for PHP. I have a few extra parameters, like what is the escape character for null? for slashes? etc... You can also alter the delimeter used in the SES URLs, among some other little doohickeys. I am tweaking my PHP SES converter to be versatile like that as well...
One thing I've learned is that even though I CON write a regEx to find all the links in the site and convert them, it is not a good idea in terms of processing time. The better solution is to use the function on all the links in the site, and then swap out the function with the SES conversion when you want to turn that on. Actually, I have done this in PHP with a class in which you can set the default configuration (i.e. SES or not, change the fuseaction word, etc.) using the a constructor method. That way I don't have to pass many parameters for all of the different links-- just up front when I create the object. Anyway, the files should be forthcoming... I am working on some other projects right now that have priority, but I will get back to that soon. David Huyck [EMAIL PROTECTED] ----- Original Message ----- From: "Anthony Cooper" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 15, 2002 4:00 PM Subject: Re: sesConverter.cfm | Has anyone got a UDF for converting a 'normal' url into a SES one? I would | like to use this in a new app I am about to start so that I can switch SES | on at a later stage and not have to go around changing all my links. If not | I'll knock something up along the lines of: | | SESFormat( string url, boolean sesOn, string sesExtension ) | | url - normal url | sesOn - convert the string to SES, handy if you need to switch the thing off | sesExtension - extension to add '.htm' or whatever | | The last two arguments could be optional or subsituted with global | variables. | | Thoughts? | | Ant | | ----- Original Message ----- | From: "Erik Voldengen" <[EMAIL PROTECTED]> | To: <[EMAIL PROTECTED]> | Sent: Monday, April 15, 2002 8:38 PM | Subject: RE: sesConverter.cfm | | | > okay, stand by for more. | > | > -----Original Message----- | > From: Wallick, Mike [mailto:[EMAIL PROTECTED]] | > Sent: Monday, April 15, 2002 11:52 AM | > To: '[EMAIL PROTECTED]' | > Subject: RE: sesConverter.cfm | > | > | > That's a really good nugget of information to know...but that box is not | > checked on my IIS server. | > -----Original Message----- | > From: Erik Voldengen [mailto:[EMAIL PROTECTED]] | > Sent: Monday, April 15, 2002 1:24 PM | > To: [EMAIL PROTECTED] | > Subject: RE: sesConverter.cfm | > | > | > Does this help? | > | > http://cfhub.com/contributions/ses/iis.cfm | > | > -Erik | > | > -----Original Message----- | > From: Wallick, Mike [mailto:[EMAIL PROTECTED]] | > Sent: Monday, April 15, 2002 10:50 AM | > To: '[EMAIL PROTECTED]' | > Subject: RE: sesConverter.cfm | > | > | > Why, yes it does. Why would that be? | > -----Original Message----- | > From: Bert Dawson [mailto:[EMAIL PROTECTED]] | > Sent: Monday, April 15, 2002 11:17 AM | > To: '[EMAIL PROTECTED]' | > Subject: RE: sesConverter.cfm | > | > | > Does it work of you don't use a dummy extension? | > | > -----Original Message----- | > From: Wallick, Mike [mailto:[EMAIL PROTECTED]] | > Sent: 15 April 2002 16:34 | > To: Fusebox (E-mail) | > Subject: sesConverter.cfm | > | > | > OK. I must be doing something really dumb here. | > | > Why do I only get 404 errors when using sesConverter.cfm from | > erikv.com (1.41)? | > Mike Wallick | > Web Application Developer | > [EMAIL PROTECTED] | > 651.628.5377 | > http://www.securecomputing.com | > | > | > | > | > | > | | | | ==^================================================================ This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9 Or send an email to: [EMAIL PROTECTED] T O P I C A -- Register now to manage your mail! http://www.topica.com/partner/tag02/register ==^================================================================
