I appreciate all of your help. I think tho that you assume I know more
than I do.. I am a learn-as-I-go sort of code writer.
Let me back up and explain the goal of this project. All I want to do is
display the number of Google indexed pages on a internal Web page for the
boss...
>From one of your previous post am I to understand that,
$page =
file_get_contents('https://www.googleapis.com/customsearch/v1?key=AIzaSyChWV0NI7GTbvnUHr0XzoqWt3HyCyyMTJA&cx=016296160735106576712:8kvz6lo2kp4&q=site:');
won't work? Or do I have to set up the API access differently?
On Friday, July 13, 2012 12:13:54 PM UTC-5, jgeerdes [AJAX APIs "Guru"]
wrote:
>
> If you're going to call it from the client side, you will use the referer
> restriction method. Restrict it to the servers and domains that will be
> using it.
>
> If you're calling the API server-side (e.g., from PHP), and it's
> manageable, then leave it on IP-based restriction.
>
> Jg
> On Jul 13, 2012 12:00 PM, "Patrick Ziegler" <[email protected]> wrote:
>
>> I added my IP to Key for server apps (with IP locking) and it is now
>> working... Prior to this I had the Web server IP in this... I can work
>> with this as we only have a few IP's that will need to access this.
>> However, I am curious as how one would set it up so any visitor to our
>> site could use the ap...
>>
>> Thanks for all of your input!
>>
>> Pat
>>
>>
>>
>> On Friday, July 13, 2012 11:54:40 AM UTC-5, jgeerdes [AJAX APIs "Guru"]
>> wrote:
>>>
>>> Then it is definitely a header issue. With PHP, you willl need to use
>>> curl. There used to be some code samples for this, but I don't know that
>>> they are still available. Actually, you might want to check out the client
>>> library Google has supplied for PHP. Alternatively, you could remove those
>>> referer restrictions, but I don't think I would recommend that, especially
>>> if you're going to enable billing. (Wouldn't want someone stealing your
>>> queries or money!)
>>>
>>> Jg
>>> On Jul 13, 2012 11:44 AM, "Patrick Ziegler" <> wrote:
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Google AJAX APIs" group.
>> To post to this group, send email to
>> [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> To view this message on the web, visit
>> https://groups.google.com/d/msg/google-ajax-search-api/-/H9fHU06bk84J
>> For more options, visit this group at
>> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>>
>
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/7oZdZOYo4WgJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en