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

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Jun 30, 2009, 6:17 AM

Post #1 of 4 (338 views)
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


codesite-noreply at google

Jun 30, 2009, 6:38 AM

Post #2 of 4 (317 views)
Permalink
Issue 516 in cherokee: How do you enable URL file-access in the cherokee server configuration [In reply to]

Comment #1 on 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

Ok, solved this one myself: You have to set that in php.ini :
/etc/php/cgi-php5/php.ini - "allow_url_fopen = On". For Apache on Gentoo it
would be
in: /etc/php/apache2-php5/php.ini



--
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


codesite-noreply at google

Jun 30, 2009, 6:54 AM

Post #3 of 4 (314 views)
Permalink
Issue 516 in cherokee: How do you enable URL file-access in the cherokee server configuration [In reply to]

Updates:
Status: Invalid

Comment #2 on issue 516 by ste...@konink.de: How do you enable URL
file-access in the cherokee server configuration
http://code.google.com/p/cherokee/issues/detail?id=516

:) no problem :)

--
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


codesite-noreply at google

Jun 30, 2009, 7:19 AM

Post #4 of 4 (314 views)
Permalink
Issue 516 in cherokee: How do you enable URL file-access in the cherokee server configuration [In reply to]

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

zdavatz: Please, use Cherokee mailing list
(http://lists.cherokee-project.com/) to
make your questions. This is only for bug reports.

Thanks ;)

--
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

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


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