![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
King of Portal
|
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?
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
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
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi freelance scripts - http://ryanguthrie.com/index.html |
|
|
|
|
|
#3 |
|
King of Portal
|
That would require wget and exec permissions on the server which wouldn't help me I'm afraid.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Storing BLOBs in a database - problem | jonyzz | Other Programming Languages | 8 | Jan 31st, 2007 5:38 AM |
| Stuck with a C problem | Polaris | C++ | 8 | Aug 19th, 2006 4:30 PM |
| cgi/perl script + IE problem | joyceshee | Perl | 2 | Jan 24th, 2006 12:10 PM |
| Variable array problem | Hintshigen | C | 6 | Apr 10th, 2005 3:35 PM |