php-windows Digest 23 Oct 2012 13:28:54 -0000 Issue 4078
Topics (messages 30965 through 30967):
Re: Pear problem with graphiz library
30965 by: Matt Matt
30966 by: Niel Archer
PHP CLI POST to HTTPS through proxy
30967 by: Momchil Bozhinov
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi Niel,
i confirm that PEAR.php it is under the correct directory with system.php
file.
i've tried follow your tip by executing that piece of code and it returns
me :
> bool(true) bool(false)
I also tried to execute pear upgrade and it returns me the following error
> Error getting channel info from pear.php.net: SECURITY ERROR: Will not
write to XXXX
Can you give me more check to do in order to give you more information
about this strange issue
i have the following version of PHP :
>PHP 5.4.6 (cli) (built: Aug 15 2012 21:16:03)
>Copyright (c) 1997-2012 The PHP Group
>Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
thank you very much,
Matt
2012/10/16 Niel Archer <spam-f...@blueyonder.co.uk>
> Hi Matt,
>
> coments inline.
>
> > Hi folks,
> >
> > i have a problem with graphviz library, i have installed pear and tested
> it
> > correctly folowing the guidelines on the official website, also i
> ensured i
> > had all the include path setted properly.Although i encountered theese
> > errors when i try to run graphiz example
> >
> >
> >
> > Here the code i try to execute :
> >
> > <?php
> > require_once 'Image/GraphViz.php';
> >
> > $gv = new Image_GraphViz();
> > $gv->addEdge(array('wake up' => 'visit bathroom'));
> > $gv->addEdge(array('visit bathroom' => 'make coffee'));
> > $gv->image();
> > ?>
> >
> > Here the errors :
> > -----------------------------------------------------------------
> > *Strict Standards*: Non-static method System::mktemp() should not be
> called
> > statically, assuming $this from incompatible context in *
> > pear\Image\GraphViz.php* on line *1005*
> >
> > *Strict Standards*: Non-static method System::_parseArgs() should not be
> > called statically, assuming $this from incompatible context in *
> > pear\System.php* on line *393*
> >
> > *Strict Standards*: Non-static method Console_Getopt::getopt2() should
> not
> > be called statically, assuming $this from incompatible context in *
> > pear\System.php* on line *84*
> >
> > *Strict Standards*: Non-static method Console_Getopt::doGetopt() should
> not
> > be called statically, assuming $this from incompatible context in *
> > pear\Console\Getopt.php* on line *75*
> >
> > *Fatal error*: Class 'PEAR' not found in *\pear\Console\Getopt.php* on
> line
> > *109*
>
> I can't reproduce this (the fatal error), so I would guess there is a
> problem with your Pear installation.
>
>
> >
> > I have followed theese instruction correctly and i can see the bool(true)
> > message, so i can't figure out why it complain about missing PEAR class
> > (the filePera.php is in under /pear directory)
>
> Hopefully you mean PEAR.php. It should be in the same directory as the
> System.php ("pear config-get php_dir" will tell you which one) mentioned
> in the checking your installation instructions. So:
>
> <?php
> require_once 'PEAR.php';
> var_dump(class_exists('PEAR', false));
> ?>
>
> should also give the bool(true) message.
>
> > this is the guidelines i have followed to set up pear :
> > http://pear.php.net/manual/en/installation.checking.php
> >
> >
> > Do you have any ideas about solving the problem?Thank you in advance,
>
> Make sure your PEAR is up to date "pear upgrade", if that doesn't fix it
> consider cleaning out and reinstalling PEAR.
>
> The strict errors are only too easy to reproduce ;-) PEAR and many of
> its packages are not strict compliant on PHP 5.3 and later.
> According to
> http://pear.php.net/manual/en/rfc.estrict-compatibility.solution.php
> only NEW packages (after 2007) need to run on PHP 5.1.4 without
> producing strict warnings.
>
> Personally, I "fix" the PEAR files that I have to use to make them as
> E_STRICT compliant as possible. Most of them only need 'static' added to
> certain class method definitions.
>
> --
> Niel Archer
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi
> i confirm that PEAR.php it is under the correct directory with system.php
> file.
> i've tried follow your tip by executing that piece of code and it returns
> me :
>
> > bool(true) bool(false)
> I also tried to execute pear upgrade and it returns me the following error
>
>
> > Error getting channel info from pear.php.net: SECURITY ERROR: Will not
> write to XXXX
>
> Can you give me more check to do in order to give you more information
> about this strange issue
The only reason I can think of for this, would be that your user-account does
not have write permission to that location. Please confirm you are using
Windows (which version) and that you are executing the commands from an
Administrator's command prompt.
>
> i have the following version of PHP :
>
> >PHP 5.4.6 (cli) (built: Aug 15 2012 21:16:03)
> >Copyright (c) 1997-2012 The PHP Group
> >Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
--
Niel Archer
--- End Message ---
--- Begin Message ---
​Hello,
I m trying to upload a file to the HP cloud via PHP CLIProblem is that I need
to go through a proxy serverThe authentication uses a POST request sent to a
secure HTTP
I tried using cURL with PHP 5.3.18, but all I got was 400 - BAD REQUESTI wanted
to try the PHP Stream transport option but it uses fopen and not fsockopen
Can anyone give me some pointers ?
Thank you,Momchil
--- End Message ---