Solved

Reading Remote file give problem form one server to another

Posted on 2004-08-02
5
269 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:Marcus Bointon
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

792 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