| | | | |
| | |
| Gast
Beiträge: n/a
| Hallo! Ich verwende auf meiner Hp (www.philoskop.de.vu) das Newsscript Corenews (www.coreslawn.de) ... wenn ich allerdings die Startseite mit Script aufrufe, erscheint zwar das Template mit dem Inhalt allerdings auch folgende Fehlermeldung: Warning: main(): stream does not support seeking in /home/www/ww8755/html/hola/holaDB/documents/start on line 29 ...woran könnte das liegen? Hat jemand eine Idee? Gruß xabbu |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Gast
Beiträge: n/a
| Die Startseite: Code: <html>
<head>
<title>philoskop</title>
<style type="text/css">
a{text-decoration:none}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" class="normal" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="450" border="0" cellpadding="0" align="center" class="normal" cellspacing="0">
<tr>
<td class="gro&">Welcome to the philoskop</td>
</tr> <tr>
<td>
<table width="450" border="0" cellpadding="5" cellspacing="5" class="normal">
<tr>
<td width="210">&</td>
</tr>
<tr>
<td width="210" class="normal">
<?php
include("http://ww8755.rw08.de/corenews2/shownews.php");
?>
</td>
</tr>
<tr>
<td width="210">&</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="normal">
<div align="left" class="ganzklein"> url_ http://sts.name |<a onfocus="this.blur()" href="?content=imp" class="ganzklein">
imprint</a> | <a href="http://holarse.de/holacms/" target="_blank" class="ganzklein" onfocus="this.blur()" >
holacms</a> | admin | link us
</div>
</td>
</tr>
</table>
</body>
</html>
Hier noch der Code der config.php von Corenews: Code: <?php
/*
############################################
# #
# Corenews 2.0.1 #
# *config area* #
# #
############################################
# #
# Damit die Funktion von Corenews #
# gewährleistet ist, müssen zunächst #
# folgende Variablen angepasst werden. #
# #
############################################
*/
$db_server = "localhost"; //Adresse des MySQL-Servers, meistens: localhost
$db_database = "usr_ww8755_1"; //Name der Datenbank, die Corenews verwenden soll
$db_account = "ww8755"; //Corenews-MySQL User zum Verbinden mit der Datenbank
$db_password = "xxxxxx"; //Das zugehörige Passwort
$newstable = "corenews_news"; //Name der News-Tabelle
$icontable = "corenews_icons"; //Name der Icon-Tabelle
$usertable = "corenews_users"; //Name der User-Tabelle
$optionstable = "corenews_options"; //Name der Options-Tabelle
$commentstable = "corenews_comments"; //Name der Comments-Tabelle
$styletable = "corenews_styles"; //Name der Styles-Tabelle
$dummytable = "corenews_dummy"; //Name der Dummy-Tabelle
?>
Code: <?php
/*
CoreSQL by Core (C) 2002
required PHP version: at least 4.0
don't blame me for errors, bugs or exploits, that may occur ;P
contact: core@coreslawn.de
short usage description under each function...
*/
class Coresql {
var $server;
var $db;
var $acc;
var $pw;
var $query;
var $result;
var $result_multiple;
var $rows;
var $i;
function coresql($db_server, $db_database, $db_account, $db_password)
{
$this->server = $db_server;
$this->db = $db_database;
$this->acc = $db_account;
$this->pw = $db_password;
$connect = mysql_connect($this->server, $this->acc, $this->pw);
if ($connect) {
mysql_select_db($this->db);
return true;
} else {
die("Database Error: Couldn't connect");
}
}
/*
Usage: $dbconn = new Coresql($db_server, $db_database, $db_account, $db_password);
*/
function execQuery($statement)
{
$this->query = mysql_query($statement);
if ($this->query) {
return true;
} else {
return false;
}
}
/*
Usage: $query = $dbconn->execQuery("UPDATE table SET field = 'something'");
*/
function fetchArray($statement)
{
$this->query = mysql_query($statement);
$this->result = mysql_fetch_array($this->query);
return $this->result;
}
/*
Usage: $result = $dbconn->fetchArray("SELECT * FROM table WHERE field != 'something'");
*/
function fetchMultiple($statement)
{
$this->query = mysql_query($statement);
$this->i = 0;
while ($this->result = mysql_fetch_array($this->query)) {
$this->result_multiple[$this->i] = array($this->result);
$this->i++;
}
return $this->result_multiple;
}
/*
Usage: $result = $dbconn->fetchMultiple("SELECT * FROM table WHERE field LIKE '%omethin%'");
foreach ($result as $result_detailed) {
print "<tr>n";
foreach ($result_detailed as $key=>$elem) {
print "<td>$elem[value]</td>n";
}
print "</tr>n";
}
*/
function countRows($statement)
{
$this->query = mysql_query($statement);
$this->rows = mysql_num_rows($this->query);
return $this->rows;
}
/*
Usage: $rows = $dbconn->countRows("SELECT * FROM table WHERE field = 'something'");
*/
function close()
{
if (mysql_close()) {
return true;
} else {
return false;
}
}
/*
Usage: $close = $dbconn->close();
*/
} //Coresql
?>
Warning: main(): stream does not support seeking in /home/www/ww8755/html/hola/holaDB/documents/start on line 29 und die betroffene "line 29" Code: <?php
include("http://ww8755.rw08.de/corenews2/shownews.php");
?>
Trotzdem Danke! xabbu |
| | ||
| Gast
Beiträge: n/a
| Zitat:
Aus dem Frameset: -> http://ww8755.rw08.de/hola/ Aus der Fehlermeldung: -> /home/www/ww8755 "knuffelinchen" hat da wohl recht. | |
| | ||
| Gast
Beiträge: n/a
| Zitat:
2. kontrolliere das newsscript auf relative Pfade bei weiteren Includes. Die mußt Du dann allesamt so korrigieren, daß es funktioniert. Probleme könnte es allerdings bei img Tags geben, wenn dort ebenfalls relative Links stehen. Dort mußt Du dann reintippern, sonst kriegt der Browser vom newsscript keine Bilder. | |
| | |
| Gast
Beiträge: n/a
| ...da habt ihr schon recht ... allerdings, hab ich die fehlermeldung jetzt folgendermaßen zum verschwinden gebracht: Code: <?php
@include("http://ww8755.rw08.de/corenews2/shownews.php");
?>
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Probleme mit Webauction21 Script | beginner | PHP Tipps 2006 | 4 | 17.06.2006 13:17 |
| Probleme mit einem Script | hein.duckdich | PHP Tipps 2006 | 4 | 06.06.2006 12:08 |
| Script beendet sich ohne Fehlermeldung | Zahl | PHP Tipps 2006 | 6 | 04.06.2006 20:41 |
| Probleme beim �bertragen an eine Mysql Datenbank | Datenbanken | 2 | 07.03.2006 21:26 | |
| Probleme mit Script zum Öffnen von PDFs | PHP Tipps 2005-2 | 19 | 23.07.2005 13:05 | |
| [Erledigt] Verzögerung durch included Script? Umgehen? | PHP Tipps 2005-2 | 4 | 10.07.2005 19:26 | |
| PRobleme mit Backup Script | PHP Tipps 2005-2 | 6 | 06.06.2005 14:52 | |
| [Erledigt] Relay Script | PHP-Fortgeschrittene | 11 | 01.06.2005 16:02 | |
| [Erledigt] Hilfe bei Download Verwaltungs Script | PHP Tipps 2005 | 8 | 04.05.2005 10:29 | |
| Fehler bei Script, welches Ordner erstellt | PsychoEagle | PHP Tipps 2005 | 3 | 23.04.2005 16:03 |
| Script probleme! | PHP Tipps 2004 | 2 | 05.10.2004 19:36 | |
| PHP Script aus PHP aufrufen | Stümper | PHP Tipps 2004 | 5 | 26.09.2004 08:15 |
| "das" Script oder "der" Script?? | Simbo | Off-Topic Diskussionen | 31 | 16.09.2004 17:04 |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| php \stream does not support seeking\ foreach, kühn newsscript |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.