[phorm] [Phorm:] Re: $PHORM_ACK's= ABSOLUTE=SOLUTION !(?)

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 28 Mar 2004 16:12:49 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#3905) Re: $PHORM_ACK's= ABSOLUTE=SOLUTION !(?) 
            <http://www.phorm.com/support/?rev=3905> 
  AUTHOR:   Holotech 
  DATE:     March 28, 2004 at 11:12 a.m. EST 

  Reply To: (#3894) $PHORM_ACK's= ABSOLUTE=SOLUTION !(?) 
  Author:   Rainer 
  Date:     March 23, 2004 at 10:28 p.m. EST 

> # HACK -- MAKE ACK URL ABSOLUTE 

> $ph_tpd2="http://www.yourdomain.biz/subdomain";; 
> $PHORM_ACK = "$ph_tpd2/$PHORM_ACK"; 

> and this seems to work. 

Not a bad hack; similar to what I would have recommended. Of course, you then 
have to have all your ack files on that server. I'd suggest something like 
this: 

if ($PHORM_ACK == ph_GENERIC) $PHORM_ACK = "$ph_root/files/generic.html"; 

else { 
if (!strpos($PHORM_ACK, "://")) $PHORM_ACK = "$ph_tpd/$PHORM_ACK"; 
} 

That way, if $PHORM_ACK contains "://" (thus allowing for http, https, ftp or 
any other protocol), the template directory path is not prepended. I will 
incorporate this into the next release of Phorm. 

Bear in mind that this will only work if your PHP is configured with 
allow_url_fopen, which obviously yours is. 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts: