Sorry copied the wrong version:
Ok so:
#ReReplace(cfhttp.FileContent,'[[:alnum:]/]+[[:alnum:]]+\.php+[[:alnum:]:;%-
_\.\?/=]+','index.cfm?section=#url.section#&page=#URLEncodedFormat(\0)#','AL
L')#
Gives me an error saying
Missing argument name.
wheras:
#ReReplace(cfhttp.FileContent,'[[:alnum:]/]+[[:alnum:]]+\.php+[[:alnum:]:;%-
_\.\?/=]+','index.cfm?section=#url.section#&page=#URLEncodedFormat("\0")#','
ALL')#
Doesn�t output the replaced string, it just outputs "\0" where the replaced
string should be...
Any ideas?
On 12/7/03 21:15, "Jim McAtee" <[EMAIL PROTECTED]> wrote:
> Show the code that is generating the error.
>
>
> ----- Original Message -----
> From: "Ryan Mitchell" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Saturday, July 12, 2003 11:38 AM
> Subject: Php in cf help...
>
>
>> Hello
>>
>> Im trying to include a php file within a cold fusion page, and in doing so
>> replace all links within the page so that they refer back to the cold fusion
>> page calling the php file... Hope that made sense...
>>
>> So anyways, im doing a cfhttp of the file, and then with the result doing
>> this...
>>
>> #ReReplace(cfhttp.FileContent,'[[:alnum:]/]+[[:alnum:]]+\.php+[:;%-_\.\?/=]+
>> ','index.cfm?section=#url.section#&page=\0','ALL')#
>>
>> However, I want to URLEncodedFormat() the \0 bit of the expression, but it
>> won't let me!! I get an error saying invalid expression format or something
>> like that...
>>
>> Anyways, I need to encode the url to preserve the variables passed in it for
>> the php page to process...
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4