[question] php integration

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
WeDgE
Posts: 51
Joined: Tue 30. Mar 2004, 22:53
Location: France (Nice)

[question] php integration

Post by WeDgE »

I want to know if its possible :

I have a php script and i want to integrate it with phpwcms

but there are php page with php code and i think its not possible to do like article ?

(display like article)

(if you understand my bad english lol )
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

If I understood you right this is the solution:

{PHP:your_php_page.php}

Greetings from Martin
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

without words :cry:
http://www.phpwcms.de/forum/viewtopic.p ... ntegrieren

with words :wink:
you can include external scripts like:{PHP:myscript.php}

hightere grüße
Last edited by Jan212 on Sat 3. Apr 2004, 18:30, edited 1 time in total.
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

Haha Jan I beat you to it! :D
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

dem, sorry for doubleposting. mysterios, before the search there was no posting :oops: :wink: :lol:
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

Same time 17:28..

It is the same problem my girlfriend always complain about - that I am tooo fast... :wink:
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

my said i am dancing like an old Indian :cry:
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post by snobba »

LOL :lol:
WeDgE
Posts: 51
Joined: Tue 30. Mar 2004, 22:53
Location: France (Nice)

Post by WeDgE »

Ok !

with that i can integrate a phpBB forum using {PHP:viewforum.php} for example ?

and if i want to use a var like $nick i write {PHP:$nick} and display the nick ?
WeDgE
Posts: 51
Joined: Tue 30. Mar 2004, 22:53
Location: France (Nice)

Post by WeDgE »

and if i want to change the "template" in admin panel

can i write {phpvar:$username} ?
WeDgE
Posts: 51
Joined: Tue 30. Mar 2004, 22:53
Location: France (Nice)

Post by WeDgE »

so i want to know if its possible to put php code in the template

and if i can put this : <? print $param[index][mnu_accueil]; ?>

for the category name ?
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

test it... never done, sorry
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
tyr
Posts: 31
Joined: Tue 9. Dec 2003, 04:36
Location: Pennsylvania, USA

Post by tyr »

In my templates I use [PHP]echo date("Y");[/PHP] to echo the year for my copyright statement.

Something similar should work for printing other variables.
WeDgE
Posts: 51
Joined: Tue 30. Mar 2004, 22:53
Location: France (Nice)

Post by WeDgE »

tyr wrote:In my templates I use [PHP]echo date("Y");[/PHP] to echo the year for my copyright statement.

Something similar should work for printing other variables.
ok and the code for date("Y") where is it ?

in my php script i have the connexion to the base and var
and i want to do an echo(); of a var
all in the template

so you write for the echo(); ok
and where i have to write the connexion base.... ?
tyr
Posts: 31
Joined: Tue 9. Dec 2003, 04:36
Location: Pennsylvania, USA

Post by tyr »

date("Y") is a php system variable. It's results is the current year (2004). Nothing fancy here. I intendd it as an illustration.

Instead of using <? print $param[index][mnu_accueil]; ?> you could use Oliver's replacement tags like such: [PHP] print $param[index][mnu_accueil]; [/PHP] to get the same result.
Post Reply