Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-14 12:48:20

neoformat
Member
From: Russia
Registered: 2007-02-17
Posts: 37
Website

I cant execute included php script, help!!!

Hi there,

I want to use some php scripts on my pages. It is ok when I use <txp:php>my script</txp:php>
But if I want to include php script like <txp:php>include (‘../script.php’);</txp:php> it does not execute this script, Tetpattern just ignores it, in admin area php scripts are allowed everywhere. What´s a problem?

Last edited by neoformat (2007-03-14 20:49:53)

Offline

#2 2007-03-14 14:54:06

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: I cant execute included php script, help!!!

Have you seen this FAQ ?

Offline

#3 2007-03-14 15:11:53

neoformat
Member
From: Russia
Registered: 2007-02-17
Posts: 37
Website

Re: I cant execute included php script, help!!!

Yes I know something wrong with my absolute path (dir) but I am new in php and dont understand it…. Please help!!

Last edited by neoformat (2007-03-14 15:12:42)

Offline

#4 2007-03-14 16:22:44

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

Re: I cant execute included php script, help!!!

did you try <txp:php>include ('http://yoursite.com/script.php');</txp:php> ?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2007-03-16 12:37:29

neoformat
Member
From: Russia
Registered: 2007-02-17
Posts: 37
Website

Re: I cant execute included php script, help!!!

Sorry guys, I am stupied, I did know that textpattern can work in different modes where one of it is debug mode and in that mode I can see all errors I have in system. :) Problem is solved!

Offline

Board footer

Powered by FluxBB