marta3891
29-07-2013, 13:39
mam skrypt:
<?php
file_put_contents('NBP/LastA.xml', file_get_contents('http://nbp.pl/kursy/xml/LastA.xml'));
$d = simplexml_load_file('NBP/LastA.xml');
foreach ($d=children() as $nazwa => $wartosc) {
echo $nazwa;
echo ' = ';
echo $wartosc;
}
?>
dodany a artykule...
Niestety blokuje mi go DIRECT PHP..
błąd, jaki się wyświetla to:
Warning: file_get_contents() [function.file-get-contents (http://test52.acit.pl/grupa_cx/b2biznes.pl-new/index.php/finanse/kalkulatory/function.file-get-contents)]: URL file-access is disabled in the server configuration in /mojadomena/plugins/content/DirectPHP/DirectPHP.php(56) : eval()'d code on line 1
Warning: file_get_contents(http://nbp.pl/kursy/xml/LastA.xml) [function.file-get-contents (http://test52.acit.pl/grupa_cx/b2biznes.pl-new/index.php/finanse/kalkulatory/function.file-get-contents)]: failed to open stream: no suitable wrapper could be found in /mojadomena/plugins/content/DirectPHP/DirectPHP.php(56) : eval()'d code on line 1
Fatal error: Call to undefined function children() in /mojadomena/content/DirectPHP/DirectPHP.php(56) : eval()'d code on line 3
(nic nie zmieniałam w kodzie pliku DirectPHP..!)
i nie wiem jak to obejść... :(
Czy ktoś mógłby pomóc?
Pozdrawiam,
- - - Updated - - -
aha.. dodam , ze w ustawieniach dodatku nie mam wpisanych wyjątków dla używanych funkcji i mam zaznaczone: Using NO EDITOR :YES.. ale włączenie NO - też nie pomaga.
<?php
file_put_contents('NBP/LastA.xml', file_get_contents('http://nbp.pl/kursy/xml/LastA.xml'));
$d = simplexml_load_file('NBP/LastA.xml');
foreach ($d=children() as $nazwa => $wartosc) {
echo $nazwa;
echo ' = ';
echo $wartosc;
}
?>
dodany a artykule...
Niestety blokuje mi go DIRECT PHP..
błąd, jaki się wyświetla to:
Warning: file_get_contents() [function.file-get-contents (http://test52.acit.pl/grupa_cx/b2biznes.pl-new/index.php/finanse/kalkulatory/function.file-get-contents)]: URL file-access is disabled in the server configuration in /mojadomena/plugins/content/DirectPHP/DirectPHP.php(56) : eval()'d code on line 1
Warning: file_get_contents(http://nbp.pl/kursy/xml/LastA.xml) [function.file-get-contents (http://test52.acit.pl/grupa_cx/b2biznes.pl-new/index.php/finanse/kalkulatory/function.file-get-contents)]: failed to open stream: no suitable wrapper could be found in /mojadomena/plugins/content/DirectPHP/DirectPHP.php(56) : eval()'d code on line 1
Fatal error: Call to undefined function children() in /mojadomena/content/DirectPHP/DirectPHP.php(56) : eval()'d code on line 3
(nic nie zmieniałam w kodzie pliku DirectPHP..!)
i nie wiem jak to obejść... :(
Czy ktoś mógłby pomóc?
Pozdrawiam,
- - - Updated - - -
aha.. dodam , ze w ustawieniach dodatku nie mam wpisanych wyjątków dla używanych funkcji i mam zaznaczone: Using NO EDITOR :YES.. ale włączenie NO - też nie pomaga.