Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Google Forums > All About Google

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 07-14-2005, 07:28 PM   #1 (permalink)
Noogle
 
Join Date: Jul 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
64bitguy
Google Page Rank Program Problems

Hi

When using the Google Page Rank Program from http://www.googlecommunity.com/scrip...e-pagerank.php I end up getting the following error:
Quote:
Warning: file(http://www.google.com/search?client=...www.yahoo.com/): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in MYDOMAIN/pagerank.php(71) : eval()'d code on line 98
PageRank:
provided by Google Community.com
Any idea what is wrong?

Thanks
64bitguy is offline   Reply With Quote
 
Sponsored Links
Old 07-15-2005, 01:00 AM   #2 (permalink)
Noogle
 
Join Date: Jul 2005
Location: Aberdonia
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
ultrasuk.co.uk
Send a message via MSN to ultrasuk.co.uk
Works fine with me.
ultrasuk.co.uk is offline   Reply With Quote
Old 07-15-2005, 06:50 AM   #3 (permalink)
Noogle
 
Join Date: Jul 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
64bitguy
Oh that's really helpful. I realize this works for many people but I'm getting an error.

Please don't reply with rediculuous posts like "it works for me" as doing so makes it look like the issue was addressed by someone and there is resolution.

Instead leave the task of answering to other people that might actually this or another problem similar to this or to those that have a solution.
64bitguy is offline   Reply With Quote
Old 09-24-2005, 09:17 AM   #4 (permalink)
Noogle
 
Join Date: Jul 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
64bitguy
Does anyone have any idea what could be causing this problem?

Thanks
64bitguy is offline   Reply With Quote
Old 09-26-2005, 10:48 PM   #5 (permalink)
cef
Noogle
 
Join Date: Aug 2005
Location: New York City
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
cef
the flag "allow_url_fopen" must be set to "1" (both without the quotes) in php.ini

Note that you cannot set this in .htaccess (as you can do for many php settings), so if you're on a shared/reseller hosting account, you must ask your host to set it for you (which they may not be willing to do for security reasons).

If you have your own dedicated server or VPS account, you can set this yourself in your php.ini

You can check the value of the setting by running phpinfo() and searching for the value in the returned data:

Code:
<?
    phpinfo();
?>
put that in a file named phpinfo.php, load the page in your browser, and go to town.
cef is offline   Reply With Quote
Old 09-26-2005, 10:53 PM   #6 (permalink)
Noogle
 
Join Date: Jul 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
64bitguy
It is (and has been) on.

Any other ideas?
64bitguy is offline   Reply With Quote
Old 09-27-2005, 12:37 AM   #7 (permalink)
Googler
 
Join Date: Sep 2005
Location: Universal Psychic Guild
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
kkkram
no problem with me..
kkkram is offline   Reply With Quote
Old 09-27-2005, 12:51 PM   #8 (permalink)
Elite Googler
 
Join Date: Nov 2004
Location: Kansas City, Missouri
Posts: 1,065
Thanks: 0
Thanked 0 Times in 0 Posts
Lupine1647
Lets try an experiment shall we?

Copy the URL it spat out in the error message, paste it to your Address bar in the browser, click go. And oh, what's this, a 403 error, just like what it says in the error message.
Lupine1647 is offline   Reply With Quote
Old 09-27-2005, 05:45 PM   #9 (permalink)
cef
Noogle
 
Join Date: Aug 2005
Location: New York City
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
cef
Quote:
Originally Posted by Lupine1647
Lets try an experiment shall we?

Copy the URL it spat out in the error message, paste it to your Address bar in the browser, click go. And oh, what's this, a 403 error, just like what it says in the error message.
Heh, sometimes it's the simple things. I remember an old saying they used to teach med students: when you hear hoofbeats, don't think zebras. In other words, think horses first -- look for the obvious before looking for the exotic.

cef is offline   Reply With Quote
Old 10-12-2005, 12:05 AM   #10 (permalink)
Noogle
 
Join Date: Oct 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Bitlord
The problem is due to different versions of PHP and the way PHP handles bitwise operations.

I've had a few different issues on different machines. I've successfully ported the php script to a machine running FC4-64bit, and PHP 5.x. It required making custom shl and shr functions. For some reason, SHRs were adding a 1 to the LSB. Yeah, sounds weird, but it was.. anyhow it's fixed.

However, I'm having one hell of a time attempting to port it to a i386 machine running FC3 and PHP 4.3.11.

The problem occurs when PHP attempts to "sliently" convert integers into floating point numbers when the integer becomes to large to be held in an integer placeholder. That's all fine, but what happens when you attempt to perform an XOR on the floating point number? Well, all hell breaks lose in certain versions of PHP it seems.

I'm not sure if there is a setting somewhere, or if it's just due to the different versions of PHP and the way they handle the convertions between integer and float, but I intend to put a finger on it.

Anyone else have anything to add?

Bitlord
Bitlord is offline   Reply With Quote
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Rank Index page Vs sub url in existing domain. morelans All About Google 2 05-17-2007 10:40 AM
Page Rank vs. Alexa Rank 600GLE All About Google 18 04-02-2007 01:41 AM
Google Page Rank for website khan11 Web Design, Coding & Programming Forum 1 07-17-2006 08:49 PM
Google Page Rank jackson All About Google 12 03-08-2006 12:06 PM
Page Rank calculation problems Mutatos All About Google 0 10-09-2005 02:18 AM


All times are GMT -8. The time now is 12:56 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community