Il linguaggio di programmazione PHP
 

richiamare ******* phar

alex 21 Feb 2017 11:07
Ho fatto queste prove:

+ cat phar.php
<?php
echo ******* get_contents('phar:wp');
echo ******* get_contents('phar:///wp');
echo ******* get_contents('phar://'.__DIR__.'/wp');
include('phar:wp');
include('phar:///wp');
include('phar://'.__DIR__.'/wp');

+ php phar.php

PHP Warning: ******* get_contents(phar:wp): failed to open stream: No such
******* or directory in /mnt/usb_storage/web/test/phar.php on line 2

PHP Warning: ******* get_contents(phar:///wp): failed to open stream: phar
error: no directory in "phar:///wp", must have at least phar:///wp/ for
root directory (always use full path to a new phar) in
/mnt/usb_storage/web/test/phar.php on line 3

PHP Warning: ******* get_contents(phar:///mnt/usb_storage/web/test/wp):
failed to open stream: phar error: no directory in
"phar:///mnt/usb_storage/web/test/wp", must have at least
phar:///mnt/usb_storage/web/test/wp/ for root directory (always use full
path to a new phar) in /mnt/usb_storage/web/test/phar.php on line 4

PHP Warning: include(phar:wp): failed to open stream: No such ******* or
directory in /mnt/usb_storage/web/test/phar.php on line 5

PHP Warning: include(): Failed opening 'phar:wp' for inclusion
(include_path='.:/usr ******* php') in /mnt/usb_storage/web/test/phar.php
on line 5

PHP Warning: include(phar:///wp): failed to open stream: phar error: no
directory in "phar:///wp", must have at least phar:///wp/ for root
directory (always use full path to a new phar) in
/mnt/usb_storage/web/test/phar.php on line 6

PHP Warning: include(): Failed opening 'phar:///wp' for inclusion
(include_path='.:/usr ******* php') in /mnt/usb_storage/web/test/phar.php
on line 6

PHP Warning: include(phar:///mnt/usb_storage/web/test/wp): failed to
open stream: phar error: no directory in
"phar:///mnt/usb_storage/web/test/wp", must have at least
phar:///mnt/usb_storage/web/test/wp/ for root directory (always use full
path to a new phar) in /mnt/usb_storage/web/test/phar.php on line 7

Non funziona in nessun modo, perchè?
fmigliori 21 Feb 2017 20:42
Hai provato con:

include 'coollibrary.phar';

Preso da:
http://php.net/manual/en/phar.using.intro.php


Ciao
alex 23 Feb 2017 16:03
Il 21/02/2017 20:42, fmigliori ha scritto:
> Hai provato con:
>
> include 'coollibrary.phar';
>
> Preso da:
> http://php.net/manual/en/phar.using.intro.php
>
>
> Ciao
>

era così semplice :)

Links
Giochi online
Dizionario sinonimi
Leggi e codici
Ricette
Testi
Webmatica
Hosting gratis
   
 

Il linguaggio di programmazione PHP | Tutti i gruppi | it.comp.www.php | Notizie e discussioni php | Php Mobile | Servizio di consultazione news.