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


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

Re: php://memory non funziona

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Alessandro Pellizzari <shuriken@amiran.it>
Newsgroups it.comp.www.php
Subject Re: php://memory non funziona
Date Mon, 24 Oct 2016 10:13:35 +0100
Lines 18
Message-ID <e761lvF47d6U1@mid.individual.net> (permalink)
References <nukbp4$vp8$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding 8bit
X-Trace individual.net Aay3/FD+NCdubefIPrdSXw1PV8Eu/ZtZKRuyTS1eOCjTh1Pl0=
Cancel-Lock sha1:awURZFZ92JVE+fmNAZPWrgy65eQ=
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
In-Reply-To <nukbp4$vp8$1@gioia.aioe.org>
Xref csiph.com it.comp.www.php:21224

Show key headers only | View raw


On 24/10/2016 08:04, alex wrote:

> file_put_contents('php://memory', "test\n");
>
> echo file_get_contents('php://memory');

> Non viene visualizzato nulla, perchè?

php://memory non mantiene le informazioni. Quando lo chiudi, il 
contenuto viene perso.

Siccome file_put_contents lo chiude quando ha finito di scrivere, il 
file_get_contents non trova niente.

Usa fopen() ... fseek(_, 0) ... fread()

Bye.

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


Thread

php://memory non funziona alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-10-24 09:04 +0200
  Re: php://memory non funziona Alessandro Pellizzari <shuriken@amiran.it> - 2016-10-24 10:13 +0100
    Re: php://memory non funziona alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-10-24 12:49 +0200
      Re: php://memory non funziona Alessandro Pellizzari <shuriken@amiran.it> - 2016-10-24 13:12 +0100
        Re: php://memory non funziona alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-10-24 15:56 +0200

csiph-web