![]() | | ||||||||
| | #1 | |
| Active Warrior Join Date: Jun 2009
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
| Quote:
| |
| | |
| | #2 |
| phpLD master War Room Member Join Date: Dec 2006 Location: Silicon Valley
Posts: 2,962
Blog Entries: 3 Thanks: 44
Thanked 307 Times in 259 Posts
|
Have you checked with your host to make sure they allow curl of external urls?
|
| PHP Link Directory Script - a great addition to ANY website and much more than just a directory. templates for phpLD - phpLD Templates (hundreds!) Article Directory Script - Video Directory Script Get our Product Free - Through this exclusive WSO!!! | |
| | |
| | #3 |
| Gary Join Date: Jan 2009 Location: Dallas, TX
Posts: 135
Blog Entries: 1 Thanks: 13
Thanked 9 Times in 9 Posts
|
That was my first thought too - my host caught me on this - especially on a shared hosting plan, they often block outgoing connections from your server. Blocks RSS feed reading scripts, CURL - anything like that. Check with them first - they can usually create an exception for just your script to connect out.
|
| | |
| | |
| | #4 | |
| Active Warrior Join Date: Jun 2009
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
| Quote:
your right . my host blocking curl from that url . what can i do for get the content. can i use proxy. | |
| | |
| | #5 |
| Gary Join Date: Jan 2009 Location: Dallas, TX
Posts: 135
Blog Entries: 1 Thanks: 13
Thanked 9 Times in 9 Posts
|
Sounds a bit strange that they're blocking just that one url unless the server is on a blacklist - usually they block ALL external URLs and then they can enable just the ones that you need to access. My point being that a proxy probably won't help you in this case - you need to get your host to enable external access for this script or, if they won't, find another host! For what it's worth - I've used Aplus.net for my hosting and had no problems getting ports and external URLs enabled - it's a bit of a pain having to go through the process at all, but if it keeps my shared host safe - no problem! |
| | |
| | |
| | #6 |
| Active Warrior Join Date: Jun 2009
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
|
you are right gb208 i got another curl problem . when i ask justhost.com they said the said dalas data center has blocking the url .
|
| | |
| | #7 |
| Audio & Video Guru War Room Member Join Date: Nov 2007 Location: Manchester, UK
Posts: 55
Thanks: 0
Thanked 7 Times in 7 Posts
|
If the data centre is blocking the URL, I would be very suspicious of having anything to do with that! Is it some kind or illegal or unwanted content? Be careful... Chances are, if the providers data center is blocking the URL, the content will not be welcome on a server within their network anyway. |
|
Regards, James (or Eddie) | |
| | |
| | #8 |
| Active Warrior Join Date: Jun 2009
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
|
ohh thanks for the information eddiejames.
|
| | |
| | |
| | #9 |
| Gary Join Date: Jan 2009 Location: Dallas, TX
Posts: 135
Blog Entries: 1 Thanks: 13
Thanked 9 Times in 9 Posts
|
Don't get too carried away with that being a bad URL just based on this information - in my experience, web hosts block ALL external URL access by default to be on the safe side - good and bad URLs. Try googling the URL you are after, or maybe googling URL blacklists to see if it shows on them and get another opinion before you label it bad. My feeling is that you just need to have the data center enable connections from your script to the URL(s) you want - they should be able to do that, if their company policy allows for it. |
| | |
| | |
| | #10 |
| Active Warrior Join Date: Jun 2009
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts
|
thank gb2008 for trying to help me .
|
| | |
| | |
![]() |
|
| Tags |
| canot, curl, make, url |
| Thread Tools | |
| |
![]() |