PHP code insert

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
nkosztad
Posts: 27
Joined: Fri 29. Oct 2004, 13:28

PHP code insert

Post by nkosztad »

Ho can I insert PHP code to article?
phwhitfield
Posts: 22
Joined: Wed 13. Apr 2005, 10:39

Post by phwhitfield »

You can use the content type "external content" and include a php file. It must be located in content/pages.
Pappnase

Post by Pappnase »

hello

or with the rep tags for PHP ;-)

Code: Select all

[PHP] PHP_code [/PHP]
or

Code: Select all

{PHP:my_external_PHP_script.php}
Use: 		This tag supp
http://www.phpwcms-docu.de/index.php?system_tags
jsb
Posts: 26
Joined: Tue 3. May 2005, 11:39
Location: Berlin

Post by jsb »

Habe auch das Problem mit dem einbinden von PHP-Code.

Ich hab folgendes versucht
Inhaltsart = Einfacher Text und darin dann
[PHP]<?php
session_start();
// die Variablen...... [/PHP]
Ergebniss folgende Fehlermeldung
Parse error: parse error, unexpected '<' in /home/WWW/angehoerige/phpwcms/include/inc_front/front.func.inc.php(2307) : eval()'d code on line 1
die ich nicht verstehe.
Der eingesetzte php-Code stammt aus meinem script, welches bereits auf der alten Seite einwandfrei funktioniert.

Sorry das ich auf Deutsch frage kann aber nicht genug (bessser gesagt kein) Englisch.
jscholtysik

Post by jscholtysik »

Hi jsb,


try

Code: Select all

[PHP]session_start(); 
// die Variablen...... [/PHP] 
that means without <?php and ?>.

******************************************************

Hi jsb,


versuch es mal mit

Code: Select all

[PHP]session_start(); 
// die Variablen...... [/PHP] 
d.h. ohne <?php und ?>.


Joachim
kubens
Posts: 168
Joined: Sat 6. Nov 2004, 15:29
Location: Duesseldorf near Cologne ;-)

Post by kubens »

Take a look at this RT: {WAK_SNIPPET}
jsb
Posts: 26
Joined: Tue 3. May 2005, 11:39
Location: Berlin

Post by jsb »

kubens wrote:Take a look at this RT: {WAK_SNIPPET}
Verstehe ich nicht.


@jscholtysik
habe das jetzt so geändert leider ist das Ergebnis

Image

woran kann das jetzt liegen?

Unter http://angehoerige.aidshilfe.de/ kannst du die alte Version sehen. Unter Adressen, Treffen und Link sind jeweils PHP-Seiten die auf die MySql DB zugreifen. Diese sollen auch in der neuen Version mit phpwcms so funktionieren.

Ich hoffe hier Hilfe zu finden.
Post Reply