Einbinden mit include funktioniert nicht
turischt
- php
Hallo,
ich möchte gerne diese Datei "Rechner" in mein Mediawiki direkt einbinden unter "Kreditzentrum".
Eine Extension für PHP in der Mediawiki Software musste separat installiert werden und funktioniert.
Ich habe die Datei mit
include_once('/home/italy/www/kreditzentrum/calculators/calc1.php');
eingebunden, daraus folgen diese Error Meldungen:
(Ich kenne mich mit PHP leider überhaupt nicht aus)
Warning: include_once(lang//lang.php) [function.include-once.php]: failed to open stream: No such file or directory in /home/italy/www/kreditzentrum/calculators/calc1.php on line 5
Warning: include_once() [function.include.php]: Failed opening 'lang//lang.php' for inclusion (include_path='/home/italy/www/kreditzentrum/w:/home/italy/www/kreditzentrum/w/includes:/home/italy/www/kreditzentrum/w/languages:.:/usr/local/lib/php') in /home/italy/www/kreditzentrum/calculators/calc1.php on line 5
Warning: include_once(templates//pdfSettings.php) [function.include-once.php]: failed to open stream: No such file or directory in /home/italy/www/kreditzentrum/calculators/calc1.php on line 6
Warning: include_once() [function.include.php]: Failed opening 'templates//pdfSettings.php' for inclusion (include_path='/home/italy/www/kreditzentrum/w:/home/italy/www/kreditzentrum/w/includes:/home/italy/www/kreditzentrum/w/languages:.:/usr/local/lib/php') in /home/italy/www/kreditzentrum/calculators/calc1.php on line 6
Warning: include_once(./libs/Smarty.class.php) [function.include-once.php]: failed to open stream: No such file or directory in /home/italy/www/kreditzentrum/calculators/calc1.php on line 17
Warning: include_once() [function.include.php]: Failed opening './libs/Smarty.class.php' for inclusion (include_path='/home/italy/www/kreditzentrum/w:/home/italy/www/kreditzentrum/w/includes:/home/italy/www/kreditzentrum/w/languages:.:/usr/local/lib/php') in /home/italy/www/kreditzentrum/calculators/calc1.php on line 17
Warning: include_once(templates//header.php) [function.include-once.php]: failed to open stream: No such file or directory in /home/italy/www/kreditzentrum/calculators/calc1.php on line 27
Warning: include_once() [function.include.php]: Failed opening 'templates//header.php' for inclusion (include_path='/home/italy/www/kreditzentrum/w:/home/italy/www/kreditzentrum/w/includes:/home/italy/www/kreditzentrum/w/languages:.:/usr/local/lib/php') in /home/italy/www/kreditzentrum/calculators/calc1.php on line 27
Warning: Division by zero in /home/italy/www/kreditzentrum/calculators/functions.php on line 96
Warning: Division by zero in /home/italy/www/kreditzentrum/calculators/calc1.php on line 128
Warning: Division by zero in /home/italy/www/kreditzentrum/calculators/functions.php on line 96
Warning: Division by zero in /home/italy/www/kreditzentrum/calculators/functions.php on line 158
Warning: Division by zero in /home/italy/www/kreditzentrum/calculators/functions.php on line 161
Fatal error: Class 'Smarty' not found in /home/italy/www/kreditzentrum/calculators/calc1.php on line 364
Vielen Dank im Voraus
Hallo,
es hilft zu lesen und zu verstehen was php sagt. die datei existiert nicht, dein pfad ist falsch. da steht auch u.a. "w:", und nicht selten existiert www/deinedomain/httpdocs ....
gibt mit deinem script mal mit var_dump(__FILE__); oder phpinfo() den absoluten pfad aus.
Gruß
jobo
Danke, dass sehe ich auch aber warum denn?
habe jetzt eine test Datei mit
<php>
include_once('/home/italy/www/kreditzentrum/calculators/test.php');
</php>
Datei: http://kreditzentrum.com/calculators/test.php erfolgreich in Mediawiki integrieren können http://kreditzentrum.com/wiki/Xy
Die test.php Datei liegt im gleichem Verzeichnis wie calc1.php, darum müsste der Pfad ja richtig sein und es sollte funtkionieren
gibt mit deinem script mal mit var_dump(__FILE__); oder phpinfo() den absoluten pfad aus.
Wenn ich das richtig mache
<php>
phpinfo()
</php>
erscheint die Fehlermeldung:
Parse error: syntax error, unexpected $end in /home/italy/public_html/common/wiki/extensions/runphp.php(27) : eval()'d code on line 3
Danke, dass sehe ich auch aber warum denn?
habe jetzt eine test Datei mit
<php>
include_once('/home/italy/www/kreditzentrum/calculators/test.php');
</php>
<?php
// kiss me
?>
Musses heiße.
Horst Pfiffig
<?php
// kiss me
?>
Ich weiss ;-)
Aber in der PHP Mediawiki Extension wird der PHP Tag nur mit <php> statt <?php>....?> geschrieben, hehe
<?php
// kiss me
?>Ich weiss ;-)
Aber in der PHP Mediawiki Extension wird der PHP Tag nur mit <php> statt <?php>....?> geschrieben, hehe
Nunja, das wird dort verzählt. Aber das muss ja nicht stimmen ;-)
Hotti
Hi,
Aber in der PHP Mediawiki Extension wird der PHP Tag nur mit <php> statt <?php>....?> geschrieben, hehe
Wenn das vom Wiki 1:1 in <?php ... ?> übersetzt wird, dann bleibt ein fehlendes Semikolon aber immer noch ein Syntaxfehler.
MfG ChrisB