question about {PHP:...} replacement tag

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
hagem
Posts: 23
Joined: Sun 4. Apr 2004, 16:52
Location: Zoetermeer, Nederland

question about {PHP:...} replacement tag

Post 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
The manual said to install Windows 2000 platform or better. So I installed Linux..
jscholtysik

Post 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
hagem
Posts: 23
Joined: Sun 4. Apr 2004, 16:52
Location: Zoetermeer, Nederland

Post 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.
The manual said to install Windows 2000 platform or better. So I installed Linux..
hagem
Posts: 23
Joined: Sun 4. Apr 2004, 16:52
Location: Zoetermeer, Nederland

Post by hagem »

No one?

at all?

anyone?

no-one is using this {PHP:...} replacement tag?
The manual said to install Windows 2000 platform or better. So I installed Linux..
Pappnase

Post 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!?
Post Reply