Solved

Reading Remote file give problem form one server to another

Posted on 2004-08-02
5
246 Views
Last Modified: 2006-11-17
Hi Experts,

I have to get the link popularity from different search engine.  So i am grasping the link popularity from different search engine using file function.

The different search engine i am grasping be:
Altavista: file('http://www.altavista.com/web/results?q=link%3Awww.google.com&kgs=0&kls=1&avkw=qtrp')

google: file('http://www.google.com/search?as_lq=www.google.com&btnG=Search')

lycos: file('http://search.lycos.com/default.asp?loc=searchbox&query=linkdomain%3Awww.google.com')

first i have tested with one site and uploaded into another site, the problem i faced with both server be
Tested Server                                        Upload Server
Altavista - Working                                  Altavista - Working
Google - Working                                    Google - Warning Message
Lycos - Warning Message                        Lycos - Warning Message

Can any help why this is happening

-bksaji
0
Comment
Question by:bksaji
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Squinky
ID: 11695204
What are the warning messages?
0
 

Author Comment

by:bksaji
ID: 11700493
Hi Squinky

The warning message be:
Warning: file("http://www.google.com/search?as_lq=www.google.com&btnG=Search") - Success in [php file name] on line 36

Thanks
-bksaji
0
 

Author Comment

by:bksaji
ID: 11701962
Hi Experts

I have got the solution, the old server php version is 4.3.4 and the new one is 4.2.2.  Some site will not be read in older version.

I am reading a remote file using file() function and i have changed to fsockopen() function and its working fine now.

Thanks Squinky for your reply

-bksaji
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12653437
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now