Solved

Reading Remote file give problem form one server to another

Posted on 2004-08-02
5
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

623 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