unusual export google search results

General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Wed Jun 11, 2014 11:36 pm

unusual export google search results

Postby hatkeykkomp » Wed Jun 11, 2014 11:41 pm


I put on, the search provider Google CSE at:


Code: Select all

  (function() {
    var cx = '000743429867938185976:bvd3rzumobk';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
<gcse:search gl="pl"></gcse:search>

Is it possible to extract from these results some variables?

I mean something like that when you type the phrase and its searching shows us 10 results in the form of:


it is possible to save the page adress as a variable, e.g.: $adress1

Return to “PHP General”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests