XML on HTTPS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dracoola
Forum Newbie
Posts: 3
Joined: Thu Dec 09, 2004 5:10 pm

XML on HTTPS

Post by dracoola »

I want to read a XML file on HTTPS protocol remote address.

Do you know a way of doing that different of CURL.
Last edited by dracoola on Thu Dec 09, 2004 5:26 pm, edited 1 time in total.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

[php_man]stream[/php_man] and [php_man]file_get_contents[/php_man]
dracoola
Forum Newbie
Posts: 3
Joined: Thu Dec 09, 2004 5:10 pm

Post by dracoola »

i tried
$httpsfile = file_get_contents("https://www.bayinet.com.tr/bayi/XML/liste_genel_xml.asp");

but it returns :

Warning: file_get_contents(): Unable to access https://www.bayinet.com.tr/bayi/XML/liste_genel_xml.asp in /home/vivapc/public_html/file.php on line 4

Warning: file_get_contents(https://www.bayinet.com.tr/bayi/XML/liste_genel_xml.asp): failed to open stream: No such file or directory in /home/vivapc/public_html/file.php on line 4
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

does file_get_contents() work at all for you?

try fetching http://google.com

if it doesnt work, url wrappers are disabled and you need to talk to your host about that
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

I not sure what u are trying to get. but those links u put in that file_get_contents(https:// ..ect

They not there anyway. u might wanna check those links :)
Post Reply