How to use file() function with an "HTTPS:\\www.example.com"

This is a discussion on How to use file() function with an "HTTPS:\\www.example.com" within the PHP General forums, part of the PHP Programming Forums category; How to use file() function with an "HTTPS:\\www.example.com" <?php $lines = file ('https://www.example....


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-17-2003
Rodrigo Nakahodo
 
Posts: n/a
Default How to use file() function with an "HTTPS:\\www.example.com"

How to use file() function with an "HTTPS:\\www.example.com"

<?php

$lines = file ('https://www.example.com/');

foreach ($lines as $line_num => $line) {
echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>\n";
}

?>

Thanks a million!

Rodrigo Nakahodo
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
Reply With Quote
  #2 (permalink)  
Old 09-17-2003
Jennifer Goodie
 
Posts: n/a
Default RE: [PHP] How to use file() function with an "HTTPS:\\www.example.com"

> How to use file() function with an "HTTPS:\\www.example.com"
>
> <?php
>
> $lines = file ('https://www.example.com/');
>
> foreach ($lines as $line_num => $line) {
> echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line)
> . "<br>\n";
> }


My interpretation of the manual page
(http://us3.php.net/manual/en/function.file.php) is as follows:
1.) you need fopen_wrappers enabled
2.) https is only available in versions >= 4.3.0
Reply With Quote
  #3 (permalink)  
Old 09-19-2003
Daniel Souza
 
Posts: n/a
Default Re: How to use file() function with an "HTTPS:\\www.example.com"

Recompile php with built-in openssl support (--with-openssl) will do that.


[]'s
Daniel Souza



"Rodrigo Nakahodo" <rodrigo.nakahodo@dhweb.com.br> escreveu na mensagem
news:CDEHLLEHEALJLBPKANBGGEOACAAA.rodrigo.nakahodo @dhweb.com.br...
> How to use file() function with an "HTTPS:\\www.example.com"
>
> <?php
>
> $lines = file ('https://www.example.com/');
>
> foreach ($lines as $line_num => $line) {
> echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) .

"<br>\n";
> }
>
> ?>
>
> Thanks a million!
>
> Rodrigo Nakahodo
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:28 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0