GithubHelp home page GithubHelp logo

Comments (4)

weeb0 avatar weeb0 commented on May 22, 2024

I explored this, and it appear when using the http_response_header in a function, it is necessary to pass the variable as a function parameter.

I changed the function header to :
function place_json_call($object, $url, $username = '', $password = '', &$headers, $timeout = 2,$http_response_header)

and the line calling the function should be like :
$response = place_json_call($request, $row['url'], $row['username'], $row['password'], $headers, http_response_header);

from bitcoin-mining-proxy.

alanpearce avatar alanpearce commented on May 22, 2024

Duplicate of #14

Find your php.ini and uncomment allow_url_fopen = On or change it to On if it's Off

from bitcoin-mining-proxy.

weeb0 avatar weeb0 commented on May 22, 2024

I don't agree. The allow_url_fopen is already On (this is validated with phpinfo() ) and doing the changes suggested in my second comment solve the issue.

from bitcoin-mining-proxy.

alanpearce avatar alanpearce commented on May 22, 2024

$http_response_header is a reserved variable when allow_url_fopen = On: you should not create it.

The PHP docs indicate that the syntax is correct and the variable should be defined without explicit declaration

It's likely that the @file_get_contents call failed (line 123), remove the @ and see what errors come up then. You may also need to comment out the error_reporting(E_ERROR | E_USER_ERROR); line in config.inc.php

from bitcoin-mining-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.