Externen PHP Code einbinden "readfile"

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
bestertester
Posts: 59
Joined: Thu 4. May 2006, 17:51

Externen PHP Code einbinden "readfile"

Post by bestertester »

Hi zusammen,

seit der neuen 126 Version kann ich keinen externen PHP Code mehr einbinden. Bzw. er wird nicht mehr angezeigt.

Vorher klappte es auch mit "readfile". Jetzt nicht mehr.

Gibt es dafür eine Erklärung oder einen Workaround?

Hiermit klappt es übrigens irgendwie auch nicht mehr:
[PHP] mein_PHP_code ; mehr_PHP_code [/PHP]
{PHP:mein_externe_PHP_Datei.php}

Wie kann ich nun am besten eine externe PHP Datei einbinden?

Danke und Gruss
Ren.Hoek
Posts: 34
Joined: Thu 3. Mar 2005, 21:38
Location: Augsburg/Germany
Contact:

external php

Post by Ren.Hoek »

Hi,

in my 1.2.6 installation, I had to edit the conf.inc.php

Code: Select all

$phpwcms["allow_ext_init"]    = 1;  //allow including of custom external scripts at frontend initialization
$phpwcms["allow_ext_render"]  = 1;  //allow including of custom external scripts at frontend rendering
I used iframes beforehand to include my self-written php-scripts but I am right now experimenting in how to include more into the wcms. (Using the replacement tags like { PHP }, [ PHP ] and the php variables content-part.)
But I'm seeking help on this topic myself...

Bye! Ren
bestertester
Posts: 59
Joined: Thu 4. May 2006, 17:51

Post by bestertester »

THNX i will try it!
bestertester
Posts: 59
Joined: Thu 4. May 2006, 17:51

Post by bestertester »

SRY

it doesn`t work.

:?:
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

Komisch,

das Problem hatte ich auch, aber nachdem ich
die Schalter in der conf "umgelegt" habe, ging wieder
alles ganz normal.

Stimmt den der Pfad bzw. die Bezeichnung?
Schau bitte in der conf noch mal nach.
Da müssen richtige PHP-Schalter sein.
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
Ren.Hoek
Posts: 34
Joined: Thu 3. Mar 2005, 21:38
Location: Augsburg/Germany
Contact:

config

Post by Ren.Hoek »

Hi,

Code: Select all

$phpwcms["allow_remote_URL"]  = 0;  //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed   
is also important expecially if you use scripts from a number of different servers, as is in our intranet.

Bye! Ren
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

Jupp, damit sollte es nun auch wieder funktionieren.
Der Code für diesen Rep-Tag ist schli8eßlich nicht
verändert worden und noch aktiv.

Vielleicht lässt sich ja eine "Worauf du achten solltest"-Liste
der Änderungen veröffentlichen, wenn es wieder mal ein
Update/Upgrade oder so gibt.

Das ist jetzt vielleicht nicht so dramatisch, aber ich finde
es schon ein wenig nervig, wenn man sich nach Updates
erst einmal auf die Suche machen muss, was wofür nun
verantwortlich ist.
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
Post Reply