Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   allow_url_fopen problem (http://www.programmingforums.org/showthread.php?t=13359)

grimpirate Jun 15th, 2007 11:49 PM

allow_url_fopen problem
 
My server has restricted access to the fopen, fsockopen, etc. functions to be within the local domain only. Therefore, I cannot access the contents of foreign URLs. The information I'm trying to access is at this sample URL http://cache.pando.com/soapservices/...DF310A03958AD2 which returns some data which I need in order to create a preview of a pando package.
So my question is how can I access this info if I don't have access to the fopen, fsockopen, etc. functions, I don't have htaccess priviledges or the curl library? Any suggestions?

Mocker Jun 17th, 2007 6:37 AM

exec("wget -O /path/to/tmp/file 'http://longurlthinger.com'");
$fh = fopen("/path/to/tmp/file", "r");

or even better, get a host that provides php with the curl library available. Limiting fopen and fsockopen is pretty common but they should have curl enabled

grimpirate Jun 25th, 2007 12:14 PM

That would require wget and exec permissions on the server which wouldn't help me I'm afraid.


All times are GMT -5. The time now is 3:07 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC