You are here: Re: Reading a page with file() - Problems with https « PHP Programming Language « IT news, forums, messages
Re: Reading a page with file() - Problems with https

Posted by Joachim Mζland on 01/29/07 11:51

On Sun, 28 Jan 2007 14:34:09 -0800, Cord-Heinrich Pahlmann wrote:

> On 28 Jan., 22:26, Joachim Mæland <jm-n...@profine.net> wrote:
>>
>> What OS and webserver is the remote site running?
>
> I have no clue.

Buggy IIS and line endings from a MAC are easy to overcome, but obviously
not what's giving you problems. Never mind the question.

> I have a xampp test enviroment (Apache w/ PHP 4.4.4). I'm sorry, but
> when I uploaded the script to my webhoster it worked. So it might be an
> issue with the OpenSSL support as Micha suggested. I just looked at the
> phpinfo() pages of both configs and on both systems is openSSL enabled.
> My hoster has an older version, though. But that shouldn't be the
> problem.

Micha said it all...
http://bugs.php.net/bug.php?id=28234
http://bugs.php.net/bug.php?id=38798

<guesswork>
I think the SSL entry you are looking for is an "ssl" entry under
"Registered Stream Socket Transports" in the phpinfo() page. And probably
an "https" entry under "Registered PHP Streams".
</guesswork>

> The error I get from my localhost is the following: Warning:
> file(https://SITE) [function.file]: failed to open stream: Invalid
> argument in ... on line...
> It works fine with normal HTTP.
>
> Since, the script is running on my webspaces I'm fine. But I still would
> really like to know why it isn't working from localhost.

Your PHP installation is probably broken from the maintainer. Try an
upgrade, your distro's own PHP package or build PHP yourself, using bits
and bytes... ;-)

--
Regards/mvh Joachim Mæland

If everything seems under control, you're just not going fast enough.
-Mario Andretti.

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация