Jump to content
php.lv forumi

Links uz Google Cache


lamp

Recommended Posts

UZ lapas tāds texts:

Page changed ? Look in Google cache !

 

"Google cache" linko uz _http://www.google.com/search?q=cache:[mans-url]

Dažreiz tas aizved uz kaši, citreiz - ne, jo pareizais url var būt apmēram tā -

_http://www.google.com/search?q=cache:4urkAa6m6TkJ:[mans-url]

 

Q: vai ir kāds veids, kā korekti nolinkot uz "Cached" ?

 

Trûcîgais variants: ?q=site:[mana-site] page.htm

(kurloðana netiek apskatîta)

 

Viss iekð PHP, protams.

 

=================================

Problem solved (ceru)

 

http://pear.php.net/package/Services_Google

To use this package you will need to register for a search key.

public function getCachedPage ($url)

@return string The cached page.

Edited by lamp
Link to comment
Share on other sites

cik papetiju, ja google pašā uzraksta cache:saits.lv tad uzreiz aizmet uz kkadu serveri - IPadrese.. tiri piri...

 

http://209.85.129.132/search?hl=lv&q=c...mp;aq=f&oq=

 

BET nostrādā viss tas pavisam vienkārši arī uz šādu linku!

 

http://www.google.lv/search?hl=lv&q=ca...mp;aq=f&oq=

 

un nekadi parametri dizhie nav jaraksta, kaa to ko orginali google izdod mekleshanas laikaa! :)

 

http://www.google.lv/search?hl=lv&q=cache%3Atavs-saits.lv&btnG=Google+mekl%C4%93%C5%A1ana&meta=&aq=f&oq= un nevajadzetu but problemam! :)

 

domāju ka nevajag sarezģīt visu vienkāršo! :)

Edited by aldis
Link to comment
Share on other sites

cik papetiju, ja google pašā uzraksta cache:saits.lv tad uzreiz aizmet uz kkadu serveri - IPadrese.. tiri piri...

 

http://209.85.129.132/search?hl=lv&q=c...mp;aq=f&oq=

 

BET nostrādā viss tas pavisam vienkārši arī uz šādu linku!

 

http://www.google.lv/search?hl=lv&q=ca...mp;aq=f&oq=

 

un nekadi parametri dizhie nav jaraksta, kaa to ko orginali google izdod mekleshanas laikaa! :)

 

http://www.google.lv/search?hl=lv&q=cache%3Atavs-saits.lv&btnG=Google+mekl%C4%93%C5%A1ana&meta=&aq=f&oq= un nevajadzetu but problemam! :)

 

domāju ka nevajag sarezģīt visu vienkāršo! :)

 

Tur jau tâ lieta, ka tâds links ne vienmçr aizved uz keðu, jo pa vidu parâdâs kautkâds 4urkAa6m6TkJ - laikam keða id.

Link to comment
Share on other sites

×
×
  • Create New...