hi, Try this one.
$doc_root = dirname(__FILE__).DIRECTORY_SEPARATOR; $position_uri = strrpos($_SERVER['REQUEST_URI'],'/')+1; $request_uri= substr($_SERVER['REQUEST_URI'],0,$position_uri); $url_root = "http://" . $_SERVER['SERVER_NAME'] . $request_uri; Thanks Lalit On 8/14/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote: > > > On Aug 13, 8:50 pm, nitifixis <[EMAIL PROTECTED]> wrote: > > I'd like to set up a rss feed for my cake app and I need a way to get > > the absolute url of my app (http://www.domain.com/...) to fill the > > <link></link> and <guid></guid> tags of my feed. Can anyone help me, > > please? > > $rss->url('/', true); > > If using Html helper, then $html, Xml helper, then $xml... > > -- > <?php echo 'Just another PHP saint'; ?> > Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/ > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
