[thelist] PHP fopen https

raditha dissanayake jabber at raditha.com
Wed Apr 28 10:48:03 CDT 2004


fopen urls may not be enabled. and ssl may not be correctly installed as 
you guessed.

Drew Shiel wrote:

>
> I'm doing some work in PHP (v 4.3.4), which I haven't done much of in 
> years. I'm running into a problem with the fopen() function. I'm using 
> it thus:
>
> $handle = 
> fopen("https://username:passwd@my.server.com/file.php?parameter=fred", 
> "r");
>
> And I'm getting:
>
> Warning: fopen(https://...@my.server.com/file.php?parameter=fred): 
> failed to open stream: No such file or directory in 
> /path/to/script/directory/script.php on line 8
>
> As I understand it, fopen() should see the "https://" and do the http 
> request. My hypotheses:
>
> 1) I've a glaring error in the code there.
> 2) OpenSSL support has not been compiled in.
>
> I'm testing hypothesis 1 by asking you folk. What should I be looking 
> for in the configure command returned by phpinfo() (or indeed, any 
> other method)to test hypothesis 2?
>
> Cheers,
> Drew.
>
>------------------------------------------------------------------------
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.665 / Virus Database: 428 - Release Date: 21/04/2004
>  
>


-- 
Raditha Dissanayake.
---------------------------------------------
http://www.radinks.com/print/upload.php
SFTP, FTP and HTTP File Upload solutions 



More information about the thelist mailing list