Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
if on allow_url_open is set to off is there a way to override this?
Old 06-13-2007, 05:57 AM if on allow_url_open is set to off is there a way to override this?
Skilled Talker

Posts: 70
Name: rex
Trades: 0
if on allow_url_open is set to off is there a way to override this? perhaps some scripts or workaround for this?
shotokan99 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-13-2007, 06:30 AM Re: if on allow_url_open is set to off is there a way to override this?
Novice Talker

Posts: 11
Trades: 0
You could try using your own php.ini. But that means compiling php in your area


Or the easier way-

Use curl instead
http://pl2.php.net/manual/en/ref.curl.php
lewisphillips is offline
Reply With Quote
View Public Profile
 
Old 06-13-2007, 10:26 PM Re: if on allow_url_open is set to off is there a way to override this?
Skilled Talker

Posts: 70
Name: rex
Trades: 0
is this the right way to use curl:

$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,'$xurl');
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2) ;
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1) ;
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
{
print "Sorry - no content.<p>";
}
else
{
echo "<h1>HERE IS CONTENT:</h1><hr> $buffer";
}

//----------------
the issue is even if i pass valid url still i got the negative answer...
shotokan99 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to if on allow_url_open is set to off is there a way to override this?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34051 seconds with 12 queries