By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,156 Members | 1,026 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,156 IT Pros & Developers. It's quick & easy.

How can I veiw HTTPS headers in PHP5?

P: 14
I am using PHP5.2.5. I am trying to view headers from an SSL site using the following:
[PHP]
error_log(print_r(get_headers('https://urltoserver/file.fdf')));
[/PHP]

I continue to get the following error:
Expand|Select|Wrap|Line Numbers
  1. PHP Notice:  get_headers() [<a href='function.get-headers'>function.get-headers</a>]: Unable to find the wrapper &quot;https&quot; - did you forget to enable it when you configured PHP?
  2.  
  3. [28-Jan-2008 09:45:06] PHP Warning:  get_headers() [<a href='function.get-headers'>function.get-headers</a>]: This function may only be used against URLs. 
  4.  
So what do I need to do to use get_headers()?
Jan 28 '08 #1
Share this Question
Share on Google+
4 Replies


P: 50
change the line in php.ini and restart the server
;extension=php_openssl.dll to extension=php_openssl.dll
in php.ini file.
simply remove ";" char.

Thanks,
Sandeep Agrawal
Jan 28 '08 #2

P: 14
change the line in php.ini and restart the server
;extension=php_openssl.dll to extension=php_openssl.dll
in php.ini file.
simply remove ";" char.

Thanks,
Sandeep Agrawal
I did that. It still doesn't work.
Jan 28 '08 #3

P: 14
I used get_loaded_extensions to see if the openssl dll was loaded and it is not. I did uncomment this in the php.ini and I restarted Apache. Is there something else I can do to load this dll? I chan't use dl() becuase of threading.

Thanks
Jan 28 '08 #4

P: 14
I used get_loaded_extensions to see if the openssl dll was loaded and it is not. I did uncomment this in the php.ini and I restarted Apache. Is there something else I can do to load this dll? I chan't use dl() becuase of threading.

Thanks
You were right. It works when openssl is loaded. Apache was not actually restarting for me before so my change to load openssl never took place. Now it is working.

THANKS!
Jan 29 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.