homepage Welcome to WebmasterWorld Guest from 54.161.185.244
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
How to get SSL pages in PHP
Can it be done?
ggrot

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 413 posted 9:35 pm on Apr 30, 2002 (gmt 0)

PHP has some neat support for retrieving html over the 'net. Just open it like a regular file. This doesn't work for SSL pages (https://) until version 4.3 (which isn't yet released). Is there any hack to get around this and have it retrieve the html of a https:// page. Perhaps going through lynx? This would be a very legitimate (university) use. Stickymail me if you want to know the specifics.

 

scotty

10+ Year Member



 
Msg#: 413 posted 12:39 am on May 1, 2002 (gmt 0)

lynx? Maybe. But I find cURL [curl.haxx.se] quite easy to use. For example,


<?php

$url = 'https://some.secure.site/';
exec("/usr/bin/curl $url", $lines);

$lines = implode($lines, "\n");
$lines = htmlspecialchars($lines);

echo "<pre>$lines</pre>";

?>


ggrot

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 413 posted 2:41 am on May 1, 2002 (gmt 0)

Ah, nice. Thanks a ton.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved