SunQuest
           PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 15th, 2008, 12:50 PM
Dellius Dellius is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 4 Dellius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 41 sec
Reputation Power: 0
php4 - Help me load a remote page without curl and fopen

Help me load a remote page with curl and fopen disabled, please.

I need to load the page so I can extract data from it and use it in my page. Problem is curl and fopen are disabled and I failed to do it with sockets as well.

Give me a hint, please, how to load the remote page.

Reply With Quote
  #2  
Old May 16th, 2008, 02:54 AM
DavidMR's Avatar
DavidMR DavidMR is online now
Contributing User
Click here for more information.
 
Join Date: Apr 2007
Location: Ireland
Posts: 784 DavidMR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Week 6 Days 6 h 7 m 6 sec
Reputation Power: 2
have you looked into:

http://us3.php.net/file_get_contents
__________________
When I die, I want to go peacefully like my Grandfather did, in his sleep -- not screaming, like the passengers in his car.

Reply With Quote
  #3  
Old May 16th, 2008, 03:58 AM
Dellius Dellius is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 4 Dellius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 41 sec
Reputation Power: 0
Thank you for your reply, DavidMr

I looked at the link and I am still concerned weather it will work.

Quote:
A URL can be used as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename and List of Supported Protocols/Wrappers for a list of supported URL protocols.

Reply With Quote
  #4  
Old May 16th, 2008, 05:05 AM
DavidMR's Avatar
DavidMR DavidMR is online now
Contributing User
Click here for more information.
 
Join Date: Apr 2007
Location: Ireland
Posts: 784 DavidMR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Week 6 Days 6 h 7 m 6 sec
Reputation Power: 2
ok, who disabled fopen and curl? and how about more information about what you are trying to achieve?

PHP Code:
<?php
$content
=file_get_contents("http://www.google.com/");
echo 
$content;
?>


thats a quick way to check if it will work or not...

Reply With Quote
  #5  
Old May 16th, 2008, 08:30 AM
Dellius Dellius is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 4 Dellius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 41 sec
Reputation Power: 0
Thank you for your reply, DavidMr.

I ran the test script and I got this.

Code:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /www/zxq.net/x/x/x/xxxyyyzzz/htdocs/index.php on line 2

Warning: file_get_contents((URL address blocked: See forum rules)) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /www/zxq.net/x/x/x/xxxyyyzzz/htdocs/index.php on line 2

Reply With Quote
  #6  
Old May 16th, 2008, 08:34 AM
DavidMR's Avatar
DavidMR DavidMR is online now
Contributing User
Click here for more information.
 
Join Date: Apr 2007
Location: Ireland
Posts: 784 DavidMR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Week 6 Days 6 h 7 m 6 sec
Reputation Power: 2
you might need to get onto your provider and get them to allow it if thats the same case with cURL...

Reply With Quote
  #7  
Old May 16th, 2008, 08:43 AM
Dellius Dellius is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 4 Dellius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 41 sec
Reputation Power: 0
Quote:
Originally Posted by DavidMR
you might need to get onto your provider and get them to allow it if thats the same case with cURL...


You mean there is no other way this can be achieved ?

Reply With Quote
  #8  
Old May 16th, 2008, 08:46 AM
DavidMR's Avatar
DavidMR DavidMR is online now
Contributing User
Click here for more information.
 
Join Date: Apr 2007
Location: Ireland
Posts: 784 DavidMR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Week 6 Days 6 h 7 m 6 sec
Reputation Power: 2
theres httpclient but i believe that uses fsockopen and since you cant use fopen im not sure that would be of use to you.
Im out of ideas im afraid and my knowledge isnt vast enough to tell you for definite but i would swap providers if i was limited like that...

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > php4 - Help me load a remote page without curl and fopen


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway