Wieso trifft dieser Pfad nicht zu? Wie lädts du genau die Dateien hoch und wohin? php-Version?
Etwas mehr Infos wären praktisch, vor allem da SEOstats einen Autoloader für die php-Dateien hat, also nur in ein, zwei Dateien ein "require_once" oder ähnliches vorkommen sollte...
Hi! Ich lade diese Dateien in einen Unterordner meines html Ordners auf dem Server!
Sieht also so aus
html
----htmlpanel
-------example
-------seostats
Ich habe das ganze nun anhand einer der example php Dateien ausprobieren wollen, diese sehen zum Beispiel so aus:
PHP
<?php
/**
* SEOstats Example - Get Google Serps
*
* @package SEOstats
* @author Stephan Schmitz <eyecatchup@gmail.com>
* @copyright Copyright (c) 2010 - present Stephan Schmitz
* @license http://eyecatchup.mit-license.org/ MIT License
* @updated 2013/08/17
*/
// Bootstrap the library / register autoloader
require_once (__DIR__ . '\..') . '\SEOstats\bootstrap.php';
use \SEOstats\Services\Google as Google;
try {
/**
* Get an array containing URL and title for the first
* 100 results for a Google web search for 'keyword'.
*/
$serps = Google::getSerps('keyword');
print_r($serps);
/**
* Get an array containing URL and title for the first
* 200 results for a Google web search for 'keyword'.
*/
//$serps = Google::getSerps('keyword', 200);
//print_r($serps);
/**
* Get an array containing URL, title and position in Serps
* for each occurrence of 'http://www.domain.tld' within the
* first 1000 results for a Google web search for 'keyword'.
*/
//$serps = Google::getSerps('keyword', 1000, 'http://www.domain.tld');
//print_r($serps);
}
catch (\Exception $e) {
echo 'Caught SEOstatsException: ' . $e->getMessage();
}
Alles anzeigen
Wie gesagt, mit der oben genannten Pfadangabe klappt es nicht.
Ich denke mein Problem ist im Endeffekt richtig blöd, aber ich bin leider nicht so versiert auf dem Gebiet