Jnerocorp Posted October 31, 2009 Share Posted October 31, 2009 Displaying nothing please help function getWebArchive () { $url = $this->url['host']; $url = "http://web.archive.org/web/*/$url"; $data = $this->getPage($url); preg_match('#<p align="right"><b>([0-9\,]+)</b> Results</p>#si', $data, $p); $value = ($p[1]) ? number_format($this->toInt($p[1])) : 0; return $value; } Link to comment https://forums.phpfreaks.com/topic/179760-getwebarchive-function-not-working-please-help/ Share on other sites More sharing options...
salathe Posted October 31, 2009 Share Posted October 31, 2009 That code isn't meant to display anything, does it not return the value that you want? Is $url what you want it to be? Is $data? Link to comment https://forums.phpfreaks.com/topic/179760-getwebarchive-function-not-working-please-help/#findComment-948435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.