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

2005-06-16 Thread choksi
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


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

2005-06-16 Thread Richard Lynch
On Thu, June 16, 2005 5:08 am, choksi said:

I'm not 100% sure, but...

  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/'

This didn't work

You know it didn't work because 'ssl' didn't show up in the list of stream
and sockets below.

You may be able to find out more about why it didn't work in the
config.log file in your PHP source directory.

Most likely, you're using the OpenSSL source directory instead of where
SSL got installed, which is probably /usr/ or /usr/local

In other worlds, go back to OpenSSL and do:

make install

and watch all the stuff fly by VERY carefully.

See where it (probably) says stuff about where it's copying the .so and .h
files.

Whatever directories those are, take the common ancestor directories,
and use that for --with-openssl-dir

You may also need to do ldconfig for the new system libraries to get
registered, after you do the make install of OpenSSL.  But ldconfig is
only for some distributions.  Others do the same thing other ways.  Some
do it automatically.  YMMV.

 '--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

-- 
Like Music?
http://l-i-e.com/artists.htm

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