Go Back   Internet Marketing Forums > Internet Marketing Forums > How To Make Money On The Internet



Reply
 
Thread Tools Search this Thread Display Modes
Old 01-20-2009, 11:03 PM   #1
niceextra
 
Join Date: Jan 2009
Posts: 3
Preg Match problem (file get content)

i was using google search results but suddenly they changed something and now i can not.

php Code:

<?php
header('Content-type:text/html; charset=utf-8');
$s = file_get_contents("http://www.google.com.tr/search?hl=tr&q=test&meta=");
preg_match("/<div class=g>(.*?)<h2 class=r>/Us",$s,$d);
echo "<pre>";print_r($d);
?>

can you please tell me what is wrong
Reply With Quote
eruseldarine
View Public Profile
Send a private message to eruseldarine
Find all posts by eruseldarine
niceextra is offline   Reply With Quote
Check This Out...
--
Old 01-23-2009, 01:56 PM   #2
jun24
 
Join Date: Jan 2009
Posts: 5
Hmm.. it returned false because you tried to look for a class that doesn't exist. Please verify it.
jun24 is offline   Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Effective Email Content ArticleJunkie How To Make Money On The Internet 1 12-01-2012 05:49 AM
Signature File Dos and Don'ts ArticleJunkie How To Make Money On The Internet 0 11-07-2012 12:39 PM
The Content Farm Problem rhody007 How To Make Money On The Internet 0 05-11-2011 02:07 AM
Repurposing Content notepage How To Make Money On The Internet 0 07-21-2009 11:18 AM
Preg Match problem (file get content) senesh How To Make Money On The Internet 0 02-27-2009 03:39 AM


All times are GMT -4. The time now is 08:06 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.