Page 1 of 1

question about {PHP:...} replacement tag

Posted: Sun 8. May 2005, 17:35
by hagem
I have some PHP scripts that I need to include on some pages.
these are scripts to retrieve data from custom database, etc.

in these scripts, other scripts are called thru INCLUDE function of PHP.

for some reason WCMS does not show any scripts that contain "INCLUDE" statements. I have tried basic scripts without Include and these run fine.

these scripts run perfectly when called directly in any browser, I just can't get them ro run in WCMS

anyone know if/how to fix this?

I am running latest version of WCMS And PHP 4.3.0 on Linux FC3

Posted: Sun 8. May 2005, 19:35
by jscholtysik
Hi hagem,

on my site I included a php script this way:

[PHP]include("http://www.scholtysik.net/user_online/online.php");[/PHP]

It works very well!!


Try it!


Joachim

Posted: Tue 10. May 2005, 22:03
by hagem
nope, doesn't work

the problem is that in the PHP program i'm referencing contains several re-usable php components (ADODB libraries)

the {PHP:prog.php} replacement tag works perfectly when "prog.php" doesn't contain any include statements.

as soon as there is a "include("/path/otherphp.php") statement in prog.php, the whole thing doesn't work anymore (blank browser screen -> no output from PHP)

this is a real problem for me. it used to work perfectly in previous versions of the wcms.

Posted: Thu 19. May 2005, 00:07
by hagem
No one?

at all?

anyone?

no-one is using this {PHP:...} replacement tag?

Posted: Thu 19. May 2005, 04:14
by Pappnase
hello

i only see that you don't use the complete path into yout php file. did you test it also with the full url in the include function!?