Page 1 of 1

PHP Not working in User Defined Tag or template [solved 1/2]

Posted: Thu May 12, 2011 12:50 pm
by mvandiermen
below is an PHP example of work works in a normal code php file; But does not work either User Defined Tag or {php} template code within cms-m-s

What works:
Image
Image

What does not work:
Image

Image
Or
Image

Re: PHP Not working in User Defined Tag or template !

Posted: Thu May 12, 2011 1:10 pm
by calguy1000
I have done this type of stuff hundreds and thousands of times.
Theproblem lies with your external php script.

Debugging and diagnosing that external php scritp is not a subject for this forum.

Re: PHP Not working in User Defined Tag or template !

Posted: Thu May 12, 2011 3:18 pm
by mvandiermen
well I say it is a compatibility issue not accepting external php script, dont know why it works in any other system but not cms-m-s

Re: PHP Not working in User Defined Tag or template !

Posted: Thu May 12, 2011 3:21 pm
by mvandiermen
attached is a copy of the external php script
sorry to have to ask for help...

please feel free to move this post to a suitable category

Re: PHP Not working in User Defined Tag or template !

Posted: Thu May 12, 2011 4:02 pm
by mvandiermen
i enabled debug and checked error_log. it does not give me any errors. no code is displayed after the php insert. I have tried a few things for compatibility but dont know why it wont take the code

Re: PHP Not working in User Defined Tag or template !

Posted: Thu May 12, 2011 4:20 pm
by mvandiermen
I got it working by using this:
{php}
include ("http://174.121.133.186/~moojicol/test.php");
{/php}

Re: PHP Not working in User Defined Tag or template !

Posted: Fri May 13, 2011 7:44 am
by M@rtijn
calguy1000 wrote:I have done this type of stuff hundreds and thousands of times.
Theproblem lies with your external php script.

Debugging and diagnosing that external php scritp is not a subject for this forum.