lo so che si puo fare con 5 righe di php
quello che voglio dire è: se fai un wget della pagina, o la richiami col browser, mica vedi la data di modifica
![]()
lo so che si puo fare con 5 righe di php
quello che voglio dire è: se fai un wget della pagina, o la richiami col browser, mica vedi la data di modifica
![]()
[supersaibal]Originariamente inviato da Manuel.s
lo so che si puo fare con 5 righe di php
quello che voglio dire è: se fai un wget della pagina, o la richiami col browser, mica vedi la data di modifica
[/supersaibal]
no wget non centra niente. devi prendere il last_modified della pagina.
scusa ma non ti seguo
questa è una pagina statica
http://www.html.it/guida_old/html_01.htm
come fai a sapere quando è stata modificata l'ultima volta (senza avere accesso ai server di html.it)?
[supersaibal]Originariamente inviato da Manuel.s
scusa ma non ti seguo
questa è una pagina statica
http://www.html.it/guida_old/html_01.htm
come fai a sapere quando è stata modificata l'ultima volta (senza avere accesso ai server di html.it)? [/supersaibal]
te lo scrivo al volo:
Codice PHP:....
my $response = $browser->get($url);
# in timestamp
print "time: $response->last_modified";
# formato data
print "time: time2str($response->last_modified)";
....
x il mod: spostaci pure in perl la cosa mi interessa :-))
Da dove salta fuori $browser? last_update è un metodo di LWP, HTTP o qualche altro modulo?
grazie
[supersaibal]Originariamente inviato da Manuel.s
x il mod: spostaci pure in perl la cosa mi interessa :-))
Da dove salta fuori $browser? last_update è un metodo di LWP, HTTP o qualche altro modulo?
grazie [/supersaibal]
ti scrivo la parte sopra:
come mai ti interessa questo dato?Codice PHP:#!/usr/bin/perl -w
use strict;
use LWP 5.64;
use HTTP : : Date;
my $url = 'tuourl';
my $browser = LWP::UserAgent->new;
...
Scusate, io arrivo dall'età della pietra.
Ma come si installa la GG toolbar in un sito?
Io conosco quella che si installa nel browser.
Grazie![]()
caro Umor,[supersaibal]Originariamente inviato da uMoR
ti tiene sotto controllo..
è il trojan piu legalizzato al mondo [/supersaibal]
probabilmente/sicuramente hai ragione,
ma io vorrei sapere come, se Key afferma che google legge il flusso di dati tra il mio client ftp e il Mio server ci deve indicare se ha dei test, dei dati, dei casi in rigurado... iniziamo a portare degli esempi, o dei test da fare, così non ci si capisce nulla.
al contrario credo anck'io che con la toolbar controlli le nostre abitudini
ciao![]()
Beh, ti posso dire che con il "semplice e umile" PHP puoi richiamare qualsiasi file (anche da file non presenti sul medesimo server) e vedere qualsiasi informazioni... e tra le tante,a nche la data di creazione del file, oltre che al peso ecc. ecc.a me non risulta che senza avere accesso al server sia possibile vedere la data di ultima modifica di un file
Riccardo.
Basta chiedere e ti verrà dato.
Spesso vedo che i miei siti rispondono con questo codice al googlebot e di conseguenza lui non aggiorna la cache.10.3.5 304 Not Modified
If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields.
The response MUST include the following header fields:
- Date, unless its omission is required by section 14.18.1
If a clockless origin server obeys these rules, and proxies and clients add their own Date to any response received without one (as already specified by [RFC 2068], section 14.19), caches will operate correctly.
- ETag and/or Content-Location, if the header would have been sent
in a 200 response to the same request
- Expires, Cache-Control, and/or Vary, if the field-value might
differ from that sent in any previous response for the same
variant
If the conditional GET used a strong cache validator (see section 13.3.3), the response SHOULD NOT include other entity-headers. Otherwise (i.e., the conditional GET used a weak validator), the response MUST NOT include other entity-headers; this prevents inconsistencies between cached entity-bodies and updated headers.
If a 304 response indicates an entity not currently cached, then the cache MUST disregard the response and repeat the request without the conditional.
If a cache uses a received 304 response to update a cache entry, the cache MUST update the entry to reflect any new field values given in the response.