Re: [PHP] Re: Fshockopen error while opening a https stream urgent help needed

2005-06-20 Thread choksi
Hi i have changed the re-complile php openssl but now its giving me 
connection refused error.
 Warning: fsockopen()
[function.fsockopenhttps://192.168.0.85/voip/function.fsockopen]:
unable to connect to ssl://192.168.65.20:443 (Connection refused) in *
/www/htdocs/voip/api_class.php* on line *323*

Now I really wonder what could be the issue
 dhaval
 On 17/06/05, JamesBenson [EMAIL PROTECTED] wrote: 
 
 You pointed the configure line to the source files and not the installed
 version of openssl, you should compile and install openssl first, 
 change...
 
 --with-openssl-dir=/usr/local­/src/webserver/openssl-0.9.7d
 
 to...
 
 --with-openssl-dir=/usr/local­
 
 Or wherever you installed openssl, /usr/local is default, it will then
 find all openssl files in /usr/local/lib and wherever else it needs but
 openssl needs to be compiled installed then linked by PHP from an
 installed version and NOT the origanal source files.
 
 James
 
 
 choksi wrote:
  Hello All
  I am running PHP5.0.2 over apache 1.3.29 and openssl-0.9.7d on a Debian
  Php Configure command './configure' '--with-apxs=/www/bin/apxs'
  '--with-openssl-dir=/usr/local­/src/webserver/openssl-0.9.7d/­'
  '--enable-trans-sid' '--disable-libxml'
 
  Registered PHP Streams : php, file, http, ftp
  Registered Stream Socket Transports : tcp, udp, unix, udg
  allow_url_fopen : On On
 
  Now when i try to open a https url via it gives me this error
 
  [Wed Jun 15 19:03:36 2005] [error] PHP Warning: fsockopen() [a
  href='function.fsockopen'func­tion.fsockopen/a]: unable to connect to
  ssl:// 192.168.0.10:443 http://192.168.0.10:443
 http://www.google.com/url?sa=Dq=http://www.testcall.com:443(Unable
  to find the socket transport
  quot;sslquot; - did you forget to enable it when you configured PHP?)
  in /www/htdocs/testcon.php on line 2
 
  I am trying to fix this from last few days but not successful can some
  please help me its very urgent.
  Do I need to register ssl and https as registered php streams? and if
  so how do i register them.
 
  Thankyou
  Regards
  Dhaval Choksi
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
Rgds
Choksi


[PHP] Re: Fshockopen error while opening a https stream urgent help needed

2005-06-17 Thread JamesBenson
You pointed the configure line to the source files and not the installed 
version of openssl, you should compile and install openssl first, change...


--with-openssl-dir=/usr/local/src/webserver/openssl-0.9.7d


to...

--with-openssl-dir=/usr/local

Or wherever you installed openssl, /usr/local is default, it will then 
find all openssl files in /usr/local/lib and wherever else it needs but 
openssl needs to be compiled installed then linked by PHP from an 
installed version and NOT the origanal source files.




James




choksi wrote:
Hello All 
 I am running PHP5.0.2 over apache 1.3.29 and openssl-0.9.7d on a Debian 
 Php Configure command './configure' '--with-apxs=/www/bin/apxs' 
'--with-openssl-dir=/usr/local/src/webserver/openssl-0.9.7d/' 
'--enable-trans-sid' '--disable-libxml' 
 
Registered PHP Streams : php, file, http, ftp 
Registered Stream Socket Transports : tcp, udp, unix, udg 
allow_url_fopen : On On 

Now when i try to open a https url via it gives me this error 

[Wed Jun 15 19:03:36 2005] [error] PHP Warning: fsockopen() [a 
href='function.fsockopen'function.fsockopen/a]: unable to connect to 
ssl:// 192.168.0.10:443http://www.google.com/url?sa=Dq=http://www.testcall.com:443(Unable

to find the socket transport
quot;sslquot; - did you forget to enable it when you configured PHP?) 
in /www/htdocs/testcon.php on line 2 

I am trying to fix this from last few days but not successful can some 
please help me its very urgent. 
Do I need to register ssl and https as registered php streams? and if 
so how do i register them. 

Thankyou 
Regards 
Dhaval Choksi




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Fshockopen error while opening a https stream urgent help needed

2005-06-16 Thread Manuel Lemos

Hello,

on 06/16/2005 09:08 AM choksi said the following:
Hello All 
 I am running PHP5.0.2 over apache 1.3.29 and openssl-0.9.7d on a Debian 
 Php Configure command './configure' '--with-apxs=/www/bin/apxs' 
'--with-openssl-dir=/usr/local/src/webserver/openssl-0.9.7d/' 
'--enable-trans-sid' '--disable-libxml' 
 
Registered PHP Streams : php, file, http, ftp 
Registered Stream Socket Transports : tcp, udp, unix, udg 
allow_url_fopen : On On 

Now when i try to open a https url via it gives me this error 

[Wed Jun 15 19:03:36 2005] [error] PHP Warning: fsockopen() [a 
href='function.fsockopen'function.fsockopen/a]: unable to connect to 
ssl:// 192.168.0.10:443http://www.google.com/url?sa=Dq=http://www.testcall.com:443(Unable

to find the socket transport
quot;sslquot; - did you forget to enable it when you configured PHP?) 
in /www/htdocs/testcon.php on line 2 

I am trying to fix this from last few days but not successful can some 
please help me its very urgent. 
Do I need to register ssl and https as registered php streams? and if 
so how do i register them. 


You need to compile PHP with OpenSSL.

Alternatively, you can use the curl library.

You may also want to take a look at this HTTP client class that uses 
fsockopen or curl depending on which is available:


http://www.phpclasses.org/httpclient


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php