Curl not working

Status
Not open for further replies.

konewka15

New Member
Messages
2
Reaction score
0
Points
0
I'm new today to x10 hosting.
I have made a website with several scripts, including one script to view my school schedule.
To make my script view the schedule, i have to get information from the schoolsite.
On previous webhosts, i did this with Curl.
When I use the same script on x10, it's not working, and as result, I get a blank page.
What can I do on this?

This is my curl script:
PHP:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
$outputL = curl_exec($ch);
curl_close($ch);
?>

Thanks in advance..
 

Anna

I am just me
Staff member
Messages
11,783
Reaction score
595
Points
113
That'd be because outbound port 80 is currently blocked, it is blocked to prevent abuse, mainly from those that decided running a proxy on our free hosting was a good plan.

It will remain blocked until further notice.
 

Anna

I am just me
Staff member
Messages
11,783
Reaction score
595
Points
113
There is, we have however mainly made acceptions for websites of common interest, such as those that are required by commonly used scripts for version checking.

We have not been adding those required by one user only.

This block is not in place on the Illuminated upgrade of free hosting, or our Premium hosting
 
Status
Not open for further replies.
Top