Solved

Reading Remote file give problem form one server to another

Posted on 2004-08-02
5
274 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

Independent Software Vendors: 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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
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 dynamically set the form action using jQuery.
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 …

685 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