Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #22009

php funzionante in command line, ma non in browser

From Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de>
Newsgroups it.comp.www.php
Subject php funzionante in command line, ma non in browser
Date 2018-04-22 22:43 +0200
Organization A noiseless patient Spider
Message-ID <bo8vqe-eu2.ln1@lazy.lzy> (permalink)

Show all headers | View raw


Salve a tutti,

sto tentando di usare il seguente script:

https://github.com/joshdick/miniProxy

Si tratta di un web proxy, in pratica si passa
un url e questo si prende la pagina e la mostra
come fosse in locale.

Ha diverse limitazioni, ma non e` questo il punto.

Se uso lo script da command line:

cat miniProxy.php | php -a

Funziona come deve (c'e` un url di default nello
script stesso).

Da browser, oppure con curl http://localhost/miniProxy.php,
ritorna una pagina bianca.

Il server http funziona, php viene eseguito da php-fpm,
ma anche con mod_php sembra comportarsi allo stesso modo.

Qualche idea sul perche` funzioni in un modo, ma non
nell'altro?
Inoltre, come si fa il debugging in php?

Grazie anticipatamente,

bye,

-- 

piergiorgio

Back to it.comp.www.php | Previous | NextNext in thread | Find similar | Unroll thread


Thread

php funzionante in command line, ma non in browser Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2018-04-22 22:43 +0200
  Re: php funzionante in command line, ma non in browser Alessandro Pellizzari <shuriken@amiran.it> - 2018-04-22 22:26 +0100
    Re: php funzionante in command line, ma non in browser Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2018-04-23 22:00 +0200
      Re: php funzionante in command line, ma non in browser Alessandro Pellizzari <shuriken@amiran.it> - 2018-04-24 10:09 +0100
  Re: php funzionante in command line, ma non in browser Leonardo Serni <lserni@gmail.com> - 2018-04-22 23:58 +0200
    Re: php funzionante in command line, ma non in browser Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2018-04-23 21:57 +0200
  Re: php funzionante in command line, ma non in browser Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2018-04-26 22:10 +0200

csiph-web