[nycphp-talk] embedding one web page in another
Wellington Fan
wfan at encogent.com
Thu Jul 10 11:34:31 EDT 2003
Joe,
You use this line of code:
if (!($fp = fopen($theurl, 'r'))) { echo 'Could not open URL'; exit; }
$contents = fread($fp, 1000000);
According to the manual, (http://www.php.net/manual/en/wrappers.php), with
regards to the fopen() and other simialr functions:
<Quote>
Note: HTTPS is supported starting from PHP 4.3.0, if you have compiled in
support for OpenSSL.
</Quote>
So....sure you can get to https:/somepage in your browser, BUT in PHP, you
need to have OpenSSL support enabled in order to use https in an fopen() call.
You might not know what OpenSSL support means, just know that everyone's PHP
engine can be different, and you need this OpenSSL component to do what you
want to do.
HTH
-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]On Behalf Of joe
Sent: Thursday, July 10, 2003 11:24 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] embedding one web page in another
At 10:33 AM 7/10/2003 -0400, you wrote:
>Are you certain that you compiled php with OpenSSL?
Sorry, that's still terminology beyond my expertise.
All I can tell you is that I created a page that calls up Yahoo. Then I put
in on the server and it worked. When I created and installed another page,
identical to the first except for an HTTPS URL, it returned errors saying
the secure page couldn't be found.
Yet entering the identical secure URL into the browser's address field
bring up that page.
I'm sure there's a logic for it but it escapes me.
I truly appreciate the help here.
Thanks again . . .
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
More information about the talk
mailing list