Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev
Issue 516 in cherokee: How do you enable URL file-access in the cherokee server configuration
 

Index | Next | Previous | View Flat


codesite-noreply at google

Jun 30, 2009, 6:17 AM


Views: 359
Permalink
Issue 516 in cherokee: How do you enable URL file-access in the cherokee server configuration

Status: New
Owner: ----

New issue 516 by zdavatz: How do you enable URL file-access in the cherokee
server configuration
http://code.google.com/p/cherokee/issues/detail?id=516

In Apache, there is a way to enable URL file-access in the server
configuration as in "allow_url_fopen On" - Where would I set that in
Cherokee? This function is used for OsCommerce Plattform to update your
Exchange rates. The code of the file that accesses the exchange rates looks
likes this:

<?php
/*
$Id: localization.php 1739 2007-12-20 00:52:16Z hpdl $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

function quote_oanda_currency($code, $base = DEFAULT_CURRENCY) {
$page =
file('http://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=' .
$code . '&format=CSV&dest=Get+Table&sel_list=' . $base);

$match = array();

preg_match('/(.+),(\w{3}),([0-9.]+),([0-9.]+)/i', implode('', $page),
$match);

if (sizeof($match) > 0) {
return $match[3];
} else {
return false;
}
}

function quote_xe_currency($to, $from = DEFAULT_CURRENCY) {
$page = file('http://www.xe.net/ucc/convert.cgi?Amount=1&From=' . $from
. '&To=' . $to);

$match = array();

preg_match('/[0-9.]+\s*' . $from . '\s*=\s*([0-9.]+)\s*' . $to . '/',
implode('', $page), $match);

if (sizeof($match) > 0) {
return $match[1];
} else {
return false;
}
}
?>

Thank you for any Feedback.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev

Subject User Time
Issue 516 in cherokee: How do you enable URL file-access in the cherokee server configuration codesite-noreply at google Jun 30, 2009, 6:17 AM
    Issue 516 in cherokee: How do you enable URL file-access in the cherokee server configuration codesite-noreply at google Jun 30, 2009, 6:38 AM
    Issue 516 in cherokee: How do you enable URL file-access in the cherokee server configuration codesite-noreply at google Jun 30, 2009, 6:54 AM
    Issue 516 in cherokee: How do you enable URL file-access in the cherokee server configuration codesite-noreply at google Jun 30, 2009, 7:19 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.