Integrations and APIs for Service

Get Involved. Join the Conversation.


    Kenton Banyai
    FTP transfer
    Topic posted November 11, 2019 by Kenton BanyaiRed Ribbon: 250+ Points, tagged Connect PHP 
    17 Views, 2 Comments
    FTP transfer
    We are trying to send files with our oracle server

    We are trying to write a script that will inevitably send a report to the server we are trying to integrate with. Right now we are just trying to get a file to send, for testing. When we send a file through our site, we get the following error.

    Severity: Warning

    Message: file_get_contents(): open_basedir restriction in effect. File(***external server path*** ) is not within the allowed path(s):

    followed by some file paths. Is this a configuration setting that is preventing us from using php functions?

    Here is the code used, in case you need it for reference,

    $file ="***external server path***";
    $current = file_get_contents($file);
    $current .= "Test2 \n";
    file_put_contents(HTMLROOT . "/euf/assets/themes/standard/images/***",$current);



    • Sebastiaan Draaisma

      Not that I know why you get an error, I do like to point out that this folder is accessible to anyone including search engines and should therefore not contain any files containing passwords etc. Best practice is to read/write through an API

      • Kenton Banyai

        Normally we don't have an issue with pulling information with an API. The issue we are having now is updating a server outside of oracle.