TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 01-04-2011, 12:04 AM   #1 (permalink)
The Acquainted
 
Join Date: Feb 2008
Posts: 107
Thanks: 3
CΛSTΞX is on a distinguished road
Arrow Strange Curl problem

I am trying to get content from Bing Cache url. $bingurl is the url of the bing cache page. I echo $bingurl, it echos

http://cc.bingj.com/cache.aspx?d=489...763&w=4da51025

it means the url is correct. So I use

PHP Code:
curl_setopt($chCURLOPT_URL$bingurl);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$satir curl_exec($ch); 
curl_close($ch);
preg_match_all('#<h1(.*?)</h1>#si'$satir$soru2);

echo 
$soru[1][0]; 
But it doesnt get the content, however, if I use the code within like that,

PHP Code:

curl_setopt
($chCURLOPT_URL"http://cc.bingj.com/cache.aspx?d=4893209150818763&w=4da51025"); 
It works. What the hell ? :D
__________________
Downloadic
infolizer
Send a message via MSN to CΛSTΞX
CΛSTΞX is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Facebook search with cURL , where is the problem ? CΛSTΞX General 2 09-29-2010 05:34 PM
Huge Session Problem Killswitch General 1 11-17-2008 02:36 AM
Strange string comparison problem Jelmer General 0 05-23-2008 04:00 PM
A serious curl checkbox problem bedri Advanced PHP Programming 1 05-22-2008 04:25 PM
Strange Mod_Rewrite Problem WinSrev General 2 12-30-2007 09:12 PM


All times are GMT. The time now is 06:51 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design