NYCPHP Meetup

NYPHP.org

[nycphp-talk] embedding one web page in another

Mark Withington mwithington at PLMresearch.com
Thu Jul 10 07:36:27 EDT 2003


I presume you realize that the manage.php script/page must be on a machine
that's set up to handle SSL?  From the error message being thrown it appears
this might not be the case.
 
Hope this helps
 
 

--------------------------
Mark L. Withington
PLMresearch
"eBusiness for the Midsize Enterprise"
PO Box 1354
Plymouth, MA  02362
o: 800-310-3992
f: 508-746-4973
v: 508-746-2383
m: 508-801-0181
http://www.PLMresearch.com <http://www.plmresearch.com/> 
Netscape/AOL/MSN IM: PLMresearch
mwithington at plmresearch.com
Public Key: http://www.PLMresearch.com/html/MLW_public_key.asc
<http://www.plmresearch.com/html/MLW_public_key.asc> 
Calendar: http://www.plmresearch.com/calendar.php
<http://www.plmresearch.com/calendar.php> 



-----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 6:21 AM
To: NYPHP Talk
Subject: [nycphp-talk] embedding one web page in another


Total newbie question. I'm trying to create a web page that will include a
complete secure page from page from a site where I am an affiliate. My goal,
eventually, is to put this secure page in a table on one of my pages. As the
first step, I've learned to embed using Yahoo as an example. But when I
change the URL from Yahoo to the secure page, I'm getting error messages.

The example below (url_test04.php) substitutes XXXs for the affilaite ID
code but in reality I'm using the right code and it opens normally in my
browser.

here's what works:

QUOTE

<html>

<head>

</head>

<body>

<?php

$theurl='http://www.yahoo.com';

 if (!($fp = fopen($theurl, 'r'))) { echo 'Could not open URL'; exit; }
$contents = fread($fp, 1000000);

echo $contents;

?>

</body>

</html>

END QUOTE

But when I change to:

$theurl='https://secure.onlineaccess.net/cart/manage.php?ID= XXXXXXXXXX' ;

I get the following errors:

Warning: Unable to access
https://secure.onlineaccess.net/cart/manage.php?ID=XXXXXXXXXXXXX
<https://secure.onlineaccess.net/cart/manage.php?ID=XXXXXXXXXXXXX>  in
/home/virtual/site1/fst/var/www/html/url_test04.php on line 13

Warning:
fopen("https://secure.onlineaccess.net/cart/manage.php?ID=XXXXXXXXXXX
<https://secure.onlineaccess.net/cart/manage.php?ID=XXXXXXXXXXX> ", "r") -
No such file or directory in
/home/virtual/site1/fst/var/www/html/url_test04.php on line 13
Could not open URL

Suggestions greatly appreciated regarding what I'm overlooking. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030710/7d1916ca/attachment.html>


More information about the talk mailing list